Normalize slider mobile wrap behavior and remove pattern-coupled overrides
This commit is contained in:
+19
-10
@@ -981,7 +981,7 @@ section + section {
|
|||||||
min-width: 0;
|
min-width: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#component-slider .sg-slider-row {
|
.sg-slider-row {
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@@ -989,27 +989,36 @@ section + section {
|
|||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
#component-slider .sg-slider-row .sg-label {
|
.sg-slider-row .sg-label {
|
||||||
min-width: 100%;
|
min-width: 100%;
|
||||||
flex: 0 0 100%;
|
flex: 0 0 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
#component-slider .sg-slider {
|
.sg-slider {
|
||||||
flex: 1 1 auto;
|
flex: 1 1 auto;
|
||||||
width: auto;
|
width: auto;
|
||||||
max-width: none;
|
max-width: none;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#component-slider .sg-slider-value {
|
.sg-slider-value {
|
||||||
flex: 0 0 auto;
|
flex: 0 0 auto;
|
||||||
align-self: center;
|
align-self: center;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
#component-slider .sg-slider-row[data-activatable="true"] {
|
.sg-slider-row[data-activatable="true"] {
|
||||||
padding-right: 0;
|
padding-right: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.sg-slider-row[data-activatable="true"] .sg-activatable-remove {
|
||||||
|
position: static;
|
||||||
|
top: auto;
|
||||||
|
right: auto;
|
||||||
|
transform: none;
|
||||||
|
align-self: center;
|
||||||
|
margin-left: calc(var(--spacing-small) * 1.5);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.sg-sandwich-button {
|
.sg-sandwich-button {
|
||||||
@@ -1615,7 +1624,7 @@ section + section {
|
|||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sg-options-row .sg-pulldown-panel .sg-slider-row[data-activatable="true"] {
|
.sg-pulldown-panel .sg-slider-row[data-activatable="true"] {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: minmax(0, 1fr) auto var(--interaction-height);
|
grid-template-columns: minmax(0, 1fr) auto var(--interaction-height);
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@@ -1623,14 +1632,14 @@ section + section {
|
|||||||
padding-right: 0;
|
padding-right: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sg-options-row .sg-pulldown-panel .sg-slider-row[data-activatable="true"] .sg-label {
|
.sg-pulldown-panel .sg-slider-row[data-activatable="true"] .sg-label {
|
||||||
min-width: 100%;
|
min-width: 100%;
|
||||||
flex: 0 0 100%;
|
flex: 0 0 100%;
|
||||||
grid-column: 1 / -1;
|
grid-column: 1 / -1;
|
||||||
grid-row: 1;
|
grid-row: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sg-options-row .sg-pulldown-panel .sg-slider-row[data-activatable="true"] .sg-slider {
|
.sg-pulldown-panel .sg-slider-row[data-activatable="true"] .sg-slider {
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@@ -1638,7 +1647,7 @@ section + section {
|
|||||||
grid-row: 2;
|
grid-row: 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sg-options-row .sg-pulldown-panel .sg-slider-row[data-activatable="true"] .sg-slider-value {
|
.sg-pulldown-panel .sg-slider-row[data-activatable="true"] .sg-slider-value {
|
||||||
min-width: calc(var(--interaction-height) * 1.25);
|
min-width: calc(var(--interaction-height) * 1.25);
|
||||||
justify-self: end;
|
justify-self: end;
|
||||||
align-self: center;
|
align-self: center;
|
||||||
@@ -1647,7 +1656,7 @@ section + section {
|
|||||||
grid-row: 2;
|
grid-row: 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sg-options-row .sg-pulldown-panel .sg-slider-row[data-activatable="true"] .sg-activatable-remove {
|
.sg-pulldown-panel .sg-slider-row[data-activatable="true"] .sg-activatable-remove {
|
||||||
position: static;
|
position: static;
|
||||||
transform: none;
|
transform: none;
|
||||||
grid-column: 3;
|
grid-column: 3;
|
||||||
|
|||||||
Reference in New Issue
Block a user