[go: nahoru, domu]

Skip to content

Commit

Permalink
[skip ci] .
Browse files Browse the repository at this point in the history
  • Loading branch information
julien-deramond committed Jan 4, 2023
1 parent 2fee090 commit 2d5a8db
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
2 changes: 2 additions & 0 deletions scss/_reboot.scss
Original file line number Diff line number Diff line change
Expand Up @@ -337,10 +337,12 @@ sup { top: -.5em; }

a {
color: var(--#{$prefix}link-color);
color: rgba(var(--#{$prefix}link-color-rgb), var(--#{$prefix}link-opacity, 1));
text-decoration: $link-decoration;

&:hover {
color: var(--#{$prefix}link-hover-color);
--#{$prefix}link-color-rgb: var(--#{$prefix}link-hover-color-rgb);
text-decoration: $link-hover-decoration;
}
}
Expand Down
15 changes: 12 additions & 3 deletions scss/_root.scss
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@
--#{$prefix}heading-color: #{$headings-color};
}

--#{$prefix}link-color: #{$link-color};
--#{$prefix}link-color-rgb: #{to-rgb($link-color)};
--#{$prefix}link-decoration: #{$link-decoration};

--#{$prefix}link-hover-color: #{$link-hover-color};
--#{$prefix}link-hover-color-rgb: #{to-rgb($link-hover-color)};

// scss-docs-start root-border-var
--#{$prefix}border-width: #{$border-width};
--#{$prefix}border-style: #{$border-style};
Expand All @@ -76,9 +83,6 @@
--#{$prefix}border-radius-pill: #{$border-radius-pill};
// scss-docs-end root-border-var

--#{$prefix}link-color: #{$link-color};
--#{$prefix}link-hover-color: #{$link-hover-color};

--#{$prefix}focus-visible-inner-color: #{$focus-visible-inner-color}; // Boosted mod
--#{$prefix}focus-visible-outer-color: #{$focus-visible-outer-color}; // Boosted mod

Expand Down Expand Up @@ -138,6 +142,11 @@
--#{$prefix}body-bg-rgb: #{to-rgb($body-bg-dark)};

--#{$prefix}heading-color: #{$headings-color-dark};

--#{$prefix}link-color: #{$link-color-dark};
--#{$prefix}link-hover-color: #{$link-hover-color-dark};
--#{$prefix}link-color-rgb: #{to-rgb($link-color-dark)};
--#{$prefix}link-hover-color-rgb: #{to-rgb($link-hover-color-dark)};
// scss-docs-end root-dark-mode-vars
}
}

0 comments on commit 2d5a8db

Please sign in to comment.