@@ -157,40 +157,41 @@ div.ethical-sidebar, div.ethical-footer {
157157}
158158.document a : not (.sd-btn ): visited {
159159 color : # 551A8B ;
160- text-decoration-style : dotted; /* some browsers don't support this*/
160+ text-decoration-style : dotted; /* many browsers don't support this */
161161 text-decoration-color : # 551A8B ;
162162}
163163.document a : not (.sd-btn ): focus {
164164 outline : 2px solid # d71ef7 ;
165165}
166166.document a : not (.sd-btn ): hover {
167167 font-weight : bold;
168+ text-underline-offset : 0.3em ;
168169}
169170.document a : not (.sd-btn ): active {
170171 text-decoration-line : underline overline;
171172 color : # FF0000 ;
172173}
173- /*
174- .document a {
175- color: #0000EE !important ;
176- text-decoration-line: underline !important ;
177- text-decoration-style: solid !important ;
178- text-decoration-color: #0000EE !important ;
179- text-underline-offset: 0.2em !important ;
174+ /* handle dark mode links */
175+ html [ data-theme = 'dark' ] .document a : not (. sd-btn ) {
176+ color : # 249ee8 ;
177+ text-decoration-line : underline;
178+ text-decoration-style : solid;
179+ text-decoration-color : # 249ee8 ;
180+ text-underline-offset : 0.2em ;
180181}
181- .document a:visited {
182- color: #551A8B !important ;
183- text-decoration-style: dotted !important ;
184- text-decoration-color: #551A8B !important ;
182+ html [ data-theme = 'dark' ] .document a : not (. sd-btn ) : visited {
183+ color : # 995BD5 ;
184+ text-decoration-style : dotted;
185+ text-decoration-color : # 995BD5 ;
185186}
186- .document a:focus {
187- outline: 2px solid #d71ef7 !important ;
187+ html [ data-theme = 'dark' ] .document a : not (. sd-btn ) : focus {
188+ outline : 2px solid # d71ef7 ;
188189}
189- .document a:hover {
190- font-weight: bold !important;
190+ html [data-theme = 'dark' ] .document a : not (.sd-btn ): hover {
191+ font-weight : bold;
192+ text-underline-offset : 0.3em ;
191193}
192- .document a:active {
193- text-decoration-line: underline overline !important ;
194- color: #FF0000 !important ;
194+ html [ data-theme = 'dark' ] .document a : not (. sd-btn ) : active {
195+ color : # FF0000 ;
196+ text-decoration-line : underline overline ;
195197}
196- */
0 commit comments