Skip to content

Commit 4d7fa61

Browse files
committed
move to style.css
1 parent dce5584 commit 4d7fa61

File tree

2 files changed

+36
-37
lines changed

2 files changed

+36
-37
lines changed

index.html

+1-37
Original file line numberDiff line numberDiff line change
@@ -5,44 +5,8 @@
55
<meta charset="UTF-8">
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
77
<meta name="robots" content="noindex, follow">
8+
<link rel="stylesheet" href="./style.css">
89
<title>zzz</title>
9-
<style>
10-
:root {
11-
--text: #000;
12-
--bg: #fafafa;
13-
}
14-
15-
body {
16-
background-color: var(--bg);
17-
color: var(--text);
18-
}
19-
20-
@media (prefers-color-scheme: dark) {
21-
:root {
22-
--text: #dfdfdf;
23-
--bg: #0e0e0e;
24-
}
25-
}
26-
27-
.content {
28-
width: 100%;
29-
max-width: 1200px;
30-
margin: auto;
31-
}
32-
33-
.eepy {
34-
display: flex;
35-
justify-content: center;
36-
align-items: center;
37-
height: 100vh;
38-
}
39-
40-
.eepy img {
41-
max-width: 100%;
42-
height: auto;
43-
object-fit: cover;
44-
}
45-
</style>
4610
</head>
4711

4812
<body>

style.css

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
:root {
2+
--text: #000;
3+
--bg: #fafafa;
4+
}
5+
6+
body {
7+
background-color: var(--bg);
8+
color: var(--text);
9+
}
10+
11+
@media (prefers-color-scheme: dark) {
12+
:root {
13+
--text: #dfdfdf;
14+
--bg: #0e0e0e;
15+
}
16+
}
17+
18+
.content {
19+
width: 100%;
20+
max-width: 1200px;
21+
margin: auto;
22+
}
23+
24+
.eepy {
25+
display: flex;
26+
justify-content: center;
27+
align-items: center;
28+
height: 100vh;
29+
}
30+
31+
.eepy img {
32+
max-width: 100%;
33+
height: auto;
34+
object-fit: cover;
35+
}

0 commit comments

Comments
 (0)