-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
♻️ [#3178] Re-arrange markup/CSS for page layout
- Loading branch information
1 parent
b54eee5
commit ebb4d4b
Showing
1 changed file
with
14 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,45 @@ | ||
/** | ||
* Style overrides for the utrecht-page component. | ||
*/ | ||
@import '~microscope-sass/lib/responsive'; | ||
|
||
.openforms-theme { | ||
.utrecht-page { | ||
// backwards compatibility | ||
// TODO: remove in Open Forms 3.0 | ||
--utrecht-page-max-inline-size: 100%; | ||
|
||
@include desktop { | ||
--utrecht-page-max-inline-size: 1200px; | ||
} | ||
|
||
--utrecht-page-background-color: var( | ||
--of-view-background, | ||
var(--of-layout-background, #e6e6e6) | ||
); | ||
|
||
margin-block-end: var(--of-utrecht-page-margin-block-end, 0); | ||
margin-block-start: var(--of-utrecht-page-margin-block-start, 0); | ||
background-color: var(--utrecht-page-background-color); | ||
|
||
// ensure the page content spans the entire height of the viewport | ||
// ensure the page content spans the entire height & width of the viewport | ||
display: flex; | ||
flex-direction: column; | ||
min-block-size: 100vh; | ||
max-inline-size: 100vw; | ||
|
||
// can't use the bem modules because of the nested parent selector(s) | ||
> .utrecht-page__content { | ||
flex-grow: 1; | ||
inline-size: 100%; | ||
margin-inline-end: auto; | ||
margin-inline-start: auto; | ||
} | ||
|
||
> .utrecht-page-header, | ||
> .page-footer { | ||
flex-shrink: 0; | ||
align-items: stretch; | ||
} | ||
} | ||
} |