Skip to content

Commit 6de295b

Browse files
committed
Try to fix the amber css style
1 parent 115e5ab commit 6de295b

File tree

2 files changed

+20
-17
lines changed

2 files changed

+20
-17
lines changed

css/amber.css

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,34 @@
11
body {
2-
background-color: black;
3-
colour: #ffb000;
2+
background-color: black !important;
3+
color: #ffb000 !important;
44
font-family: monospace;
55
}
66
#pagelink {
7-
color: #ffb000;
7+
color: #ffb000 !important;
88
}
99
#pagelink > a {
1010
text-decoration: none;
1111
}
1212
#hero h1 { color: #ffb000; }
1313
#hero nav h2 { color: #ffb000; }
1414
.project { color: #ffb000; }
15-
.project > a { text-decoration: none; }
16-
.project > a > h3 { text-decoration: underline; }
15+
.project a { text-decoration: none; }
16+
.project a > project-title {
17+
text-decoration: underline;
18+
}
1719
#projects h2 { color: #ffb000;}
1820
p, li { color: #ffb000; font-family: monospace; }
1921

2022
.button {
21-
background-color: #004fff;
22-
color: white;
23+
background-color: #004fff !important;
24+
color: white !important;
2325
filter: invert(1);
2426
}
2527

26-
a, h1, h2, h3 { color: #ffb000; }
28+
a, h1, h2, h3, project-title { color: #ffb000 !important; }
2729
a { text-decoration: underline; }
2830

2931
img[src*="images/logo-placeholder.png"] {
3032
filter: hue-rotate(-217deg) saturate(214%) brightness(90%);
3133
}
34+

css/style.css

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ section { max-width: 960px; margin: 0 auto; }
5656
.project img { display: inline-block; width: 1.5em; height: 1.5em; }
5757
.project a:hover { text-decoration: none; }
5858
.repo-icons { float: right; z-index: 99; }
59-
.project > a > project-title:hover { text-decoration: underline; }
59+
.project a:hover > project-title,
60+
.project a:active > project-title { text-decoration: underline; }
6061
.repo-icons img:not(.nofilter) {
6162
filter: invert(40%);
6263
}
@@ -154,25 +155,24 @@ span.author:before { font-style: normal; content: "by "; }
154155
/* Dark mode tweaks: */
155156
@media (prefers-color-scheme: dark) {
156157
#pagelink, a {
157-
color:#E0A0F0 !important;
158+
color:#E0A0F0;
158159
}
159160
body {
160-
background-color:#242138 !important;
161+
background-color:#242138;
161162
color:#dbd1e1;
162163
}
163164
h1, h2, #projects h2 {
164-
color:white !important;
165+
color:white;
165166
}
166167
.button {
167-
background-color:#532e93 !important;
168+
background-color:#532e93;
168169
}
169170
.tag {
170-
background-color:#3b2e53 !important;
171-
color:#d0a6d4 !important
172-
;
171+
background-color:#3b2e53;
172+
color:#d0a6d4;
173173
}
174174
.tag-selected {
175-
background-color:#a571ab !important;
175+
background-color:#a571ab;
176176
color:#201720;
177177
}
178178
}

0 commit comments

Comments
 (0)