From 8abb88ffa3885f46e487bb1473db2246d2f74039 Mon Sep 17 00:00:00 2001 From: "louismaxime.piton" Date: Tue, 3 Oct 2023 16:24:26 +0200 Subject: [PATCH] Add form range color mode --- scss/_variables.scss | 10 +-- site/content/docs/5.3/dark-mode.md | 102 ++++++++++++++++------------- 2 files changed, 62 insertions(+), 50 deletions(-) diff --git a/scss/_variables.scss b/scss/_variables.scss index ab087b5c07..b4c4bf22e6 100644 --- a/scss/_variables.scss +++ b/scss/_variables.scss @@ -1280,20 +1280,20 @@ $form-range-track-cursor: pointer !default; $form-range-track-bg: var(--#{$prefix}secondary-bg) !default; $form-range-track-filled-bg: $primary !default; // Boosted mod $form-range-track-border-radius: null !default; // Boosted mod: instead of `1rem` -$form-range-track-box-shadow: inset 0 .25rem .25rem rgba($black, .1) !default; // Boosted mod: instead of `var(--#{$prefix}box-shadow-inset)` +$form-range-track-box-shadow: var(--#{$prefix}box-shadow-inset) !default; $form-range-thumb-width: 1rem !default; $form-range-thumb-height: $form-range-thumb-width !default; -$form-range-thumb-bg: $white !default; -$form-range-thumb-border: var(--#{$prefix}border-width) solid $black !default; // Boosted mod +$form-range-thumb-bg: var(--#{$prefix}body-bg) !default; // Boosted mod: instead of `$component-active-bg` +$form-range-thumb-border: var(--#{$prefix}border-width) solid var(--#{$prefix}highlight-bg) !default; // Boosted mod: instead of `0` $form-range-thumb-border-radius: 50% !default; $form-range-thumb-box-shadow: 0 .1rem .25rem rgba($black, .1) !default; $form-range-thumb-focus-box-shadow: null !default; // Boosted mod $form-range-thumb-focus-box-shadow-width: $input-focus-width !default; // For focus box shadow issue in Edge -$form-range-thumb-hover-bg: $black !default; // Boosted mod +$form-range-thumb-hover-bg: var(--#{$prefix}highlight-bg) !default; // Boosted mod $form-range-thumb-active-bg: $primary !default; // Boosted mod: instead of `tint-color($component-active-bg, 70%)` $form-range-thumb-active-border: $primary !default; // Boosted mod -$form-range-thumb-disabled-bg: $gray-500 !default; // Boosted mod: instead of `var(--#{$prefix}secondary-color)` +$form-range-thumb-disabled-bg: var(--#{$prefix}border-color-translucent) !default; // Boosted mod: instead of `var(--#{$prefix}secondary-color)` $form-range-thumb-transition: background-color $transition-duration $transition-timing, border-color $transition-duration $transition-timing !default; // Boosted mod: no box shadow // scss-docs-end form-range-variables diff --git a/site/content/docs/5.3/dark-mode.md b/site/content/docs/5.3/dark-mode.md index 8b22de888d..f7cb92f58a 100644 --- a/site/content/docs/5.3/dark-mode.md +++ b/site/content/docs/5.3/dark-mode.md @@ -103,7 +103,7 @@ Additional variables for dark-mode (temporary) ### Accordions -#### No theme +

No theme

@@ -144,9 +144,7 @@ Additional variables for dark-mode (temporary)
-#### Dark theme on container - -Using bg-body +

Dark theme on container

@@ -187,9 +185,7 @@ Using bg-body
-#### Light theme on container - -Using bg-body +

Light theme on container

@@ -230,7 +226,7 @@ Using bg-body
-#### Dark theme on component +

Dark theme on component

@@ -271,7 +267,7 @@ Using bg-body
-#### Light theme on component +

Light theme on component

@@ -314,7 +310,7 @@ Using bg-body ### Alerts -#### No theme +

No theme

-#### Dark theme on container - -Using bg-body +

Dark theme on container

-#### Light theme on container - -Using bg-body +

Light theme on container

-#### Dark theme on component +

Dark theme on component

-#### Light theme on component +

Light theme on component