KBach created this task.
KBach added projects: Developer-Advocacy (Oct-Dec 2022),
Pywikibot-Documentation, Pywikibot.
TASK DESCRIPTION
In the nature theme, the ``.viewcode-block:target`` - representing a code
snippet targeted by an anchor or link - is highlighted with a different
background color. This is not the case in Furo at the moment.
My initial attempt at adding highlighting used the following CSS code:
@media screen and (prefers-color-scheme: dark) {
.viewcode-block:target {
background-color: #131313;
border: 1px solid #666;
}
.viewcode-block .viewcode-back {
color: #3facad;
}
}
@media screen and (prefers-color-scheme: light) {
.viewcode-block:target {
background-color: #e3e3e3;
border: 1px solid #a0a0a0;
}
}
However, this code seems to add incorrect highlighting as indicated in this
comment <https://phabricator.wikimedia.org/T322212#8420305> by @Xqt
This task is about finding a better way to do this.
TASK DETAIL
https://phabricator.wikimedia.org/T323800
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: KBach
Cc: whym, pywikibot-bugs-list, Aklapper, binbot, Dvorapa, KBach, Xqt,
Maberdour, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck,
Zkhalido, Demian, Pavithraes, Urstrulykkr, Viztor, Wenyi, Jayprakash12345,
Tbscho, srishakatux, MayS, Mdupont, JJMC89, Altostratus, Avicennasis,
mys_721tx, Gryllida, jayvdb, Masti, Alchimista, Rfarrand, bd808, jeremyb
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]