Skip to content

Commit

Permalink
First try to dark texts
Browse files Browse the repository at this point in the history
Signed-off-by: louismaximepiton <[email protected]>
  • Loading branch information
louismaximepiton committed Jan 17, 2022
1 parent 0adb52f commit 9f13c7e
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 4 deletions.
40 changes: 37 additions & 3 deletions scss/_reboot.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// stylelint-disable declaration-no-important, selector-no-qualifying-type, property-no-vendor-prefix
// stylelint-disable declaration-no-important, selector-no-qualifying-type, property-no-vendor-prefix, selector-max-type


// Reboot
Expand Down Expand Up @@ -232,7 +232,6 @@ ul {

// Future-proof markers' color
// See https://developer.mozilla.org/fr/docs/Web/CSS/::marker
// stylelint-disable selector-max-type
li::marker {
color: $accessible-orange;
vertical-align: middle;
Expand All @@ -253,7 +252,6 @@ li::before {
li li::before { color: $gray-600; }

li li li::before { color: $gray-500; }
// stylelint-enable selector-max-type
// End mod

dt {
Expand Down Expand Up @@ -727,3 +725,39 @@ progress {
[hidden] {
display: none !important;
}

// Boosted mod
[class*="-dark"] {
li::marker { color: $brand-orange; }
li li::marker { color: $gray-600; }
li li li::marker { color: $gray-700; }

li::before { color: $brand-orange; }
li li::before { color: $gray-600; }
li li li::before { color: $gray-700; }

caption { color: $white; }
// No <mark> because of accessibility
var,
code,
figcaption { color: $code-color-dark; }

pre { color: $pre-color-dark; }

a > * { color: inherit; }

a:not(.btn) {
color: $link-color-dark;

&:hover,
&:focus,
&:active,
&.active { color: $link-hover-color-dark; }
}

kbd {
color: $kbd-color-dark;
background-color: $kbd-bg-dark;
}
}
// End mod
7 changes: 6 additions & 1 deletion scss/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -460,11 +460,12 @@ $link-shade-percentage: 20% !default;
$link-hover-color: $accessible-orange !default;
$link-hover-decoration: null !default;

$link-color-dark: $white !default;
$link-hover-color-dark: $brand-orange !default;

$stretched-link-pseudo-element: after !default;
$stretched-link-z-index: 1 !default;


// Boosted mod
$linked-chevron-icon-width: subtract(.5rem, 1px) !default;
$linked-chevron-icon-height: $spacer * .5 !default;
Expand Down Expand Up @@ -1793,14 +1794,18 @@ $offcanvas-backdrop-opacity: $modal-backdrop-opacity !default;

$code-font-size: .875em !default;
$code-color: $gray-700 !default;
$code-color-dark: $gray-600 !default;

$kbd-padding-y: $spacer * .05 !default;
$kbd-padding-x: $spacer * .05 !default;
$kbd-font-size: $code-font-size !default;
$kbd-color: $black !default;
$kbd-bg: $gray-300 !default;
$kbd-color-dark: $white !default;
$kbd-bg-dark: $gray-900 !default;

$pre-color: $gray-900 !default;
$pre-color-dark: $gray-300 !default;
$pre-line-height: 1.25 !default; // Boosted mod

//
Expand Down

0 comments on commit 9f13c7e

Please sign in to comment.