Skip to content

Commit 984d23f

Browse files
kapunahelewongAndrewKushnir
authored andcommitted
fix(docs-infra): fix broken toc ul styles (angular#32124)
Fixes angular#32027 PR Close angular#32124
1 parent 8af85d8 commit 984d23f

File tree

1 file changed

+108
-108
lines changed

1 file changed

+108
-108
lines changed

aio/src/styles/2-modules/_toc.scss

Lines changed: 108 additions & 108 deletions
Original file line numberDiff line numberDiff line change
@@ -50,140 +50,140 @@
5050
background: $lightgray;
5151
}
5252
}
53+
}
5354

54-
&.toc-heading {
55-
mat-icon.rotating-icon {
56-
height: 18px;
57-
width: 18px;
58-
position: relative;
59-
left: -4px;
60-
top: 5px;
61-
}
55+
&.toc-heading {
56+
mat-icon.rotating-icon {
57+
height: 18px;
58+
width: 18px;
59+
position: relative;
60+
left: -4px;
61+
top: 5px;
62+
}
6263

63-
&:hover:not(.embedded) {
64-
color: $accentblue;
65-
}
64+
&:hover:not(.embedded) {
65+
color: $accentblue;
6666
}
67+
}
6768

68-
&.toc-more-items {
69-
color: $mediumgray;
70-
top: 10px;
71-
position: relative;
69+
&.toc-more-items {
70+
color: $mediumgray;
71+
top: 10px;
72+
position: relative;
7273

73-
&:hover {
74-
color: $accentblue;
75-
}
74+
&:hover {
75+
color: $accentblue;
76+
}
7677

77-
&::after {
78-
content: 'expand_less';
79-
}
78+
&::after {
79+
content: 'expand_less';
80+
}
8081

81-
&.collapsed::after {
82-
content: 'more_horiz';
83-
}
82+
&.collapsed::after {
83+
content: 'more_horiz';
8484
}
85+
}
8586

86-
.mat-icon {
87-
&.collapsed {
88-
@include rotate(0deg);
89-
}
87+
.mat-icon {
88+
&.collapsed {
89+
@include rotate(0deg);
90+
}
9091

91-
&:not(.collapsed) {
92-
@include rotate(90deg);
93-
}
92+
&:not(.collapsed) {
93+
@include rotate(90deg);
94+
}
95+
}
96+
97+
ul.toc-list {
98+
list-style-type: none;
99+
margin: 0;
100+
padding: 0 8px 0 0;
101+
102+
@media (max-width: 800px) {
103+
width: auto;
94104
}
95105

96-
ul.toc-list {
97-
list-style-type: none;
98-
margin: 0;
99-
padding: 0 8px 0 0;
106+
li {
107+
box-sizing: border-box;
108+
@include font-size(12);
109+
@include line-height(16);
110+
padding: 3px 0 3px 12px;
111+
position: relative;
112+
transition: all 0.3s ease-in-out;
113+
114+
&.h1:after {
115+
content: '';
116+
display: block;
117+
height: 1px;
118+
width: 40%;
119+
margin: 7px 0 4px 0;
120+
background: $lightgray;
121+
clear: both;
122+
}
100123

101-
@media (max-width: 800px) {
102-
width: auto;
124+
&.h3 {
125+
padding-left: 24px;
103126
}
104127

105-
li {
106-
box-sizing: border-box;
128+
a {
129+
color: lighten($darkgray, 10);
130+
overflow: visible;
107131
@include font-size(12);
108-
@include line-height(16);
109-
padding: 3px 0 3px 12px;
110-
position: relative;
111-
transition: all 0.3s ease-in-out;
112-
113-
&.h1:after {
114-
content: '';
115-
display: block;
116-
height: 1px;
117-
width: 40%;
118-
margin: 7px 0 4px 0;
119-
background: $lightgray;
120-
clear: both;
121-
}
122-
123-
&.h3 {
124-
padding-left: 24px;
125-
}
126-
127-
a {
128-
color: lighten($darkgray, 10);
129-
overflow: visible;
130-
@include font-size(12);
131-
display: table-cell;
132-
}
132+
display: table-cell;
133+
}
133134

134-
&:hover {
135-
* {
136-
color: $accentblue;
137-
}
135+
&:hover {
136+
* {
137+
color: $accentblue;
138138
}
139+
}
139140

140-
&.active {
141-
* {
142-
color: $blue;
143-
font-weight: 500;
144-
145-
&:before {
146-
content: '';
147-
border-radius: 50%;
148-
left: -3px;
149-
top: 12px;
150-
background: $blue;
151-
position: absolute;
152-
width: 6px;
153-
height: 6px;
154-
}
141+
&.active {
142+
* {
143+
color: $blue;
144+
font-weight: 500;
145+
146+
&:before {
147+
content: '';
148+
border-radius: 50%;
149+
left: -3px;
150+
top: 12px;
151+
background: $blue;
152+
position: absolute;
153+
width: 6px;
154+
height: 6px;
155155
}
156156
}
157157
}
158+
}
158159

159-
&:not(.embedded) li {
160-
&:before {
161-
border-left: 1px solid $lightgray;
162-
bottom: 0;
163-
content: '';
164-
left: 0;
165-
position: absolute;
166-
top: 0;
167-
}
160+
&:not(.embedded) li {
161+
&:before {
162+
border-left: 1px solid $lightgray;
163+
bottom: 0;
164+
content: '';
165+
left: 0;
166+
position: absolute;
167+
top: 0;
168+
}
168169

169-
&:first-child:before {
170-
top: 13px;
171-
}
170+
&:first-child:before {
171+
top: 13px;
172+
}
172173

173-
&:last-child:before {
174-
bottom: calc(100% - 14px);
175-
}
174+
&:last-child:before {
175+
bottom: calc(100% - 14px);
176+
}
176177

177-
&:not(.active):hover a:before {
178-
content: '';
179-
border-radius: 50%;
180-
left: -3px;
181-
top: 12px;
182-
background: $lightgray;
183-
position: absolute;
184-
width: 6px;
185-
height: 6px;
186-
}
178+
&:not(.active):hover a:before {
179+
content: '';
180+
border-radius: 50%;
181+
left: -3px;
182+
top: 12px;
183+
background: $lightgray;
184+
position: absolute;
185+
width: 6px;
186+
height: 6px;
187187
}
188188
}
189189
}

0 commit comments

Comments
 (0)