mirror of
https://github.com/jakejarvis/dark-mode-example.git
synced 2026-09-11 23:25:34 -04:00
Update index.html
This commit is contained in:
+1
-18
@@ -3,24 +3,7 @@
|
|||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||||
<title>Welcome to the dark side</title>
|
<title>Welcome to the dark side</title>
|
||||||
<style>
|
<link rel="stylesheet" href="dark-mode.css">
|
||||||
body.light {
|
|
||||||
background-color: #fff;
|
|
||||||
color: #222;
|
|
||||||
}
|
|
||||||
body.dark {
|
|
||||||
background-color: #222;
|
|
||||||
color: #fff;
|
|
||||||
}
|
|
||||||
|
|
||||||
.dark-mode-toggle {
|
|
||||||
cursor: pointer;
|
|
||||||
padding: 1em;
|
|
||||||
|
|
||||||
/* hide toggle until we're sure user has JS enabled */
|
|
||||||
visibility: hidden;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
</head>
|
</head>
|
||||||
<body class="light">
|
<body class="light">
|
||||||
<h1>Welcome to the dark side</h1>
|
<h1>Welcome to the dark side</h1>
|
||||||
|
|||||||
Reference in New Issue
Block a user