forked from tryton/sao
-
Notifications
You must be signed in to change notification settings - Fork 0
/
offcanvas.css
68 lines (56 loc) · 1.1 KB
/
offcanvas.css
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
65
66
67
68
/*
* Off Canvas
* --------------------------------------------------
*/
@media screen and (max-width: 991px) {
.row-offcanvas {
position: relative;
-webkit-transition: all .25s ease-out;
-o-transition: all .25s ease-out;
transition: all .25s ease-out;
}
.row-offcanvas-right {
right: 0;
}
.row-offcanvas-left {
left: 0;
}
.row-offcanvas-right
.sidebar-offcanvas {
right: calc(-50% + 7px);
}
.row-offcanvas-left
.sidebar-offcanvas {
left: calc(-50% + 7.5px);
}
.row-offcanvas-right.active {
right: calc(50% + 7.5px);
}
.row-offcanvas-left.active {
left: calc(50% + 7.5px);
}
.sidebar-offcanvas {
position: absolute;
top: 0;
width: 50%;
}
}
@media screen and (max-width: 479px) {
.row-offcanvas-right
.sidebar-offcanvas {
right: calc(-100% + 15px);
}
.row-offcanvas-left
.sidebar-offcanvas {
left: calc(-100% + 15px);
}
.row-offcanvas-right.active {
right: calc(100% + 15px);
}
.row-offcanvas-left.active {
left: calc(100% + 15px);
}
.sidebar-offcanvas {
width: 100%;
}
}