From b2ae986c0ba59f8197782ef62ca13d1d10bccb8d Mon Sep 17 00:00:00 2001 From: Mimi <1119186082@qq.com> Date: Sat, 20 Jun 2020 16:48:12 +0800 Subject: [PATCH] Fix Pisces sidebar width --- source/css/_common/outline/footer/footer.styl | 11 +---------- source/css/_schemes/Pisces/_layout.styl | 4 ---- source/css/_schemes/Pisces/_sidebar.styl | 1 + source/css/_variables/Pisces.styl | 1 + 4 files changed, 3 insertions(+), 14 deletions(-) diff --git a/source/css/_common/outline/footer/footer.styl b/source/css/_common/outline/footer/footer.styl index 9829255..a793752 100644 --- a/source/css/_common/outline/footer/footer.styl +++ b/source/css/_common/outline/footer/footer.styl @@ -15,17 +15,8 @@ .footer-inner { box-sizing: border-box; - margin: 0 auto; text-align: center; - width: $content-desktop; - - +desktop-large() { - width: $content-desktop-large; - } - - +desktop-largest() { - width: $content-desktop-largest; - } + main-container(); } @keyframes iconAnimate { diff --git a/source/css/_schemes/Pisces/_layout.styl b/source/css/_schemes/Pisces/_layout.styl index c5f4209..c567231 100644 --- a/source/css/_schemes/Pisces/_layout.styl +++ b/source/css/_schemes/Pisces/_layout.styl @@ -10,10 +10,6 @@ box-shadow: $box-shadow-inner; width: $sidebar-desktop; - +desktop-large() { - width: $sidebar-desktop; - } - +tablet-mobile() { border-radius: initial; width: auto; diff --git a/source/css/_schemes/Pisces/_sidebar.styl b/source/css/_schemes/Pisces/_sidebar.styl index 84de45a..64184c7 100644 --- a/source/css/_schemes/Pisces/_sidebar.styl +++ b/source/css/_schemes/Pisces/_sidebar.styl @@ -5,6 +5,7 @@ margin-top: $sidebar-offset; position: sticky; top: $sidebar-offset; + width: $sidebar-desktop; +tablet-mobile() { display: none; diff --git a/source/css/_variables/Pisces.styl b/source/css/_variables/Pisces.styl index a6c69c2..fc2db1b 100644 --- a/source/css/_variables/Pisces.styl +++ b/source/css/_variables/Pisces.styl @@ -63,5 +63,6 @@ $btn-default-hover-color = white; // Back to top $b2t-opacity = .6; +$b2t-opacity-hover = .8; $b2t-position-bottom = -100px; $b2t-position-bottom-on = 30px;