feat: remove color-link LESS variable and scope the CSS variable

This commit is contained in:
alistair3149 2021-07-27 17:33:59 -04:00
parent 020d05c253
commit cff27d972c
No known key found for this signature in database
GPG key ID: 94D081060FD3DD9C
3 changed files with 9 additions and 9 deletions

View file

@ -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;
}
}
}

View file

@ -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;

View file

@ -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
*/