mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-24 14:34:09 +00:00
feat: remove color-link LESS variable and scope the CSS variable
This commit is contained in:
parent
020d05c253
commit
cff27d972c
|
@ -236,14 +236,14 @@ video {
|
|||
|
||||
// Have to hardcode the color since the filter breaks the color
|
||||
a {
|
||||
color: @color-link;
|
||||
color: @color-primary;
|
||||
|
||||
&:hover {
|
||||
color: @color-link--hover;
|
||||
color: @color-primary--hover;
|
||||
}
|
||||
|
||||
&:active {
|
||||
color: @color-link--active;
|
||||
color: @color-primary--active;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -50,9 +50,6 @@
|
|||
--color-warning: @color-warning;
|
||||
--color-success: @color-success;
|
||||
|
||||
--color-link: @color-link;
|
||||
--color-link--hover: @color-link--hover;
|
||||
--color-link--active: @color-link--active;
|
||||
--color-link-new: @color-link-new;
|
||||
--color-link-new--hover: @color-link-new--hover;
|
||||
--color-link-new--active: @color-link-new--active;
|
||||
|
@ -135,9 +132,6 @@ html {
|
|||
--color-base--emphasized: @dark-color-base--emphasized;
|
||||
--color-base--subtle: @dark-color-base--subtle;
|
||||
|
||||
--color-link: @dark-color-link;
|
||||
--color-link--hover: @dark-color-link--hover;
|
||||
--color-link--active: @dark-color-link--active;
|
||||
--color-link-new: @dark-color-link-new;
|
||||
--color-link-new--hover: @dark-color-link-new--hover;
|
||||
--color-link-new--active: @dark-color-link-new--active;
|
||||
|
|
|
@ -24,6 +24,12 @@
|
|||
--color-surface-2--active: @color-surface-2--active;
|
||||
}
|
||||
|
||||
a {
|
||||
--color-link: ~'var( --color-primary )';
|
||||
--color-link--hover: ~'var( --color-primary--hover )';
|
||||
--color-link--active: ~'var( --color-primary--active )';
|
||||
}
|
||||
|
||||
/**
|
||||
* Dark theme
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue