-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathstyle.css
More file actions
104 lines (90 loc) · 1.74 KB
/
style.css
File metadata and controls
104 lines (90 loc) · 1.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
:root {
color-scheme: light dark;
}
@media (prefers-color-scheme: light) {
body {
--bg-color: #f8f8f8;
--primary-color: #262262;
--primary-contrast: #fff;
--primary-shadow: rgba(0,0,0,0.04);
--secondary-color: white;
--secondary-contrast: black;
}
}
@media (prefers-color-scheme: dark) {
body {
--bg-color: black;
--primary-color: #5f55e7;
--primary-contrast: #fff;
--primary-shadow: rgba(0,0,0,0.04);
--secondary-color: #ffffff;
--secondary-contrast: #a8a2f5;
}
}
html {
box-sizing: border-box;
font-family: 'Segoe UI', Arial, sans-serif;
}
body {
margin: 0;
background: var(--bg-color);
color: var(--secondary-color);
}
header {
background: var(--primary-color);
color: var(--primary-contrast);
padding: 1rem 0;
}
header h1 {
text-align: center;
margin: 0.5rem 0 0;
}
nav ul {
list-style: none;
display: flex;
justify-content: center;
gap: 2rem;
padding: 0;
margin: 0;
}
nav ul a {
color: var(--primary-contrast);
text-decoration: none;
font-weight: bold;
}
.nav-list a:hover {
text-decoration: underline;
}
main {
display: flex;
flex-direction: column;
align-items: center;
min-height: 70vh;
padding: 2rem;
}
.hero {
max-width: 600px;
text-align: center;
margin-bottom: 2rem;
}
.features {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 1rem;
width: 100%;
max-width: 900px;
}
.features article {
background: var(---secondary-color);
color: var(--secondary-contrast);
border-radius: 5px;
padding: 1rem;
box-shadow: 0 8px 24px var(--primary-shadow);
}
footer {
background: var(--primary-color);
color: var(--primary-contrast);
text-align: center;
padding: 1rem 0;
margin-top: 2rem;
}