Mobile Slider-Layout: Header (Schalter+Wert) und volle Breite für Slider-Zeile
This commit is contained in:
@@ -554,15 +554,17 @@
|
||||
<div class="sg-state-example">
|
||||
<p class="sg-state-example__label sg-table-label">Variante aktivierbar</p>
|
||||
<div class="sg-activatable-row">
|
||||
<button class="sg-mode-toggle sg-mode-toggle--local sg-activation-mode-toggle" type="button" data-active="absolute" aria-label="Aktivierung: aus" data-activation-target="component-slider-activatable">
|
||||
<span class="sg-mode-toggle__switch" aria-hidden="true" data-component-part="toggle-track">
|
||||
<span class="sg-activation-mode-toggle__switch-label sg-activation-mode-toggle__switch-label--left">aus</span>
|
||||
<span class="sg-activation-mode-toggle__switch-label sg-activation-mode-toggle__switch-label--right">an</span>
|
||||
<span class="sg-mode-toggle__handle" data-component-part="toggle-handle"></span>
|
||||
</span>
|
||||
</button>
|
||||
<label class="sg-slider-row sg-slider-row--inactive-selectable" id="component-slider-activatable" data-component="slider" data-component-state="inactive-selectable" data-activatable="true">
|
||||
<span class="sg-slider-activatable-header">
|
||||
<button class="sg-mode-toggle sg-mode-toggle--local sg-activation-mode-toggle" type="button" data-active="absolute" aria-label="Aktivierung: aus" data-activation-target="component-slider-activatable">
|
||||
<span class="sg-mode-toggle__switch" aria-hidden="true" data-component-part="toggle-track">
|
||||
<span class="sg-activation-mode-toggle__switch-label sg-activation-mode-toggle__switch-label--left">aus</span>
|
||||
<span class="sg-activation-mode-toggle__switch-label sg-activation-mode-toggle__switch-label--right">an</span>
|
||||
<span class="sg-mode-toggle__handle" data-component-part="toggle-handle"></span>
|
||||
</span>
|
||||
</button>
|
||||
<span class="sg-label">Wert</span>
|
||||
</span>
|
||||
<label class="sg-slider-row sg-slider-row--inactive-selectable" id="component-slider-activatable" data-component="slider" data-component-state="inactive-selectable" data-activatable="true">
|
||||
<input
|
||||
class="sg-interaction-element sg-slider sg-form-inactive-selectable"
|
||||
type="range"
|
||||
|
||||
+36
-7
@@ -1070,15 +1070,23 @@ section + section {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#component-slider .sg-activatable-row .sg-slider-row {
|
||||
#component-slider .sg-slider-activatable-header {
|
||||
display: contents;
|
||||
}
|
||||
|
||||
#component-slider .sg-activatable-row .sg-slider-row .sg-label {
|
||||
#component-slider .sg-slider-activatable-header .sg-mode-toggle {
|
||||
grid-column: 1;
|
||||
}
|
||||
|
||||
#component-slider .sg-slider-activatable-header .sg-label {
|
||||
grid-column: 2;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
#component-slider .sg-activatable-row .sg-slider-row {
|
||||
display: contents;
|
||||
}
|
||||
|
||||
#component-slider .sg-activatable-row .sg-slider-row .sg-slider {
|
||||
grid-column: 3;
|
||||
width: 100%;
|
||||
@@ -1139,32 +1147,53 @@ section + section {
|
||||
}
|
||||
|
||||
#component-slider .sg-activatable-row {
|
||||
grid-template-columns: auto minmax(0, 1fr);
|
||||
grid-template-columns: auto max-content;
|
||||
align-items: start;
|
||||
row-gap: var(--spacing-small);
|
||||
column-gap: var(--spacing-large);
|
||||
}
|
||||
|
||||
#component-slider .sg-activatable-row .sg-slider-row {
|
||||
#component-slider .sg-slider-activatable-header {
|
||||
display: contents;
|
||||
}
|
||||
|
||||
#component-slider .sg-activatable-row .sg-slider-row .sg-label {
|
||||
#component-slider .sg-slider-activatable-header .sg-mode-toggle {
|
||||
grid-column: 1;
|
||||
grid-row: 1;
|
||||
}
|
||||
|
||||
#component-slider .sg-slider-activatable-header .sg-label {
|
||||
grid-column: 2;
|
||||
grid-row: 1;
|
||||
}
|
||||
|
||||
#component-slider .sg-activatable-row .sg-slider-row {
|
||||
display: grid;
|
||||
grid-column: 1 / -1;
|
||||
grid-row: 2;
|
||||
grid-template-columns: minmax(0, 1fr) auto;
|
||||
column-gap: var(--spacing-large);
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#component-slider .sg-activatable-row .sg-slider-row .sg-slider {
|
||||
grid-column: 1;
|
||||
grid-row: 2;
|
||||
grid-row: 1;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#component-slider .sg-activatable-row .sg-slider-row .sg-slider-value {
|
||||
grid-column: 2;
|
||||
grid-row: 2;
|
||||
grid-row: 1;
|
||||
justify-self: end;
|
||||
align-self: center;
|
||||
}
|
||||
|
||||
#component-slider .sg-activatable-row .sg-slider-row .sg-label {
|
||||
display: contents;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.sg-sandwich-button {
|
||||
|
||||
Reference in New Issue
Block a user