Skip to content

Commit

Permalink
fix(app): responsive content centering
Browse files Browse the repository at this point in the history
  • Loading branch information
julio4 committed Nov 21, 2024
1 parent c390ac7 commit a87235b
Showing 1 changed file with 27 additions and 24 deletions.
51 changes: 27 additions & 24 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -60,31 +60,27 @@ section.vocs_Sidebar_level
}

/* Make sidebar collapsible */
.vocs_DocsLayout_gutterLeft {
top: 0;
left: 0;
bottom: 0;
}
.vocs_DocsLayout_gutterLeft {
margin-left: 0;
transition: margin 0.3s ease;
width: var(--vocs-sidebar_width);
}
.sidebar_hidden .vocs_DocsLayout_gutterLeft {
margin-left: calc(var(--vocs-sidebar_width) * -1);
};
@media screen and (min-width: 1080px) {
.vocs_DocsLayout_gutterLeft {
margin-left: 0;
transition: margin 0.3s ease;
width: var(--vocs-sidebar_width);
}
.sidebar_hidden .vocs_DocsLayout_gutterLeft {
margin-left: calc(var(--vocs-sidebar_width) * -1);
}

.vocs_DocsLayout_content_withSidebar {
margin-left: var(--vocs-sidebar_width);
}
.sidebar_hidden .vocs_DocsLayout_content_withSidebar {
margin-left: 0 !important;
}
.vocs_DocsLayout_content_withSidebar {
margin-left: var(--vocs-sidebar_width);
transition: margin 300ms ease !important;
max-width: unset;
}
.vocs_DocsLayout_content_withSidebar {
margin-left: var(--vocs-sidebar_width);
}
.sidebar_hidden .vocs_DocsLayout_content_withSidebar {
margin-left: 0 !important;
}
.vocs_DocsLayout_content_withSidebar {
margin-left: var(--vocs-sidebar_width);
transition: margin 300ms ease !important;
max-width: unset;
}

.vocs_DesktopTopNav_logo a {
margin-top: 2px !important;
Expand Down Expand Up @@ -128,3 +124,10 @@ section.vocs_Sidebar_level
left: 22px;
justify-content: start;
}

/* Force show theme switcher */
@media screen and (max-width: 1280px) {
.vocs_DesktopTopNav_hideCompact {
display: block;
}
}

0 comments on commit a87235b

Please sign in to comment.