Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(frontend): Remove extra page padding #763

Merged
merged 1 commit into from
Feb 11, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 15 additions & 9 deletions clients/ui/frontend/src/shared/style/MUI-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -764,9 +764,8 @@
--pf-v6-c-button--PaddingInlineEnd: none;
}

.mui-theme .pf-v6-c-page__main-container {
--pf-v6-c-page__main-container--BorderRadius: var(--mui-shape-borderRadius);
box-shadow: var(--mui-shadows-1);
.mui-theme .pf-v6-c-page {
--pf-v6-c-page--BackgroundColor: var(--mui-palette-common-white);
}

.mui-theme .pf-v6-c-pagination {
Expand Down Expand Up @@ -801,20 +800,27 @@
/* Position sidebar above the masthead */
}

.mui-theme .pf-v6-c-page__main-container {
margin-top: var(--kf-central-app-bar-height);
/* Move content area below the app bar */
}

/* Hide Masthead Toggle by default */
.mui-theme .pf-v6-c-masthead__toggle {
display: none;
}

/* Show Masthead Toggle on viewports below 1270px */
@media (max-width: 1270px) {
@media (max-width: 1200px) {
.mui-theme .pf-v6-c-masthead__toggle {
display: block;
padding-block-start: var(--mui-spacing-4px);
}
}

.mui-theme .pf-v6-c-page__main-container {
margin-left: 0;
}
}

.pf-v6-c-page__sidebar:not(.pf-m-collapsed)+.pf-v6-c-page__main-container,
.pf-v6-c-page__sidebar:not(.pf-m-collapsed)+.pf-v6-c-page__drawer {
--pf-v6-c-page__main-container--MarginInlineStart: calc(-2 * var(--mui-spacing-16px));
--pf-v6-c-page__main-section--PaddingInlineStart: none;
--pf-v6-c-page__main-section--PaddingInlineEnd: none;
}