Skip to content

Commit 5f4910b

Browse files
committed
index.html ダークモード対応
1 parent b7d4866 commit 5f4910b

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

index.html

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,21 @@
55
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
66
<title>Page Title</title>
77
<meta name='viewport' content='width=device-width, initial-scale=1'>
8-
<link rel='stylesheet' type='text/css' media='screen' href='main.css'>
8+
<!-- <link rel='stylesheet' type='text/css' media='screen' href='main.css'> -->
9+
<style type="text/css">
10+
@media (prefers-color-scheme: dark) {
11+
body {
12+
background-color: #000;
13+
color: #bbb;
14+
}
15+
textarea, button, input[type="text"], input[type="button"] {
16+
color: #bbb;
17+
background-color: #222;
18+
}
19+
a:link { color: skyblue; }
20+
a:hover { color: yellow; }
21+
}
22+
</style>
923
</head>
1024
<body>
1125

0 commit comments

Comments
 (0)