forked from Sylius/Stack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_sidebar.scss
More file actions
104 lines (85 loc) · 2.14 KB
/
_sidebar.scss
File metadata and controls
104 lines (85 loc) · 2.14 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
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
/*!
* This file is part of the Sylius package.
*
* (c) Sylius Sp. z o.o.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
.navbar-vertical .navbar-collapse .sidebar.navbar-nav {
--tblr-nav-link-color: rgba(255, 255, 255, 0.8);
--tblr-icon-color: rgba(255, 255, 255, 0.4);
.nav-item {
.nav-link {
padding-top: 0.65rem;
padding-bottom: 0.65rem;
font-size: 0.95rem;
font-weight: 500;
&:active {
transform: translateY(1px);
}
}
.dropdown-menu-column {
padding-bottom: 1.3rem;
.dropdown-item {
padding-top: 0.3rem;
padding-bottom: 0.3rem;
background: transparent;
color: $gray-500;
&.active {
color: $primary;
}
&:active {
transform: translateY(1px);
}
}
}
.dropdown-toggle.show::after {
transform: rotate(135deg) translate(2px, -2px);
}
}
}
.menu-search {
.btn,
.form-control {
border: 1px solid transparent;
background: transparent;
transition: opacity 0.1s;
}
.btn {
padding-left: 0.4rem;
border-right: 0;
}
.form-control {
border-left: 0;
}
> * {
opacity: 0.5;
}
&:has(input[data-menu-search]:focus) {
> * {
opacity: 0.8;
}
.btn,
.form-control {
border-color: var(--tblr-navbar-border-color);
}
}
[data-menu-search-clear] {
display: none;
}
[data-menu-search-icon] {
display: inherit;
}
&:has(input[data-menu-search]:not(:placeholder-shown)) [data-menu-search-clear] {
display: inherit;
}
&:has(input[data-menu-search]:not(:placeholder-shown)) [data-menu-search-icon] {
display: none;
}
}
@include color-mode(dark) {
.menu-search .form-control {
border-color: transparent;
}
}