UNPKG

2.13 kBSCSSView Raw
1body {
2 overflow-x: hidden;
3}
4
5nav.burger-menu,
6main {
7 overflow: visible;
8 transition: transform 0.3s;
9 transition-timing-function: ease-out;
10}
11
12main {
13 z-index: 1;
14 position: relative;
15}
16
17.menu-open {
18 nav.burger-menu {
19 transform: translate3d(250px, 0, 0);
20 }
21
22 &.menu-push main {
23 transform: translate3d(250px, 0, 0);
24 }
25 &.menu-slide .burger-blocker {
26 pointer-events: all;
27 opacity: 1;
28 }
29}
30
31.burger-blocker {
32 position: fixed;
33 height: 100vh;
34 width: 100vw;
35 background-color: rgba(0, 0, 0, 0.3);
36 top: 0;
37 left: 250px;
38 left: 0;
39 right: 0;
40 bottom: 0;
41 z-index: 255;
42 pointer-events: none;
43 transition: opacity 0.2s;
44 opacity: 0;
45}
46
47nav.burger-menu {
48 position: fixed;
49 top: 0;
50 bottom: 0;
51 left: -250px;
52 width: 250px;
53 max-width: calc(100vw - 50px);
54 z-index: 256;
55 & > div{
56 height: 100%;
57 }
58
59
60
61 ul.burger-menu-list {
62 list-style: none;
63 padding: 0;
64 margin: 0;
65 height: 100%;
66 background-color: $gray-medium;
67 z-index: 1;
68 li{
69 margin: 0;
70 }
71
72 li div.burger-menu-item {
73 list-style: none;
74 display: block;
75 padding: 20px;
76 transition: background 0.1s;
77 text-decoration: none;
78 opacity: 0.8;
79 color: white;
80 border-bottom: 1px solid rgba(255, 255, 255, 0.1);
81
82 i {
83 margin-right: 10px;
84 }
85
86 &.active {
87 font-weight: bold;
88 opacity: 1;
89 background: rgba(255, 255, 255, 0.05);
90 }
91 }
92 }
93}
94
95.burger-menu-button {
96 outline: none;
97 border: 0;
98 height: 100%;
99 width: 100%;
100 text-align: center;
101 background: rgba(0, 0, 0, 0.1);
102 cursor: pointer;
103}
104
105.hidden {
106 display: none;
107}
108
109.tab-control {
110 .tab-item-header {
111 transition: background-color 0.1s;
112 cursor: pointer;
113 display: inline-block;
114 padding: $field-padding-vertical $field-padding-horizontal;
115 background-color: $gray-light;
116
117 &.selected {
118 background-color: $gray-medium;
119 color: $white;
120 }
121 }
122
123 &.tabs-right {
124 .tab-control-header {
125 text-align: right;
126 }
127 }
128
129 &.tabs-left {
130 .tab-control-header {
131 text-align: left;
132 }
133 }
134}
\No newline at end of file