/
_category_tree.scss
106 lines (97 loc) · 1.81 KB
/
_category_tree.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
ul.category-tree {
padding: 0;
.less,
.more {
background: none;
position: relative;
> .checkbox,
> .radio {
cursor: pointer;
&::before {
position: absolute;
font-family: 'Material Icons';
cursor: pointer;
font-size: 1.25rem;
color: $gray-medium;
top: -0.25rem;
left: -0.1rem;
}
}
}
.less {
> .checkbox,
> .radio {
&::before {
content: "\E313";
}
}
}
.more {
> .checkbox,
> .radio {
&::before {
content: "\E5CC";
}
}
}
.category-label {
display: block;
padding-left: 0;
position: relative;
.category {
cursor: pointer;
position: absolute;
top: .4em; // relative to the current font size, so "em" and not "rem"
right: .4em;
}
}
ul {
padding-left: 1.563rem;
}
li {
list-style: none;
background-repeat: no-repeat;
background-size: 12px 12px;
background-position: 0 3px;
.checkbox,
.radio {
padding-left: 20px;
padding-top: 0;
}
}
}
// category tree on the catalog page
#tree-categories {
padding: 0.625rem;
.categories-tree-actions {
border-bottom: .063rem solid $gray-light;
margin-bottom: .625rem;
white-space: nowrap; // prevent buttons from collapsing
> a {
display: inline-block;
margin-bottom: .625rem;
+ a {
margin-left: 0.9375rem;
}
&:hover {
text-decoration: none;
}
i.material-icons {
font-size: 1.25rem;
vertical-align: bottom;
}
color: $gray-medium;
}
}
label.form-control-label {
color: $gray-medium;
width: 100%;
padding-left: 15px;
padding-right: 15px;
}
#choice_tree {
.category-tree {
margin-bottom: 0;
}
}
}