-
Notifications
You must be signed in to change notification settings - Fork 42
/
_patterns_sidenav.scss
61 lines (52 loc) · 1.11 KB
/
_patterns_sidenav.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
@use 'sass:math';
@mixin maas-p-sidenav {
.p-sidenav__toggle {
background-size: $sp-medium;
cursor: pointer;
float: right;
padding: $sp-x-large;
}
.p-sidenav__body {
// Fix p-sidebar-nav to understand
// h3 headings, and not require any classes on the <ul>s and <li>s
// Because the markup is pulled directly in from Discourse
padding: math.div($sp-large, 2) $sp-large;
a,
a:visited {
color: $color-dark;
text-decoration: none;
}
a:hover {
color: $color-link;
text-decoration: underline;
}
.is-active {
position: relative;
&::before {
background-color: $color-mid-light;
bottom: -0.25rem;
content: '';
left: -1rem;
position: absolute;
top: -0.25rem;
width: 0.1875rem;
}
}
ul {
margin-bottom: 0.625rem;
margin-left: 0;
padding-left: 1rem;
}
li {
padding-bottom: 0.125rem;
padding-top: 0.125rem;
}
h3 {
font-size: 1rem;
font-weight: 400;
line-height: 2;
margin: 0;
padding: 0;
}
}
}