Skip to content

Commit

Permalink
feat: new mobile-ui and refactoring gravity-ui/page-constructor navig…
Browse files Browse the repository at this point in the history
…ation (#57)

 * new page-constructor renderNavigation
 * use CustomNavigation
 * add custom MobileDropdown
 * override some new page-constructor styles
  • Loading branch information
JeikZim authored and Ruslan Bagautdinov committed Sep 20, 2024
1 parent 36dd9d0 commit b3f732c
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
5 changes: 2 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 24 additions & 0 deletions src/styles/overrides.scss
Original file line number Diff line number Diff line change
Expand Up @@ -169,3 +169,27 @@
left: unset;
z-index: 101;
}

@media (max-width: map-get($screenBreakpoints, 'md') - 1) {
.dc-toc {
height: fit-content !important; /* stylelint-disable-line declaration-no-important */
}

body:not(:has(.pc-navigation)) .dc-sidebar {
top: var(--dc-subnavigation-height, 52px);
z-index: 117;
height: calc(100% - var(--dc-subnavigation-height, 52px));

&-navigation__button {
margin-right: 0;
}
}

body:has(.pc-navigation) .dc-sidebar {
--dc-header-height: var(--header-height, 64px);
}

.pc-navigation-item:has(.dc-controls) {
display: none;
}
}

0 comments on commit b3f732c

Please sign in to comment.