feat: article page widget support (#488)

* feat: article page widget support

* refactor: get rid of article toolbar

Same 3 column layout for article page and homepage

* add missing space
This commit is contained in:
Jimmy Cai
2022-02-26 23:45:25 +01:00
committed by GitHub
parent 0fbbc12949
commit 4d552a9df5
13 changed files with 71 additions and 133 deletions
-61
View File
@@ -122,67 +122,6 @@
}
}
.article-page.has-toc {
.left-sidebar {
display: none;
}
.right-sidebar {
width: 100%;
padding: 0;
display: none;
@include respond(xl) {
display: block;
top: var(--main-top-padding);
}
}
#article-toolbar {
display: block;
@include respond(md) {
padding: 0;
}
@include respond(xl) {
margin-top: 0;
position: sticky;
top: var(--main-top-padding);
flex-shrink: 1;
a {
background: transparent;
box-shadow: none;
border: 1px solid var(--body-text-color);
width: 100%;
margin-right: 0;
svg {
flex-shrink: 0;
}
}
}
}
.main-container {
align-items: start;
flex-direction: column;
@include respond(xl) {
flex-direction: row;
}
}
.main {
padding-top: 0;
@include respond(xl) {
padding-top: var(--main-top-padding);
}
}
}
.widget--toc {
background-color: var(--card-background);
border-radius: var(--card-border-radius);
+1 -1
View File
@@ -37,7 +37,7 @@
}
.right-sidebar {
flex-shrink: 0;
width: 100%;
display: none;
&.sticky {