Skip to content

Commit a1c9e62

Browse files
committed
Update blog.css with new header styles and color
scheme
1 parent 560689f commit a1c9e62

File tree

1 file changed

+48
-10
lines changed

1 file changed

+48
-10
lines changed

assets/css/blog.css

Lines changed: 48 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,5 @@
11
@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100;0,300;0,400;0,800;1,100;1,300;1,400;1,800&display=swap");
22

3-
:root {
4-
--gray-1: #3f3f3f;
5-
--gray-2: #32353a;
6-
--gray-3: #25282c;
7-
--gray-4: #151618;
8-
--gray-5: #151618;
9-
--gray-6: #111111;
10-
--white-1: #eeeeee;
11-
--white-2: #a9abb3;
12-
}
133
* {
144
font-family: inherit;
155
text-decoration: none;
@@ -32,6 +22,11 @@ body {
3222
}
3323
header {
3424
padding: 2rem 0 4rem 0;
25+
display: flex;
26+
flex-direction: row;
27+
align-items: flex-start;
28+
justify-content: space-between;
29+
gap: 1rem;
3530
}
3631
header .site-title {
3732
font-size: 4rem;
@@ -67,6 +62,24 @@ main {
6762
color: cyan;
6863
border-bottom: 1px solid cyan;
6964
}
65+
@media (prefers-color-scheme: light) {
66+
#text-wrapper a {
67+
color: #1ebaba;
68+
border-bottom: 1px solid #1ebaba;
69+
}
70+
}
71+
[data-theme="light"] {
72+
#text-wrapper a {
73+
color: #1ebaba;
74+
border-bottom: 1px solid #1ebaba;
75+
}
76+
}
77+
[data-theme="dark"] {
78+
#text-wrapper a {
79+
color: cyan;
80+
border-bottom: 1px solid cyan;
81+
}
82+
}
7083
#social-wrapper {
7184
margin-top: 1rem;
7285
}
@@ -77,6 +90,21 @@ main {
7790
margin: 0 0 0.3rem 0;
7891
transition: all 0.2s ease-in-out;
7992
}
93+
@media (prefers-color-scheme: light) {
94+
#social-wrapper img {
95+
filter: none !important;
96+
}
97+
}
98+
[data-theme="light"] {
99+
#social-wrapper img {
100+
filter: none !important;
101+
}
102+
}
103+
[data-theme="dark"] {
104+
#social-wrapper img {
105+
filter: invert() !important;
106+
}
107+
}
80108
#social-wrapper img:hover {
81109
transform: scale(1.2);
82110
}
@@ -132,6 +160,16 @@ main {
132160
body {
133161
padding: 1.5rem;
134162
}
163+
header {
164+
flex-direction: column;
165+
gap: 3rem;
166+
}
167+
header #dark-mode-toggle {
168+
display: flex;
169+
justify-content: flex-end;
170+
align-items: flex-end;
171+
align-self: flex-end;
172+
}
135173
header .site-title {
136174
font-size: 3rem;
137175
}

0 commit comments

Comments
 (0)