Cool-Y.github.io/themes/next/source/css/_common/components/sidebar/sidebar-toggle.styl

37 lines
701 B
Stylus
Raw Permalink Normal View History

2019-04-02 08:28:32 +00:00
.sidebar-toggle {
position: fixed;
right: $b2t-position-right;
bottom: 45px;
width: 14px;
height: 14px;
padding: 5px;
background: $black-deep;
line-height: 0;
z-index: $zindex-5;
cursor: pointer;
-webkit-transform: translateZ(0);
+tablet() {
fixbutton() if hexo-config('sidebar.onmobile');
hide() if not hexo-config('sidebar.onmobile');
}
+mobile() {
fixbutton() if hexo-config('sidebar.onmobile');
hide() if not hexo-config('sidebar.onmobile');
}
}
.sidebar-toggle-line {
position: relative;
display: inline-block;
vertical-align: top;
height: 2px;
width: 100%;
background: white;
margin-top: 3px;
&:first-child { margin-top: 0; }
}