Skip to content

Commit 1b2d7eb

Browse files
authored
Simpler CSS
1 parent bf393e3 commit 1b2d7eb

File tree

1 file changed

+28
-10
lines changed

1 file changed

+28
-10
lines changed

assets/css/style.css

Lines changed: 28 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,32 @@
1+
/* === BASE STYLES === */
12
body {
23
font-family: system-ui, sans-serif;
34
margin: 0;
45
background: #151c2c;
56
color: #e0e0e0;
67
}
78

8-
9+
/* === HEADER === */
910
header {
1011
background: #1b223a;
1112
color: #ff8ff5;
1213
padding: 1rem;
1314
text-align: center;
1415
}
1516

17+
header h1 {
18+
font-family: 'Open Sans', sans-serif;
19+
}
20+
21+
header h1 .bracket {
22+
color: #ffffff;
23+
}
24+
25+
header h1 .title-text {
26+
color: #ff8ff5;
27+
}
28+
29+
/* === DASHBOARD CARDS === */
1630
div.dashboard {
1731
display: grid;
1832
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
@@ -36,6 +50,7 @@ a.card:hover {
3650
transform: translateY(-2px);
3751
}
3852

53+
/* === LINKS === */
3954
a {
4055
color: #ff8ff5;
4156
}
@@ -44,7 +59,9 @@ a:hover {
4459
text-decoration: underline;
4560
}
4661

47-
button, .btn {
62+
/* === BUTTONS === */
63+
button,
64+
.btn {
4865
background-color: #ff8ff5;
4966
color: #121212;
5067
border: none;
@@ -54,7 +71,8 @@ button, .btn {
5471
font-weight: bold;
5572
}
5673

57-
button:hover, .btn:hover {
74+
button:hover,
75+
.btn:hover {
5876
background-color: #c54bbb;
5977
}
6078

@@ -68,13 +86,7 @@ button:hover, .btn:hover {
6886
background-color: #1c7ed6;
6987
}
7088

71-
72-
@media (max-width: 600px) {
73-
header h1 {
74-
font-size: 1.5rem;
75-
}
76-
77-
}
89+
/* === MAIN CONTENT PADDING === */
7890
main > p,
7991
main > h1,
8092
main > h2,
@@ -83,3 +95,9 @@ main > #readme {
8395
padding: 0 1.5rem;
8496
}
8597

98+
/* === MOBILE RESPONSIVENESS === */
99+
@media (max-width: 600px) {
100+
header h1 {
101+
font-size: 1.5rem;
102+
}
103+
}

0 commit comments

Comments
 (0)