/
_sidebar.scss
64 lines (55 loc) · 1.05 KB
/
_sidebar.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
@use "../tools/responsive";
@use "../settings/variables";
.c-sidebar {
background: var(--sidebar-bg-color);
z-index: variables.$sidebar-zindex;
}
@include responsive.media-query using ($breakpoint) {
@if $breakpoint == "extra-wide" {
.c-sidebar {
width: 440px;
}
}
@if $breakpoint == "wide" {
.c-sidebar {
width: 420px;
}
}
@if $breakpoint == "extra-large" {
.c-sidebar {
width: 400px;
}
}
@if $breakpoint == "large" {
.c-sidebar {
width: 380px;
}
}
@if $breakpoint == "medium" {
.c-sidebar {
width: 360px;
}
}
@if $breakpoint == "small" {
.c-sidebar {
width: 340px;
}
}
@if $breakpoint == "extra-small" {
.c-sidebar {
position: fixed;
bottom: 0;
z-index: variables.$base-zindex - 1;
height: 100%;
width: 100%;
visibility: hidden;
opacity: 0;
}
.c-sidebar.is-expanded {
z-index: variables.$expanded-sidebar-zindex;
visibility: visible;
height: 100%;
opacity: 1;
}
}
}