-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Expand file tree
/
Copy pathsidebar.scss
More file actions
76 lines (70 loc) · 1.61 KB
/
sidebar.scss
File metadata and controls
76 lines (70 loc) · 1.61 KB
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
@import "variables";
@import "mixins";
hr.sidebar {
width: 218px;
height: 12px;
margin-bottom: 2em;
border: 0 !important;
@include background-image-2x($baseurl + "images/sidebar-divider", 218px, 12px);
}
aside.sidebar {
font-size: 13px !important;
line-height: $base-line-height * 0.75;
p {
font-size: 13px !important;
line-height: $base-line-height * 0.75;
}
.callout {
padding: 20px;
color: var(--aside-font-color);
background-color: #ebe9e1;
background-color: rgba(223, 221, 213, 0.33);
@include border-radius(3px);
p {
margin-bottom: 0;
}
}
}
// Floating sidebar button for tablet and smaller screens
aside.sidebar.active {
@include responsive-sidebar-ui;
}
.sidebar-btn {
display: none;
border: none;
background: none;
padding: 0;
margin: 0;
cursor: pointer;
width: 24px;
height: 24px;
transition: opacity 0.2s ease;
filter: sepia(100%) saturate(300%) brightness(70%) hue-rotate(350deg);
opacity: 0.8;
&:hover {
opacity: 1;
}
}
// Breakpoint ----------------
@media (max-width: $default) {
.sidebar-btn {
@include background-image-2x($baseurl + "images/icons/sidebar", 24px, 24px, center center);
display: block;
}
.sidebar-btn:focus + .sidebar, .sidebar:focus-within {
@include responsive-sidebar-ui;
}
aside{
&.sidebar {
position: fixed;
top: 1em;
-webkit-transform: translateX(-105.5%);
transform: translateX(-105.5%);
transition: transform 0.3s, background-color 0.3s;
padding: 20px;
height: 90vh;
overflow-y: scroll;
z-index: 1001 !important;
}
}
}