mirror of
https://github.com/codex-team/codex.docs.git
synced 2025-07-18 20:59:42 +02:00
Merge pull request #285 from alsolovyev/fix/horizontal-scrollbar
Fix horizontal scrollbar on small screens
This commit is contained in:
commit
59829f54dc
2 changed files with 1 additions and 2 deletions
|
@ -1,5 +1,4 @@
|
|||
.docs-sidebar {
|
||||
width: 100vw;
|
||||
|
||||
/* Bottom and Left coord of the "Hide Sidebar" toggler */
|
||||
--hide-sidebar-toggler-offset: 11px;
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
@media (--desktop) {
|
||||
max-width: min(
|
||||
calc(var(--layout-width-main-col) + var(--max-space-between-cols) + var(--layout-sidebar-width)),
|
||||
calc(100vw - var(--layout-sidebar-width))
|
||||
calc(100% - var(--layout-sidebar-width))
|
||||
);
|
||||
margin-left: max(var(--main-col-min-margin-left), calc(50vw - var(--layout-sidebar-width) - var(--layout-width-main-col) / 2) - var(--layout-padding-horizontal));
|
||||
margin-right: auto;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue