forked from SalGnt/Travelogue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_sidebar.scss
118 lines (100 loc) · 2.62 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
/* ==========================================================================
SIDEBAR
========================================================================== */
.sb-toggle-left {
height: 54px;
left: $spacing-unit / 2;
position: fixed;
text-indent: 100%;
top: $spacing-unit / 2;
white-space: nowrap;
width: 54px;
z-index: 1;
@include media-query($on-laptop) {
position: absolute;
}
.nav-icon {
background: $background-color;
box-shadow: 0 0 8px 0 $dark-color;
height: 2px;
left: 50%;
position: absolute;
top: 50%;
width: 28px;
@include transform(translateX(-50%) translateY(-50%));
&:after, &:before {
background: $background-color;
box-shadow: inherit;
content: '';
height: 100%;
position: absolute;
right: 0;
top: 0;
width: 100%;
}
&:before {
@include transform(translateY(-8px));
}
&:after {
@include transform(translateY(8px));
}
}
}
.sb-slidebar {
background: $dark-color;
color: $text-color-light;
letter-spacing: 1px;
z-index: 2;
.site-title {
font-size: 26px;
letter-spacing: 2px;
margin: 0;
padding: $spacing-unit ($spacing-unit / 3);
}
.site-info {
bottom: 0;
font-family: $base-font-family-sans;
font-size: 12px;
line-height: 2;
padding: $spacing-unit / 4 0;
position: absolute;
text-align: center;
width: 100%;
p {
margin: 0;
}
@include media-query($on-laptop) {
padding: $spacing-unit / 4;
width: auto;
}
}
.sb-menu {
list-style-type: none;
margin: 0;
padding: 0;
.active {
a {
background-color: rgba($light-color, .04);
}
}
> li {
border-top: 1px solid rgba($light-color, .05);
margin: 0;
padding: 0;
&:last-child {
border-bottom: 1px solid rgba($light-color, .05);
}
a {
color: $text-color-light;
font-family: $base-font-family-sans;
display: block;
padding: ($spacing-unit / 2) ($spacing-unit / 3);
&:hover {
background-color: $light-color;
color: $text-color;
text-decoration: none;
}
}
}
}
}