Skip to content

Commit 3b53dbc

Browse files
committed
feat: add table styles, update callout styles, and blue link colours in content
1 parent cb1df69 commit 3b53dbc

File tree

2 files changed

+58
-12
lines changed

2 files changed

+58
-12
lines changed

hugo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ theme = "tales"
1313
linkedin = "https://www.linkedin.com/in/dewaldv/"
1414
1515

16+
[markup.goldmark.renderer]
17+
unsafe = true
18+
1619
[menu]
1720
[[menu.main]]
1821
identifier = "about"

themes/tales/static/css/style.css

Lines changed: 55 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ html {
88
:root {
99
--bgcolor: #f5f5f5;
1010
--fontcolor: #222;
11-
--linkcolor: #444;
12-
--visitedcolor: #555;
11+
--linkcolor: #3a6a8f;
12+
--visitedcolor: #2a5575;
1313
--precolor: #222;
1414
--prebgcolor: #e0e0e0;
15+
--calloutbgcolor: #ebebeb;
1516
--hrcolor: #ccc;
1617
--mutedcolor: #666;
1718
}
@@ -21,10 +22,11 @@ html {
2122
:root {
2223
--bgcolor: #202020;
2324
--fontcolor: #e0e0e0;
24-
--linkcolor: #dcdcdc;
25-
--visitedcolor: #dcdcdc;
25+
--linkcolor: #5a8fab;
26+
--visitedcolor: #4a7a95;
2627
--precolor: #fff;
2728
--prebgcolor: #383838;
29+
--calloutbgcolor: #2e2e2e;
2830
--hrcolor: #444;
2931
--mutedcolor: #999;
3032
}
@@ -34,10 +36,11 @@ html {
3436
[data-theme="dark"] {
3537
--bgcolor: #202020;
3638
--fontcolor: #e0e0e0;
37-
--linkcolor: #dcdcdc;
38-
--visitedcolor: #dcdcdc;
39+
--linkcolor: #5a8fab;
40+
--visitedcolor: #4a7a95;
3941
--precolor: #fff;
4042
--prebgcolor: #383838;
43+
--calloutbgcolor: #2e2e2e;
4144
--hrcolor: #444;
4245
--mutedcolor: #999;
4346
}
@@ -46,10 +49,11 @@ html {
4649
[data-theme="light"] {
4750
--bgcolor: #f5f5f5;
4851
--fontcolor: #222;
49-
--linkcolor: #444;
50-
--visitedcolor: #555;
52+
--linkcolor: #3a6a8f;
53+
--visitedcolor: #2a5575;
5154
--precolor: #222;
5255
--prebgcolor: #e0e0e0;
56+
--calloutbgcolor: #ebebeb;
5357
--hrcolor: #ccc;
5458
--mutedcolor: #666;
5559
}
@@ -66,14 +70,29 @@ body {
6670

6771
/* Links */
6872
a:link {
69-
color: var(--linkcolor);
73+
color: var(--fontcolor);
7074
}
7175

7276
a:visited {
73-
color: var(--visitedcolor);
77+
color: var(--mutedcolor);
7478
}
7579

7680
a:active {
81+
color: var(--mutedcolor);
82+
}
83+
84+
article a:link,
85+
main ul a:link {
86+
color: var(--linkcolor);
87+
}
88+
89+
article a:visited,
90+
main ul a:visited {
91+
color: var(--visitedcolor);
92+
}
93+
94+
article a:active,
95+
main ul a:active {
7796
color: var(--visitedcolor);
7897
}
7998

@@ -147,6 +166,21 @@ hr {
147166
border-top: 1px solid var(--hrcolor);
148167
}
149168

169+
/* Update callout */
170+
.callout-update {
171+
border-left: 3px solid var(--hrcolor);
172+
background: var(--calloutbgcolor);
173+
padding: 12px 16px;
174+
margin: 1em 0;
175+
}
176+
177+
.callout-update-label {
178+
display: block;
179+
color: var(--fontcolor);
180+
font-weight: bold;
181+
margin-bottom: 4px;
182+
}
183+
150184
/* Tables */
151185
table {
152186
border-collapse: collapse;
@@ -213,11 +247,20 @@ img {
213247
gap: 20px;
214248
}
215249

216-
.site-nav a {
250+
.site-nav a,
251+
.site-nav a:link,
252+
.site-nav a:visited,
253+
.site-nav a:active,
254+
.site-title,
255+
.site-title:link,
256+
.site-title:visited,
257+
.site-title:active {
258+
color: var(--fontcolor);
217259
text-decoration: none;
218260
}
219261

220-
.site-nav a:hover {
262+
.site-nav a:hover,
263+
.site-title:hover {
221264
text-decoration: underline;
222265
}
223266

0 commit comments

Comments
 (0)