Skip to content

Commit 5b21389

Browse files
committed
modify dark mode colours
- modify bibliography darkmode colours for easier readability
1 parent 1fb6898 commit 5b21389

File tree

2 files changed

+28
-37
lines changed

2 files changed

+28
-37
lines changed

assets/_custom.scss

Lines changed: 20 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -77,29 +77,13 @@
7777

7878
.citation a {
7979
text-decoration: none;
80-
color: #2c5aa0;
80+
color: var(--color-link);
8181
font-weight: bold;
8282
}
8383

8484
.citation a:hover {
8585
text-decoration: underline;
8686
}
87-
// Citation styles for inline numeric references
88-
.citation {
89-
font-size: 1em;
90-
margin: 0 2px;
91-
}
92-
93-
.citation a {
94-
text-decoration: none;
95-
color: #2c5aa0;
96-
font-weight: bold;
97-
}
98-
99-
.citation a:hover {
100-
text-decoration: underline;
101-
}
102-
10387
// Enhanced citation tooltips
10488
// CSS-only Tooltip Styling with text wrapping and simplecite style
10589
.citation {
@@ -113,8 +97,8 @@
11397
bottom: 100%;
11498
left: 50%;
11599
transform: translateX(-50%) translateY(5px);
116-
background: #333;
117-
color: white;
100+
background: var(--tooltip-bg);
101+
color: var(--tooltip-color);
118102
padding: 1px 6px;
119103
border-radius: 4px;
120104
font-size: 0.6em;
@@ -129,6 +113,7 @@
129113
pointer-events: none;
130114
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); /* Subtle shadow like simplecite */
131115
line-height: 1.4; /* Better line spacing for wrapped text */
116+
border: 1px solid var(--gray-200)
132117
}
133118

134119
// Tooltip arrow
@@ -139,7 +124,7 @@
139124
left: 50%;
140125
transform: translateX(-50%) translateY(0);
141126
border: 5px solid transparent;
142-
border-top-color: #333;
127+
border-top-color: var(--tooltip-bg);
143128
opacity: 0;
144129
visibility: hidden;
145130
transition: all 0.2s ease;
@@ -161,40 +146,40 @@
161146
width: 250px;
162147
font-size: 0.75em;
163148
padding: 6px 10px;
164-
background: #2c3e50; /* Dark blue-grey like academic tools */
165-
border: 1px solid #34495e;
149+
background: var(--tooltip-bg); /* Dark blue-grey like academic tools */
150+
border: 1px solid var(--gray-200);
166151
}
167152

168153
.citation.compact-tooltip::after {
169-
border-top-color: #2c3e50;
154+
border-top-color: var(--gray-500);
170155
}
171156

172157
// Ultra-compact bibliography with hover effects
173158
.bibliography {
174-
border-top: 1px solid #e0e0e0;
159+
border-top: 1px solid var(--gray-200);
175160
margin-top: 1.5rem;
176161
padding-top: 0.75rem;
177162
font-size: 0.8em;
178-
color: #666;
163+
color: var(--gray-500);
179164
line-height: 1.2;
180165
transition: all 0.3s ease;
181166
}
182167

183168
/* Hover effect for entire bibliography */
184169
.bibliography:hover {
185-
color: #444; /* Darker text on hover */
186-
border-top-color: #2c5aa0; /* Blue line on hover */
170+
color: var(--body-font-color); /* Darker text on hover */
171+
border-top-color: var(--color-link); /* Blue line on hover */
187172
}
188173

189174
.bibliography h2 {
190175
font-size: 1.1em;
191-
color: #444;
176+
color: var(--body-font-color);
192177
margin-bottom: 0.5rem;
193178
transition: color 0.3s ease;
194179
}
195180

196181
.bibliography:hover h2 {
197-
color: #2c5aa0; /* Blue heading on hover */
182+
color: var(--color-link); /* Blue heading on hover */
198183
}
199184

200185
.bibliography ol {
@@ -212,8 +197,8 @@
212197

213198
/* Hover effect for individual reference items */
214199
.bibliography li:hover {
215-
background-color: #f8f9fa; /* Light grey background */
216-
color: #333; /* Darker text */
200+
background-color: var(--gray-100); /* Light grey background */
201+
color: var(--body-font-color); /* Darker text */
217202
transform: translateX(2px); /* Slight shift to the right */
218203
}
219204

@@ -222,24 +207,24 @@
222207
}
223208

224209
.bibliography em {
225-
color: #555;
210+
color: var(--gray-200);
226211
font-style: italic;
227212
}
228213

229214
.bibliography a {
230-
color: #2c5aa0;
215+
color: var(--color-link);
231216
text-decoration: none;
232217
transition: color 0.2s ease;
233218
}
234219

235220
.bibliography a:hover {
236221
text-decoration: underline;
237-
color: #1e3d6d; /* Darker blue on hover */
222+
color: var(--color-visited-link); /* Darker blue on hover */
238223
}
239224

240225
/* Individual item link hover */
241226
.bibliography li:hover a {
242-
color: #1e3d6d;
227+
color: var(--color-visited-link);
243228
}
244229

245230
.citation-error {

assets/_defaults.scss

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ $hint-colors: (
4545
--hint-color-info: #6bf;
4646
--hint-color-warning: #fd6;
4747
--hint-color-danger: #f66;
48+
49+
--tooltip-bg: #333;
50+
--tooltip-color: #fff;
4851
}
4952

5053
@mixin theme-dark {
@@ -55,12 +58,15 @@ $hint-colors: (
5558
--color-link: #84b2ff;
5659
--color-visited-link: #b88dff;
5760

58-
--body-background: #343a40;
59-
--body-font-color: #e9ecef;
61+
--body-background: #0D0D0D;
62+
--body-font-color: #FFFFFF;
6063

6164
--icon-filter: brightness(0) invert(1);
6265

6366
--hint-color-info: #6bf;
6467
--hint-color-warning: #fd6;
6568
--hint-color-danger: #f66;
69+
70+
--tooltip-bg: rgba(0,0,0,0.8);
71+
--tooltip-color: #fff;
6672
}

0 commit comments

Comments
 (0)