.w-form-width { @include max-form-width(); } @include media-breakpoint-up(md) { .minimap-open { .tab-content { width: theme('width.[4/5]'); } } .side-panel-open { .tab-content { // Account for dynamic width of the side panel when open. width: max(theme('width.[1/3]'), calc(100% - var(--side-panel-width))); } } .side-panel-open.minimap-open { .tab-content { // Account for additional space taken up by the minimap. width: max( theme('width.[2/5]'), calc(100% - var(--side-panel-width) - 15rem) ); } } } .fields { // Apply the desired form width for legacy `fields` container. max-width: $max-form-width; // Remove any spacing in legacy fields markup. > li { padding: 0; } }