diff --git a/styleguide.css b/styleguide.css index 599e67e..c725530 100644 --- a/styleguide.css +++ b/styleguide.css @@ -1655,16 +1655,14 @@ section + section { } .sg-options-row .sg-pulldown-panel:has(.sg-form-sections-card-wrapper) { - width: calc(100vw - (2 * var(--spacing-large))); + width: min( + var(--layout-pulldown-panel-form-mobile-width), + calc(100vw - (2 * var(--spacing-large))) + ); min-width: 0; max-width: calc(100vw - (2 * var(--spacing-large))); } - .sg-options-row .sg-pulldown-demo .sg-pulldown-panel { - left: 0; - right: auto; - } - .sg-options-row .sg-pulldown-panel .sg-form-sections-card-wrapper, .sg-options-row .sg-pulldown-panel .sg-form-sections-card { min-width: 0; @@ -1672,31 +1670,6 @@ section + section { max-width: 100%; } - .sg-pulldown-panel__row { - grid-template-columns: minmax(0, 1fr) var(--interaction-height); - row-gap: var(--spacing-small); - } - - .sg-pulldown-panel__label { - grid-column: 1 / -1; - grid-row: 1; - min-width: 0; - } - - .sg-pulldown-panel__row .sg-pulldown { - grid-column: 1; - grid-row: 2; - width: 100%; - min-width: 0; - max-width: 100%; - } - - .sg-pulldown-panel__row .sg-pulldown-panel__remove { - grid-column: 2; - grid-row: 2; - justify-self: end; - } - .sg-pulldown-panel .sg-slider-row[data-activatable="true"] { display: grid; grid-template-columns: minmax(0, 1fr) auto var(--interaction-height); @@ -1732,7 +1705,7 @@ section + section { .sg-pulldown-panel .sg-slider-row[data-activatable="true"] .sg-activatable-remove { position: static; transform: none; - margin-left: 0; + margin-left: calc(var(--spacing-small) * 1.5); grid-column: 3; grid-row: 2; }