Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CaiJimmy/hugo-theme-stack.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
authorJimmy Cai <github@jimmycai.com>2022-02-27 01:45:25 +0300
committerGitHub <noreply@github.com>2022-02-27 01:45:25 +0300
commit4d552a9df58f20acd460a8df35d18eb935de8d21 (patch)
tree58a2dbc49e3b5623f44eeaedf032e7a8487137a8 /assets
parent0fbbc12949c8d59ea5ddcfb463d2c48140bfb490 (diff)
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
Diffstat (limited to 'assets')
-rw-r--r--assets/scss/partials/layout/article.scss61
-rw-r--r--assets/scss/partials/sidebar.scss2
2 files changed, 1 insertions, 62 deletions
diff --git a/assets/scss/partials/layout/article.scss b/assets/scss/partials/layout/article.scss
index af5f7bb..92e1167 100644
--- a/assets/scss/partials/layout/article.scss
+++ b/assets/scss/partials/layout/article.scss
@@ -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);
diff --git a/assets/scss/partials/sidebar.scss b/assets/scss/partials/sidebar.scss
index 462729d..c861f6e 100644
--- a/assets/scss/partials/sidebar.scss
+++ b/assets/scss/partials/sidebar.scss
@@ -37,7 +37,7 @@
}
.right-sidebar {
- flex-shrink: 0;
+ width: 100%;
display: none;
&.sticky {