Skip to content

Commit d31b3c9

Browse files
committed
refactor: Drop the bottom padding and right padding on medium breakpoints to get more vertical screen space
Signed-off-by: Felicitas Pojtinger <felicitas@pojtinger.com>
1 parent 7226911 commit d31b3c9

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

assets/scss/main.scss

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,21 @@ $font-path: "../../webfonts";
1212
@import "@fortawesome/fontawesome-free/scss/solid";
1313
@import "@fortawesome/fontawesome-free/scss/brands";
1414

15+
// Remove the bottom corner & padding from the Patternfly page to get more vertical space
16+
.pf-v6-c-page {
17+
--pf-v6-c-page__main-container--BorderRadius: var(--pf-t--global--border--radius--medium) var(--pf-t--global--border--radius--medium) 0 0;
18+
--pf-v6-c-page__main-container--AlignSelf: stretch;
19+
--pf-v6-c-page__main-container--MaxHeight: 100%;
20+
--pf-v6-c-page__main-container--BorderBlockEndWidth: 0;
21+
}
22+
23+
// On the home page, only remove the right margin when the Mastodon feed sidebar is visible
24+
.pf-v6-c-drawer__content.pf-v6-c-page__main-container {
25+
@media screen and (min-width: $pf-v6-global--breakpoint--xl) {
26+
--pf-v6-c-page__main-container--MarginInlineEnd: 0;
27+
}
28+
}
29+
1530
// By default this is a `<div>`, but we want to use the native `<dialog>` component instead
1631
dialog.pf-v6-c-modal-box:not([open]) {
1732
display: none;

layouts/baseof.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
<div class="pf-v6-c-page__drawer">
7878
<div class="pf-v6-c-drawer pf-m-static pf-m-expanded" id="feed-drawer">
7979
<div class="pf-v6-c-drawer__main">
80-
<div class="pf-v6-c-drawer__content pf-v6-c-page__main-container" style="margin-inline-end: 0;">
80+
<div class="pf-v6-c-drawer__content pf-v6-c-page__main-container">
8181
<div class="pf-v6-c-drawer__body">
8282
<main class="pf-v6-c-page__main" id="main-content">
8383
{{ block "main" . }}{{ end }}

0 commit comments

Comments
 (0)