Problem/Motivation
In bs_bootstrap/sass/layout/partials/_footer.scss we have a rule on line 143:
// For bigger screens we will remove margin top for all blocks.
@include media-responsive-breakpoint-up() {
.block__title,
.field--name-body > h3:first-child,
.field--name-body > h4:first-child {
margin-top: 0;
}
}
However, using `media-responsive-breakpoint-up()` call here is wrong because on line 54 we are using `md` breakpoint which is controlling column switching for a footer region
@include media-breakpoint-up(md) {
flex: 1;
width: auto;
}
Proposed resolution
We should use `media-breakpoint-up('md')` instead of `media-responsive-breakpoint-up()`.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | interdiff-3120026-5-6.txt | 790 bytes | pivica |
| #6 | use-different-default-variable-3078278-6.patch | 1.37 KB | pivica |
Comments
Comment #2
pivica commentedHere is a patch.
Comment #3
pivica commentedWe also need to fix IE11 block collapsing in the footer because of column flex direction.
Comment #4
pivica commentedPrevious IE11 fix now requires limiting max-width.
Comment #5
pivica commentedAfter more checking i think i overdo this a bit, flex column direction in the footer is more a custom thing and not set by default, will move this part to custom project and revert this to the first patch.
Additionally, tests are shows that we need stronger margin bottom reset for to-top bs_lib blocks and applying of region flex display only smaller screens and above (because we want to activate margin collapsing for extra small screens which are always in one col layout for this size).
Comment #6
pivica commentedIt seems we do need margin collapsing for small screens also because usually, we are still on one column layout, adjusting patch to this fact.
Comment #7
pivica commentedComment #9
pivica commentedCommitted.