-
Notifications
You must be signed in to change notification settings - Fork 0
/
_auk-sidebar.scss
162 lines (128 loc) · 3.2 KB
/
_auk-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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
/* ==========================================================================
Component: sidebar
========================================================================== */
.auk-sidebar {
width: 24rem;
height: 100%;
background-color: $auk-gray-100;
[data-sidebar-collapsed-only] {
display: none;
}
}
.auk-sidebar--auto {
width: auto;
}
/* Sidebar collapsed state
========================================================================== */
.auk-sidebar[data-collapsed='true'] {
width: 5rem;
[data-sidebar-collapsed-only] {
display: block;
}
[data-sidebar-expanded-only] {
display: none;
}
}
/* Sidebar positions
========================================================================== */
.auk-sidebar--left {
border-right: 0.1rem solid $auk-gray-300;
}
.auk-sidebar--right {
border-left: 0.1rem solid $auk-gray-300;
}
/* Sidebar sizes
========================================================================== */
.auk-sidebar--xlarge {
width: 55rem;
}
.auk-sidebar--large {
width: 35rem;
}
.auk-sidebar--small {
width: 25rem;
}
.auk-sidebar--xsmall {
width: 17.5rem;
}
/* Sidebar items
========================================================================== */
.auk-sidebar__item a {
display: block;
text-decoration: none;
padding: 1rem 2rem;
color: $auk-color-text;
transition: background-color 200ms;
.auk-sidebar--left[data-collapsed="true"] & {
padding: 1rem 1rem 1rem 1.5rem;
}
.auk-sidebar--right[data-collapsed="true"] & {
padding: 1rem 1.5rem 1rem 1rem;
}
&:hover {
background-color: $auk-gray-200;
}
}
.auk-sidebar__label + .auk-sidebar__sublabel {
margin-top: 0.5rem;
}
.auk-sidebar__sublabel {
font-size: 1.3rem;
color: $auk-color-muted;
}
.auk-sidebar__item--active a {
background-color: $auk-gray-200;
color: $auk-gray-800;
}
.auk-sidebar__item--styled {
position: relative;
&.auk-sidebar__item--active,
> a.active {
&:before {
content: "";
display: block;
position: absolute;
top: 0;
bottom: 0;
left: 0;
width: 0.4rem;
background-color: $auk-color-primary;
height: 100%;
}
}
}
/* Sidebar skins
========================================================================== */
.auk-sidebar--gray-100 {
background-color: $auk-gray-100;
}
.auk-sidebar--gray-200 {
background-color: $auk-gray-200;
.auk-sidebar__item a:hover {
background-color: $auk-gray-300;
}
.auk-sidebar__item a.active,
.auk-sidebar__item--active a {
background-color: $auk-gray-300;
}
}
.auk-sidebar--white {
background: #fff;
}
/* Responsive panel layout
========================================================================== */
.auk-sidebar--responsive.auk-sidebar[data-collapsed='false'],
.auk-sidebar--responsive.auk-sidebar:not(.auk-sidebar--collapsed) {
position: absolute;
top: 0;
right: 0;
box-shadow: -8px 15px 10px rgba(0, 0, 0, 0.14),
-3px 15px 14px rgba(0, 0, 0, 0.12), -4px 15px 5px rgba(0, 0, 0, 0.2);
}
@media (min-width: 1680px) {
.auk-sidebar--responsive.auk-sidebar[data-collapsed='false'],
.auk-sidebar--responsive.auk-sidebar:not(.auk-sidebar--collapsed) {
position: initial;
box-shadow: none;
}
}