Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adjust sidebar hide time in Next.Mist #2015

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions source/css/_schemes/Mist/outline/outline.styl
Original file line number Diff line number Diff line change
@@ -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;
}
}
}