Skip to content
Snippets Groups Projects
Commit d3807d46 authored by Kevin Paxman's avatar Kevin Paxman
Browse files

ISTWCMS-5898: make fallback work with all section types and use new spacing methodology.

parent 71515a59
No related branches found
No related tags found
1 merge request!70ISTWCMS-5898: section-spacing-seperator and column-seperator css
...@@ -94,6 +94,14 @@ ...@@ -94,6 +94,14 @@
@media(min-width: $screen-xl) { @media(min-width: $screen-xl) {
@include uw-contained-width(var(--layout-max-width)); @include uw-contained-width(var(--layout-max-width));
} }
// Set default spacing to match old block spacing if no classes
&:not(.uw-section-spacing--default, .uw-section-spacing--none, .uw-section-spacing--75, .uw-section-spacing--50, .uw-section-spacing--25) {
margin-bottom: var(--section-margin);
padding-bottom: var(--section-margin);
&:last-of-type {
margin-bottom: 0;
}
}
&.card__media { &.card__media {
padding: 0 var(--size-2); padding: 0 var(--size-2);
@media(min-width: $screen-xl) { @media(min-width: $screen-xl) {
...@@ -788,15 +796,6 @@ ...@@ -788,15 +796,6 @@
} }
} }
} }
// Set default spacing to match old block margin if no classes
.layout.layout--uw-1-col {
&:not(.uw-section-spacing--default, .uw-section-spacing--none, .uw-section-spacing--75, .uw-section-spacing--50, .uw-section-spacing--25) {
margin-bottom: var(--section-margin);
&:last-of-type {
margin-bottom: 0;
}
}
}
.uw-section-has-full-width .layout.layout--uw-1-col { .uw-section-has-full-width .layout.layout--uw-1-col {
overflow: hidden; overflow: hidden;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment