|
28 | 28 | position: relative; |
29 | 29 | border-bottom:1px solid var(--colorBlack200); |
30 | 30 |
|
| 31 | + &:last-child { |
| 32 | + border: none; |
| 33 | + } |
| 34 | + |
31 | 35 | a { |
32 | 36 | padding: var(--mXS) var(--mS); |
33 | 37 | display:inline-block; |
|
41 | 45 | .aside_item-current::before { |
42 | 46 | content: ''; |
43 | 47 | position: absolute; |
44 | | - left: 0px; |
45 | | - top: var(--m2XS); |
46 | | - bottom: var(--m2XS); |
47 | | - right: 0px; |
| 48 | + left: 0; |
48 | 49 | width: 4px; |
49 | 50 | background-color: var(--colorPrimary); |
50 | | - border-top-right-radius: 10px; |
51 | | - border-bottom-right-radius: 10px; |
| 51 | + border-radius: 0 10px 10px 0; |
52 | 52 | z-index: 1; |
| 53 | + top: var(--m2XS); |
| 54 | + bottom: var(--m2XS); |
53 | 55 | } |
54 | 56 |
|
55 | 57 | .aside_item-current::after { |
56 | 58 | content: ''; |
57 | 59 | position: absolute; |
58 | | - left: var(--mXS); |
59 | | - right: var(--m2XS); |
60 | | - top: var(--m2XS); |
61 | | - bottom: var(--m2XS); |
62 | 60 | background-color: var(--colorBlack200); |
63 | | - z-index: -1; |
64 | 61 | border-radius: 4px; |
| 62 | + z-index: -1; |
| 63 | + left: var(--mXS); |
| 64 | + right: var(--m2XS); |
| 65 | + top: var(--m2XS); |
| 66 | + bottom: var(--m2XS); |
65 | 67 | } |
66 | 68 |
|
67 | | - |
68 | 69 | &.aside_item-current-section { |
| 70 | + &::before { |
| 71 | + content: ''; |
| 72 | + position: absolute; |
| 73 | + left: 0; |
| 74 | + top: 0; |
| 75 | + bottom: 0; |
| 76 | + width: 1px; |
| 77 | + background-color: var(--colorPrimary); |
| 78 | + border-top-right-radius: 0; |
| 79 | + border-bottom-right-radius: 0; |
| 80 | + } |
| 81 | + |
69 | 82 | & .aside_item-current::before { |
70 | 83 | top: 2px; |
71 | 84 | bottom: 2px; |
|
78 | 91 | } |
79 | 92 | } |
80 | 93 |
|
81 | | - &:last-child{ |
82 | | - border:none; |
83 | | - } |
84 | | - |
85 | 94 | details{ |
86 | 95 | position: relative; |
87 | 96 |
|
|
90 | 99 | list-style: none; |
91 | 100 | cursor: pointer; |
92 | 101 |
|
93 | | - &:hover::after { |
94 | | - content: ''; |
95 | | - position: absolute; |
96 | | - left: 0; |
97 | | - right: 0; |
98 | | - top: 0; |
99 | | - bottom: 0; |
100 | | - background-color: var(--colorBlack200); |
101 | | - z-index: -1; |
102 | | - } |
103 | | - |
104 | 102 | &::marker, |
105 | 103 | &::-webkit-details-marker{ |
106 | 104 | display: none; |
|
114 | 112 | color:var(--colorBlack400); |
115 | 113 | transition: transform 0.2s ease; |
116 | 114 | } |
| 115 | + |
| 116 | + &:hover::after { |
| 117 | + content: ''; |
| 118 | + position: absolute; |
| 119 | + inset: 0; |
| 120 | + background-color: var(--colorBlack100); |
| 121 | + z-index: -1; |
| 122 | + } |
117 | 123 | } |
118 | 124 |
|
119 | 125 | &[open]{ |
|
129 | 135 | } |
130 | 136 |
|
131 | 137 | ul { |
132 | | - |
133 | 138 | li{ |
134 | 139 | border:none; |
135 | 140 |
|
136 | | - |
137 | 141 | a{ |
138 | | - padding: 0; |
| 142 | + padding: var(--p3XS) var(--mL); |
| 143 | + border-radius: 4px; |
139 | 144 | } |
140 | 145 |
|
141 | 146 | > span, a { |
|
146 | 151 | padding-left:var(--mL); |
147 | 152 | padding-top:var(--p3XS); |
148 | 153 | padding-bottom:var(--p3XS); |
149 | | - border-radius:4px; |
150 | 154 | } |
151 | 155 |
|
152 | 156 | > a { |
|
156 | 160 | ul{ |
157 | 161 | padding-top:0; |
158 | 162 |
|
159 | | - |
160 | | - /* padding-bottom:var(--mS); */ |
161 | | - |
162 | 163 | li{ |
163 | 164 | padding:0; |
164 | 165 |
|
|
168 | 169 | padding-bottom:var(--p3XS); |
169 | 170 | border-radius:4px; |
170 | 171 | } |
171 | | - |
172 | 172 | } |
173 | 173 | } |
174 | 174 | } |
175 | 175 | } |
176 | 176 | } |
177 | 177 | } |
178 | | - |
179 | | -.aside_item-current-section::before { |
180 | | - content: ''; |
181 | | - position: absolute; |
182 | | - left: 0; |
183 | | - top: 0; |
184 | | - bottom: 0; |
185 | | - width: 1px; |
186 | | - background-color: var(--colorPrimary); |
187 | | - border-top-right-radius: 0; |
188 | | - border-bottom-right-radius: 0; |
189 | | -} |
190 | | - |
0 commit comments