aboutsummaryrefslogtreecommitdiff
path: root/packages/components/src/components/Slider/Slider.scss
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2025-02-25 01:03:25 -0500
committerbobzel <zzzman@gmail.com>2025-02-25 01:03:25 -0500
commit515707c4561eb526426b8fa07dd50bd499fb91cc (patch)
treef4cbc69387da19add6dbc88acecbcdbdca575039 /packages/components/src/components/Slider/Slider.scss
parent30b07ed24fbe5e6d49741bc63031807408cd4a0c (diff)
added a hideUI option to hide buttons. fixed a mess of runtime warnings mostly related to how scss files can be included in each other
Diffstat (limited to 'packages/components/src/components/Slider/Slider.scss')
-rw-r--r--packages/components/src/components/Slider/Slider.scss305
1 files changed, 150 insertions, 155 deletions
diff --git a/packages/components/src/components/Slider/Slider.scss b/packages/components/src/components/Slider/Slider.scss
index 9a9fc6172..a653f024f 100644
--- a/packages/components/src/components/Slider/Slider.scss
+++ b/packages/components/src/components/Slider/Slider.scss
@@ -1,168 +1,163 @@
-@import '../../global/globalCssVariables.scss';
+@use '../../global/globalCssVariables.scss' as global;
.slider-container {
- display: flex;
- position: relative;
- justify-content: center;
- align-items: center;
- min-width: 200px;
- width: 100%;
- height: 100%;
- font-family: $default-font;
-
- .selected-range {
- width: 100%;
- background: $medium-blue;
- }
-
- .range {
- position: absolute;
- background: $light-gray;
- }
-
- .box-minmax{
- width: 100%;
display: flex;
- justify-content: space-between;
- font-size: 20px;
- color: $medium-blue;
- position: absolute;
- top: 110%;
- }
- .range-slider {
- margin: 0px;
- position: absolute;
+ position: relative;
+ justify-content: center;
+ align-items: center;
+ min-width: 200px;
width: 100%;
height: 100%;
- top: 0px;
- left: 0px;
-
- .rs-label-container {
- display: flex;
- position: absolute;
- justify-content: center;
- align-items: center;
- overflow: visible;
- border-radius: $standard-border-radius;
- z-index: 45;
- pointer-events: none;
-
- .rs-label {
- display: flex;
- font-size: smaller;
- white-space: nowrap;
- border-radius: 100%;
- text-align: center;
- text-wrap: wrap;
- word-break: break-all;
- justify-content: center;
- align-items: center;
- font-family: $default-font;
- user-select: none;
- pointer-events: none;
- top: 0px;
- width: fit-content;
- border-radius: $standard-border-radius;
- z-index: 40;
- }
-
- }
-
- .rs-range {
- width: 100%;
- position: relative;
- background: transparent;
- pointer-events: none;
- -webkit-appearance: none;
- margin: 0px;
- z-index: 20;
-
- &:focus {
- outline: none;
- }
-
- &::-webkit-slider-runnable-track {
- width: 100%;
- background: none;
- cursor: pointer;
- box-shadow: none;
- -webkit-appearance: none;
- pointer-events: none;
- }
- &::-moz-range-track {
- width: 100%;
- cursor: pointer;
- box-shadow: none;
- -webkit-appearance: none;
- pointer-events: none;
- }
-
- &::-webkit-slider-thumb {
- cursor: ew-resize;
- -webkit-appearance: none;
- pointer-events: auto;
- }
- &::-moz-range-thumb {
- cursor: pointer;
- -webkit-appearance: none;
- pointer-events: auto;
- }
-
- &::-moz-focus-outer {
- border: 0;
- }
-
- &.xsmall {
- &::-webkit-slider-runnable-track {
- height: $xsmall;
- }
+ font-family: global.$default-font;
- &::-webkit-slider-thumb {
- height: $xsmall;
- width: $xsmall;
- border-radius: $xsmall;
- }
+ .selected-range {
+ width: 100%;
+ background: global.$medium-blue;
}
- &.small {
- &::-webkit-slider-runnable-track {
- height: $small;
- }
-
- &::-webkit-slider-thumb {
- height: $small;
- width: $small;
- border-radius: $small;
- }
+ .range {
+ position: absolute;
+ background: global.$light-gray;
}
- &.medium {
- &::-webkit-slider-runnable-track {
- height: $medium;
- }
-
- &::-webkit-slider-thumb {
- height: $medium;
- width: $medium;
- border-radius: $medium;
- }
+ .box-minmax {
+ width: 100%;
+ display: flex;
+ justify-content: space-between;
+ font-size: 20px;
+ color: global.$medium-blue;
+ position: absolute;
+ top: 110%;
}
-
- &.large {
- &::-webkit-slider-runnable-track {
- height: $large;
- }
-
- &::-webkit-slider-thumb {
- height: $large;
- width: $large;
- border-radius: $large;
- }
+ .range-slider {
+ margin: 0px;
+ position: absolute;
+ width: 100%;
+ height: 100%;
+ top: 0px;
+ left: 0px;
+
+ .rs-label-container {
+ display: flex;
+ position: absolute;
+ justify-content: center;
+ align-items: center;
+ overflow: visible;
+ border-radius: global.$standard-border-radius;
+ z-index: 45;
+ pointer-events: none;
+
+ .rs-label {
+ display: flex;
+ font-size: smaller;
+ white-space: nowrap;
+ border-radius: 100%;
+ text-align: center;
+ text-wrap: wrap;
+ word-break: break-all;
+ justify-content: center;
+ align-items: center;
+ font-family: global.$default-font;
+ user-select: none;
+ pointer-events: none;
+ top: 0px;
+ width: fit-content;
+ border-radius: global.$standard-border-radius;
+ z-index: 40;
+ }
+ }
+
+ .rs-range {
+ width: 100%;
+ position: relative;
+ background: transparent;
+ pointer-events: none;
+ -webkit-appearance: none;
+ margin: 0px;
+ z-index: 20;
+
+ &:focus {
+ outline: none;
+ }
+
+ &::-webkit-slider-runnable-track {
+ width: 100%;
+ background: none;
+ cursor: pointer;
+ box-shadow: none;
+ -webkit-appearance: none;
+ pointer-events: none;
+ }
+ &::-moz-range-track {
+ width: 100%;
+ cursor: pointer;
+ box-shadow: none;
+ -webkit-appearance: none;
+ pointer-events: none;
+ }
+
+ &::-webkit-slider-thumb {
+ cursor: ew-resize;
+ -webkit-appearance: none;
+ pointer-events: auto;
+ }
+ &::-moz-range-thumb {
+ cursor: pointer;
+ -webkit-appearance: none;
+ pointer-events: auto;
+ }
+
+ &::-moz-focus-outer {
+ border: 0;
+ }
+
+ &.xsmall {
+ &::-webkit-slider-runnable-track {
+ height: global.$xsmall;
+ }
+
+ &::-webkit-slider-thumb {
+ height: global.$xsmall;
+ width: global.$xsmall;
+ border-radius: global.$xsmall;
+ }
+ }
+
+ &.small {
+ &::-webkit-slider-runnable-track {
+ height: global.$small;
+ }
+
+ &::-webkit-slider-thumb {
+ height: global.$small;
+ width: global.$small;
+ border-radius: global.$small;
+ }
+ }
+
+ &.medium {
+ &::-webkit-slider-runnable-track {
+ height: global.$medium;
+ }
+
+ &::-webkit-slider-thumb {
+ height: global.$medium;
+ width: global.$medium;
+ border-radius: global.$medium;
+ }
+ }
+
+ &.large {
+ &::-webkit-slider-runnable-track {
+ height: global.$large;
+ }
+
+ &::-webkit-slider-thumb {
+ height: global.$large;
+ width: global.$large;
+ border-radius: global.$large;
+ }
+ }
+ }
}
- }
- }
-
}
-
-
-