Изменения
Модуль:Citation/CS1/styles.css (посмотреть исходный код)
Версия от 14:49, 6 ноября 2024
, 10 месяцев назадпеределка иконок через фон ::after вместо фона самой ссылки для поддержки тёмной темы
and then exclude them later
and then exclude them later
*/
*/
.id-lock-free.id-lock-free a {
.id-lock-free a::after,
.id-lock-limited a::after,
.id-lock-registration a::after,
.id-lock-subscription a::after,
.cs1-ws-icon a::after {
content: '';
width: 1.1em;
height: 1.1em;
display: inline-block;
vertical-align: middle;
background-position: center;
background-repeat: no-repeat;
background-size: contain;
}
}
.id-lock-limited.id-lock-limited a,
.id-lock-free.id-lock-free a::after {
background-image: url(//upload.wikimedia.org/wikipedia/commons/6/65/Lock-green.svg);
background: url(//upload.wikimedia.org/wikipedia/commons/d/d6/Lock-gray-alt-2.svg)
}
}
.id-lock-subscription.id-lock-subscription a {
.id-lock-limited.id-lock-limited a::after,
background: url(//upload.wikimedia.org/wikipedia/commons/a/aa/Lock-red-alt-2.svg)
.id-lock-registration.id-lock-registration a::after {
background-image: url(//upload.wikimedia.org/wikipedia/commons/d/d6/Lock-gray-alt-2.svg);
}
.id-lock-subscription.id-lock-subscription a::after {
background-image: url(//upload.wikimedia.org/wikipedia/commons/a/aa/Lock-red-alt-2.svg);
}
}
as in cite wikisource
as in cite wikisource
*/
*/
.cs1-ws-icon a {
.cs1-ws-icon a::after {
background: url(//upload.wikimedia.org/wikipedia/commons/4/4c/Wikisource-logo.svg)
background-image: url(//upload.wikimedia.org/wikipedia/commons/4/4c/Wikisource-logo.svg);
}
}
html.skin-theme-clientpref-night .cs1-maint {
html.skin-theme-clientpref-night .cs1-maint {
color: #18911f;
color: #18911f;
}
html.skin-theme-clientpref-night .id-lock-free a::after,
html.skin-theme-clientpref-night .id-lock-limited a::after,
html.skin-theme-clientpref-night .id-lock-registration a::after,
html.skin-theme-clientpref-night .id-lock-subscription a::after {
filter: invert(1) hue-rotate(180deg);
}
}
}
}
html.skin-theme-clientpref-os .cs1-maint {
html.skin-theme-clientpref-os .cs1-maint {
color: #18911f;
color: #18911f;
}
html.skin-theme-clientpref-os .id-lock-free a::after,
html.skin-theme-clientpref-os .id-lock-limited a::after,
html.skin-theme-clientpref-os .id-lock-registration a::after,
html.skin-theme-clientpref-os .id-lock-subscription a::after {
filter: invert(1) hue-rotate(180deg);
}
}
}
}