From a14cde710b577690fac94fa38685f4a6cf106bdd Mon Sep 17 00:00:00 2001 From: zhuzhuxia Date: Sat, 2 Dec 2017 12:19:35 +0800 Subject: [PATCH] adjust screen in Mist --- source/css/_schemes/Mist/outline/outline.styl | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/source/css/_schemes/Mist/outline/outline.styl b/source/css/_schemes/Mist/outline/outline.styl index 12c0bae25..f03793734 100644 --- a/source/css/_schemes/Mist/outline/outline.styl +++ b/source/css/_schemes/Mist/outline/outline.styl @@ -1 +1,45 @@ +//margin-left and margin-right size +$offset-margin = 30px; + .main-inner { margin-top: 80px; } + +// 767px < screen < $content-desktop + marginLeft + marginRight (add marginLeft and marginRight) +@media only screen and (min-width: 767px) and (max-width: $content-desktop + ($offset-margin * 2)){ + .header-inner, + .main-inner, + .footer-inner{ + margin-left: $offset-margin; + margin-right: $offset-margin; + } +} + +// screen < $content-desktop + marginLeft + marginRight + sidebarWidth (hide sidebar) +@media only screen and (max-width: $content-desktop-large + ($offset-margin * 2) + $sidebar-desktop){ + body { + padding-left: 0 !important; + } + .sidebar { + display: none !important; + } +} + ++desktop-large() { +// 767px < screen < $content-desktop-large + marginLeft + marginRight (add marginLeft and marginRight) + @media only screen and (min-width: 767px) and (max-width: $content-desktop-large + ($offset-margin * 2)){ + .header-inner, + .main-inner, + .footer-inner{ + margin-left: $offset-margin; + margin-right: $offset-margin; + } + } +// screen < $content-desktop-large + marginLeft + marginRight + sidebarWidth (hide sidebar) + @media only screen and (max-width: $content-desktop-large + ($offset-margin * 2) + $sidebar-desktop){ + body { + padding-left: 0 !important; + } + .sidebar { + display: none !important; + } + } +}