|
77 | 77 |
|
78 | 78 | .citation a { |
79 | 79 | text-decoration: none; |
80 | | - color: #2c5aa0; |
| 80 | + color: var(--color-link); |
81 | 81 | font-weight: bold; |
82 | 82 | } |
83 | 83 |
|
84 | 84 | .citation a:hover { |
85 | 85 | text-decoration: underline; |
86 | 86 | } |
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 | | - |
103 | 87 | // Enhanced citation tooltips |
104 | 88 | // CSS-only Tooltip Styling with text wrapping and simplecite style |
105 | 89 | .citation { |
|
113 | 97 | bottom: 100%; |
114 | 98 | left: 50%; |
115 | 99 | transform: translateX(-50%) translateY(5px); |
116 | | - background: #333; |
117 | | - color: white; |
| 100 | + background: var(--tooltip-bg); |
| 101 | + color: var(--tooltip-color); |
118 | 102 | padding: 1px 6px; |
119 | 103 | border-radius: 4px; |
120 | 104 | font-size: 0.6em; |
|
129 | 113 | pointer-events: none; |
130 | 114 | box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); /* Subtle shadow like simplecite */ |
131 | 115 | line-height: 1.4; /* Better line spacing for wrapped text */ |
| 116 | + border: 1px solid var(--gray-200) |
132 | 117 | } |
133 | 118 |
|
134 | 119 | // Tooltip arrow |
|
139 | 124 | left: 50%; |
140 | 125 | transform: translateX(-50%) translateY(0); |
141 | 126 | border: 5px solid transparent; |
142 | | - border-top-color: #333; |
| 127 | + border-top-color: var(--tooltip-bg); |
143 | 128 | opacity: 0; |
144 | 129 | visibility: hidden; |
145 | 130 | transition: all 0.2s ease; |
|
161 | 146 | width: 250px; |
162 | 147 | font-size: 0.75em; |
163 | 148 | 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); |
166 | 151 | } |
167 | 152 |
|
168 | 153 | .citation.compact-tooltip::after { |
169 | | - border-top-color: #2c3e50; |
| 154 | + border-top-color: var(--gray-500); |
170 | 155 | } |
171 | 156 |
|
172 | 157 | // Ultra-compact bibliography with hover effects |
173 | 158 | .bibliography { |
174 | | - border-top: 1px solid #e0e0e0; |
| 159 | + border-top: 1px solid var(--gray-200); |
175 | 160 | margin-top: 1.5rem; |
176 | 161 | padding-top: 0.75rem; |
177 | 162 | font-size: 0.8em; |
178 | | - color: #666; |
| 163 | + color: var(--gray-500); |
179 | 164 | line-height: 1.2; |
180 | 165 | transition: all 0.3s ease; |
181 | 166 | } |
182 | 167 |
|
183 | 168 | /* Hover effect for entire bibliography */ |
184 | 169 | .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 */ |
187 | 172 | } |
188 | 173 |
|
189 | 174 | .bibliography h2 { |
190 | 175 | font-size: 1.1em; |
191 | | - color: #444; |
| 176 | + color: var(--body-font-color); |
192 | 177 | margin-bottom: 0.5rem; |
193 | 178 | transition: color 0.3s ease; |
194 | 179 | } |
195 | 180 |
|
196 | 181 | .bibliography:hover h2 { |
197 | | - color: #2c5aa0; /* Blue heading on hover */ |
| 182 | + color: var(--color-link); /* Blue heading on hover */ |
198 | 183 | } |
199 | 184 |
|
200 | 185 | .bibliography ol { |
|
212 | 197 |
|
213 | 198 | /* Hover effect for individual reference items */ |
214 | 199 | .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 */ |
217 | 202 | transform: translateX(2px); /* Slight shift to the right */ |
218 | 203 | } |
219 | 204 |
|
|
222 | 207 | } |
223 | 208 |
|
224 | 209 | .bibliography em { |
225 | | - color: #555; |
| 210 | + color: var(--gray-200); |
226 | 211 | font-style: italic; |
227 | 212 | } |
228 | 213 |
|
229 | 214 | .bibliography a { |
230 | | - color: #2c5aa0; |
| 215 | + color: var(--color-link); |
231 | 216 | text-decoration: none; |
232 | 217 | transition: color 0.2s ease; |
233 | 218 | } |
234 | 219 |
|
235 | 220 | .bibliography a:hover { |
236 | 221 | text-decoration: underline; |
237 | | - color: #1e3d6d; /* Darker blue on hover */ |
| 222 | + color: var(--color-visited-link); /* Darker blue on hover */ |
238 | 223 | } |
239 | 224 |
|
240 | 225 | /* Individual item link hover */ |
241 | 226 | .bibliography li:hover a { |
242 | | - color: #1e3d6d; |
| 227 | + color: var(--color-visited-link); |
243 | 228 | } |
244 | 229 |
|
245 | 230 | .citation-error { |
|
0 commit comments