Skip to content

Commit

Permalink
fix: Fix navigation and layout paddings
Browse files Browse the repository at this point in the history
  • Loading branch information
3y3 committed Oct 31, 2024
1 parent a34d235 commit 096a325
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 17 deletions.
18 changes: 4 additions & 14 deletions src/styles/overrides.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@
& > .container-fluid {
padding-right: $desktopHPadding;
padding-left: $desktopHPadding;

& .col {
padding: 0;
}
}
}

Expand All @@ -34,10 +30,8 @@
.pc-layout {
&__content {
display: flex;
align-items: center;
}

&__content > .pc-Grid,
&__navigation > .container-fluid {
padding-right: $desktopHPadding;
padding-left: $desktopHPadding;
Expand All @@ -46,6 +40,8 @@

&__content > .pc-Grid {
&:has(.dc-doc-page) {
padding: 0;

.container-fluid {
padding-right: 0;
padding-left: 0;
Expand Down Expand Up @@ -90,10 +86,6 @@
.dc-doc-page {
width: 100%;
}

.dc-doc-layout__toc {
padding-left: 0;
}
}

.pc-layout {
Expand Down Expand Up @@ -122,8 +114,8 @@
@media (max-width: map-get($screenBreakpoints, 'md') - 1) {
.pc-navigation {
& > .container-fluid {
padding-right: $mobileRPadding;
padding-left: $mobileLPadding;
padding-right: 0;
padding-left: 0;
}

.pc-overflow-scroller {
Expand Down Expand Up @@ -160,8 +152,6 @@
@media (max-width: map-get($screenBreakpoints, 'md') - 1) {
.dc-root_document-page {
.pc-Grid {
padding-right: 20px;
padding-left: 20px;
max-width: 100%;
}
}
Expand Down
4 changes: 1 addition & 3 deletions src/styles/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ $headerMarginTopMedium: 32px;
$popupPadding: 16px;
$centerBlockMaxWidth: 736px;
$wideFormatHorizontalPadding: 8px;
$desktopHPadding: 24px;
$mobileLPadding: 20px;
$mobileRPadding: 12px;
$desktopHPadding: 16px;

$screenBreakpoints: (
'xs': 375px,
Expand Down

0 comments on commit 096a325

Please sign in to comment.