forked from flutter/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_sidebar.scss
100 lines (83 loc) · 1.8 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
#side-nav-container {
position: fixed;
top: 56px;
left: 0;
width: 250px;
overflow-y: auto;
height: 100%;
background: $background-color;
}
.main-contents {
margin-left: 250px;
width: calc(100% - 250px);
display: flex;
justify-content: center;
padding-top: 40px; /* matches sidenav padding */
}
.main-contents-body {
width: 980px;
}
#mysidebar {
margin: 40px 0 40px 0;
ul {
margin-left: 0;
list-style: none;
}
li.sidebar-title {
color: #424242;
font-size: 20px;
}
ul.sidebar-items {
margin-bottom: 16px;
i.fa {
opacity: 0.5;
}
}
}
#overlay-under-drawer {
opacity: 0;
-webkit-transition: opacity 0.5s ease-out;
transition: opacity 0.5s ease-out;
}
@media screen and (max-width:767px) {
#side-nav-container {
position: relative;
}
.main-contents {
margin-left: inherit;
width: inherit;
}
#sidebar-toggle-button {
display: inline !important;
}
#mysidebar {
left:-100%;
position:fixed;
-webkit-transition: left .5s ease-out;
transition: left .5s ease-out;
z-index: 2000;
top:0;
width: 280px; /* works all the way down to an iphone 4 */
height: 100%;
background: white;
overflow-y: auto; /* TODO: how to hide scroll bars? */
}
#mysidebar.active {
left:0; /* this animates our drawer into the page */
padding: 24px;
margin-top: 0;
}
#overlay-under-drawer.active {
opacity: 0.6;
height: 100%;
width: 100%;
z-index: 1999;
position: fixed;
top: 0px;
left: 0px;
bottom: 0px;
right: 0px;
background-color: black;
display: block;
}
}