geothermie-atlas/public/assets/esri/themes/base/widgets/_ValuePicker.scss

276 lines
5.5 KiB
SCSS
Raw Permalink Normal View History

2023-10-19 09:07:33 +00:00
@mixin valuePicker() {
$widget-size: $panel-width--plus-half;
$minor-tick-size: 3px;
$major-tick-size: 6px;
.esri-value-picker {
@include defaultBoxShadow();
.esri-slider {
background: transparent;
flex: auto;
&__tick-label {
font-size: var(--calcite-font-size--3);
white-space: nowrap;
}
&__ticks {
margin: 0;
}
&__tick,
&__track {
background: var(--calcite-ui-border-input);
}
&__tick {
&.esri-value-picker__slider__tick-steps {
height: 3px;
width: 3px;
}
}
&__anchor:focus-visible {
outline: none;
}
}
&__action-bar {
background-color: var(--calcite-ui-foreground-1);
}
&__caption,
&__label {
&-border {
display: flex;
align-items: center;
border: solid 1px var(--calcite-ui-border-3);
}
&-text {
font-family: var(--calcite-sans-family);
font-weight: var(--calcite-font-weight-medium);
overflow: hidden;
white-space: nowrap;
}
}
&__label-text {
color: var(--calcite-ui-text-1);
}
&__slider {
display: flex;
flex: auto;
}
&__layout {
&--horizontal {
&.esri-value-picker__type {
&--collection,
&--undefined {
width: fit-content;
.esri-value-picker {
&__action-bar {
width: 100%;
}
&__caption {
padding-inline-end: 0.5rem;
}
}
}
&--combobox,
&--label,
&--slider {
min-width: $widget-size;
.esri-value-picker__action-bar {
width: 100%;
}
}
}
.esri-value-picker {
&__caption {
display: flex;
padding-bottom: 0.5rem;
padding-inline-start: 0.5rem;
padding-top: 0.5rem;
&-border {
padding-inline: 0.5rem;
}
&-text {
font-size: var(--calcite-font-size--1);
max-width: 100px;
text-overflow: ellipsis;
}
}
&__combobox {
align-items: center;
display: flex;
flex: auto;
padding-inline: 10px;
--calcite-ui-border-input: var(--calcite-ui-border-3);
calcite-combobox {
flex: auto;
width: 0;
}
}
&__label {
display: flex;
flex: auto;
padding: 0.5rem;
&-border {
flex: auto;
padding-inline: 0.5rem;
}
&-text {
flex: auto;
font-size: var(--calcite-font-size--1);
font-weight: var(--calcite-font-weight-normal);
text-overflow: ellipsis;
width: 0;
}
}
&__separator {
border-right: solid 1px var(--calcite-ui-border-3);
margin-inline-start: 0.25rem;
width: 1px;
}
&__slider {
padding-inline: 30px;
&__tick {
&-minor {
height: $minor-tick-size;
}
&-major {
height: $major-tick-size;
}
&-steps {
margin-left: -1px;
margin-top: -6px;
}
}
}
}
.esri-slider {
margin-top: -10px;
&__track {
height: 1px;
}
}
}
&--vertical {
&.esri-value-picker__type {
&--collection,
&--undefined {
height: fit-content;
.esri-value-picker__action-bar {
height: 100%;
}
}
&--slider {
min-height: $widget-size;
.esri-value-picker__action-bar {
height: 100%;
min-height: $widget-size;
}
}
}
.esri-value-picker {
&__caption {
padding: 0.25rem;
width: 48px;
&-border {
justify-content: center;
}
&-text {
font-size: var(--calcite-font-size--2);
padding-block: 0.25rem;
text-overflow: clip;
}
}
&__separator {
border-bottom: solid 1px var(--calcite-ui-border-3);
height: 1px;
margin-top: 0.25rem;
}
&__slider {
flex-direction: column;
padding: 15px 0;
&__tick {
&-minor {
width: $minor-tick-size;
}
&-major {
width: $major-tick-size;
}
&-steps {
margin-left: -6px;
margin-top: -1px;
}
}
}
}
.esri-slider {
margin-left: -13px;
&__tick-label {
margin-left: 20px;
}
&__track {
width: 1px;
}
}
}
}
}
[dir="rtl"] .esri-value-picker {
direction: ltr;
.esri-value-picker {
&__combobox,
&__slider__tooltip {
direction: rtl;
}
}
}
}
@if $include_ValuePicker==true {
@include valuePicker();
}