Skip to content

Commit

Permalink
stepped-process dark mode (with no more dark-variant)
Browse files Browse the repository at this point in the history
  • Loading branch information
hannahiss committed Sep 27, 2023
1 parent faa9865 commit a7695cf
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
12 changes: 12 additions & 0 deletions scss/_stepped-process.scss
Original file line number Diff line number Diff line change
Expand Up @@ -143,3 +143,15 @@
flex: $stepped-process-max-items - 1;
}
}

@if $enable-dark-mode {
@include color-mode(dark) {
.stepped-process {
--#{$prefix}stepped-process-item-bg: #{$step-item-dark-bg};
--#{$prefix}stepped-process-item-next-bg: #{$step-item-dark-next-bg};
--#{$prefix}stepped-process-item-drop-shadow: #{$step-item-dark-drop-shadow};
--#{$prefix}stepped-process-link-color: #{$step-link-dark-color};
--#{$prefix}stepped-process-link-next-color: #{$step-link-dark-next-color};
}
}
}
10 changes: 10 additions & 0 deletions scss/_variables-dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,13 @@ $form-invalid-border-color-dark: $red-300 !default;
// Boosted mod: no $accordion-button-icon-dark
// Boosted mod: no $accordion-button-active-icon-dark
// scss-docs-end sass-dark-mode-vars

//
// Stepped process
//

$step-item-dark-bg: $white !default;
$step-item-dark-next-bg: $gray-700 !default;
$step-item-dark-drop-shadow: drop-shadow($step-item-shadow-size 0 0 $body-bg-dark) #{"/* rtl:"} drop-shadow(calc(-1 * #{$step-item-shadow-size}) 0 0 $body-bg-dark) #{"*/"} !default; // stylelint-disable-line function-disallowed-list
$step-link-dark-color: $black !default;
$step-link-dark-next-color: $body-color-dark !default;

0 comments on commit a7695cf

Please sign in to comment.