Skip to content

Commit 875fae9

Browse files
committed
Reduce complexity
1 parent 0017785 commit 875fae9

File tree

1 file changed

+15
-18
lines changed
  • themes/opentermsarchive/assets/css/components

1 file changed

+15
-18
lines changed

themes/opentermsarchive/assets/css/components/aside.css

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
.aside_nav {
1717
> ul > li > details > ul > li:last-child,
18-
> ul > li > details > ul > li > ul {
18+
> ul > li > details > ul > li:not(:last-child) > ul {
1919
margin-bottom: var(--mS);
2020
}
2121

@@ -38,7 +38,7 @@
3838
width: 100%;
3939
}
4040

41-
.aside_item-current {
41+
.aside_item-current {
4242
color: var(--colorBlack800);
4343

4444
&::before {
@@ -75,19 +75,20 @@
7575
bottom: 0;
7676
width: 1px;
7777
background-color: var(--colorPrimary);
78-
border-top-right-radius: 0;
79-
border-bottom-right-radius: 0;
78+
border-radius: 0;
8079
}
8180

82-
& .aside_item-current::before {
83-
top: 2px;
84-
bottom: 2px;
85-
}
81+
& .aside_item-current {
82+
&::before {
83+
top: 2px;
84+
bottom: 2px;
85+
}
8686

87-
& .aside_item-current::after {
88-
top: 0;
89-
bottom: 0;
90-
right: var(--mXS);
87+
&::after {
88+
top: 0;
89+
bottom: 0;
90+
right: var(--mXS);
91+
}
9192
}
9293
}
9394

@@ -142,12 +143,11 @@
142143
}
143144

144145
> span,
145-
> a {
146+
a {
146147
padding-left: var(--mS);
147148
}
148149

149150
> a {
150-
padding-left: var(--mL);
151151
padding-top: var(--p3XS);
152152
padding-bottom: var(--p3XS);
153153
}
@@ -159,9 +159,7 @@
159159
padding: 0;
160160

161161
a {
162-
padding-left: var(--mL);
163-
padding-top: var(--p3XS);
164-
padding-bottom: var(--p3XS);
162+
padding: var(--p3XS) var(--mL);
165163
border-radius: 4px;
166164
}
167165
}
@@ -170,4 +168,3 @@
170168
}
171169
}
172170
}
173-

0 commit comments

Comments
 (0)