Skip to content

Commit d8b1069

Browse files
Remove unused CSS rules
1 parent e150aeb commit d8b1069

File tree

4 files changed

+2
-71
lines changed

4 files changed

+2
-71
lines changed

src/librustdoc/html/static/rustdoc.css

+2-68
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ h4.type.trait-impl, h4.associatedconstant.trait-impl, h4.associatedtype.trait-im
145145

146146
h1, h2, h3, h4,
147147
.sidebar, a.source, .search-input, .content table td:first-child > a,
148-
.collapse-toggle, div.item-list .out-of-band,
148+
div.item-list .out-of-band,
149149
#source-sidebar, #sidebar-toggle,
150150
details.rustdoc-toggle > summary::before,
151151
details.undocumented > summary::before,
@@ -560,9 +560,6 @@ h4 > code, h3 > code, .invisible > code {
560560
.content .docblock >.impl-items table td {
561561
padding: 0;
562562
}
563-
.toggle-wrapper.marg-left > .collapse-toggle {
564-
left: -24px;
565-
}
566563
.content .docblock > .impl-items .table-display, .impl-items table td {
567564
border: none;
568565
}
@@ -969,45 +966,6 @@ a.test-arrow:hover{
969966
font-weight: 300;
970967
}
971968

972-
.collapse-toggle {
973-
font-weight: 300;
974-
position: absolute;
975-
left: -23px;
976-
top: 0;
977-
}
978-
979-
h3 > .collapse-toggle, h4 > .collapse-toggle {
980-
font-size: 0.8em;
981-
top: 5px;
982-
}
983-
984-
.toggle-wrapper > .collapse-toggle {
985-
left: -24px;
986-
margin-top: 0px;
987-
}
988-
989-
.toggle-wrapper {
990-
position: relative;
991-
margin-top: 0;
992-
}
993-
994-
.toggle-wrapper.collapsed {
995-
height: 25px;
996-
transition: height .2s;
997-
margin-bottom: .6em;
998-
}
999-
1000-
.collapse-toggle > .inner {
1001-
display: inline-block;
1002-
width: 1.2ch;
1003-
text-align: center;
1004-
}
1005-
1006-
.collapse-toggle.hidden-default {
1007-
position: relative;
1008-
margin-left: 20px;
1009-
}
1010-
1011969
.since + .srclink {
1012970
display: table-cell;
1013971
padding-left: 10px;
@@ -1024,14 +982,6 @@ h3 > .collapse-toggle, h4 > .collapse-toggle {
1024982
margin-right: 5px;
1025983
}
1026984

1027-
.toggle-wrapper > .collapse-toggle {
1028-
left: 0;
1029-
}
1030-
1031-
.variant + .toggle-wrapper + .docblock > p {
1032-
margin-top: 5px;
1033-
}
1034-
1035985
.sub-variant, .sub-variant > h3 {
1036986
margin-top: 0px !important;
1037987
padding-top: 1px;
@@ -1452,14 +1402,6 @@ h4 > .notable-traits {
14521402
position: inherit;
14531403
}
14541404

1455-
.toggle-wrapper > .collapse-toggle {
1456-
left: 0px;
1457-
}
1458-
1459-
.toggle-wrapper {
1460-
height: 1.5em;
1461-
}
1462-
14631405
#search {
14641406
margin-left: 0;
14651407
}
@@ -1550,14 +1492,6 @@ h4 > .notable-traits {
15501492
border-bottom: 1px solid;
15511493
}
15521494

1553-
.collapse-toggle {
1554-
left: -20px;
1555-
}
1556-
1557-
.impl > .collapse-toggle {
1558-
left: -10px;
1559-
}
1560-
15611495
.item-list > details.rustdoc-toggle > summary:not(.hideme)::before {
15621496
left: -10px;
15631497
}
@@ -1597,7 +1531,7 @@ h4 > .notable-traits {
15971531
}
15981532

15991533
@media print {
1600-
nav.sub, .content .out-of-band, .collapse-toggle {
1534+
nav.sub, .content .out-of-band {
16011535
display: none;
16021536
}
16031537
}

src/librustdoc/html/static/themes/ayu.css

-1
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,6 @@ a {
224224
color: #39AFD7;
225225
}
226226

227-
.collapse-toggle,
228227
details.rustdoc-toggle > summary.hideme > span,
229228
details.rustdoc-toggle > summary::before,
230229
details.undocumented > summary::before {

src/librustdoc/html/static/themes/dark.css

-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,6 @@ a.test-arrow {
186186
color: #dedede;
187187
}
188188

189-
.collapse-toggle,
190189
details.rustdoc-toggle > summary.hideme > span,
191190
details.rustdoc-toggle > summary::before,
192191
details.undocumented > summary::before {

src/librustdoc/html/static/themes/light.css

-1
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,6 @@ a.test-arrow {
184184
color: #f5f5f5;
185185
}
186186

187-
.collapse-toggle,
188187
details.rustdoc-toggle > summary.hideme > span,
189188
details.rustdoc-toggle > summary::before,
190189
details.undocumented > summary::before {

0 commit comments

Comments
 (0)