Skip to content

Commit

Permalink
fix: left sidebar styles
Browse files Browse the repository at this point in the history
  • Loading branch information
pengx17 committed Jan 11, 2022
1 parent c55f5b3 commit bcf387e
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 8 deletions.
6 changes: 1 addition & 5 deletions src/_headings.scss
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,7 @@ a.title h1.title {
}

#repo-name {
/* Show the last part of the repo instead */
direction: rtl;
text-align: left;
max-width: 120px;
line-height: 1.5;
max-width: 150px;
}

.cp__right-sidebar-settings a {
Expand Down
31 changes: 28 additions & 3 deletions src/_views.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
width: 100%;
}

.cp__sidebar-main-content:not([data-is-global-graph-pages=true]) > div {
.cp__sidebar-main-content:not([data-is-global-graph-pages="true"]) > div {
padding: 32px;
}

Expand Down Expand Up @@ -103,6 +103,32 @@
margin-top: 0.5em;
}

#left-sidebar {
height: 100%;
padding-top: var(--ct-header-height);
}

.left-sidebar-inner {
height: 100%;
}

.left-sidebar-inner > .wrap {
margin-top: 0;
padding-top: 12px;
padding-bottom: 12px;
height: calc(100% - var(--ct-header-height));
}

.left-sidebar-inner a.item > span {
transform: translateY(2px);
margin-top: 0;
}

.left-sidebar-inner .new-page {
position: absolute;
bottom: 0;
}

.left-sidebar-inner .nav-content-item {
font-size: 0.875rem;
font-weight: 500;
Expand All @@ -116,6 +142,5 @@
.journal-title > h1 {
backdrop-filter: blur(5px);
border-radius: 4px;
}
}
}

0 comments on commit bcf387e

Please sign in to comment.