Skip to content

Commit 83ffd5c

Browse files
Fix tidy issues
1 parent 3429ded commit 83ffd5c

File tree

5 files changed

+35
-23
lines changed

5 files changed

+35
-23
lines changed

src/librustdoc/html/static/normalize.css

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/librustdoc/html/static/rustdoc.css

+12-11
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@
4949
}
5050

5151
* {
52-
-webkit-box-sizing: border-box;
53-
-moz-box-sizing: border-box;
54-
box-sizing: border-box;
52+
-webkit-box-sizing: border-box;
53+
-moz-box-sizing: border-box;
54+
box-sizing: border-box;
5555
}
5656

5757
/* This part handles the "default" theme being used depending on the system one. */
@@ -91,7 +91,8 @@ h2 {
9191
h3 {
9292
font-size: 1.3em;
9393
}
94-
h1, h2, h3:not(.impl):not(.method):not(.type):not(.tymethod):not(.important), h4:not(.method):not(.type):not(.tymethod):not(.associatedconstant) {
94+
h1, h2, h3:not(.impl):not(.method):not(.type):not(.tymethod):not(.important),
95+
h4:not(.method):not(.type):not(.tymethod):not(.associatedconstant) {
9596
font-weight: 500;
9697
margin: 20px 0 15px 0;
9798
padding-bottom: 6px;
@@ -103,7 +104,8 @@ h1.fqn {
103104
h1.fqn > .in-band > a:hover {
104105
text-decoration: underline;
105106
}
106-
h2, h3:not(.impl):not(.method):not(.type):not(.tymethod), h4:not(.method):not(.type):not(.tymethod):not(.associatedconstant) {
107+
h2, h3:not(.impl):not(.method):not(.type):not(.tymethod),
108+
h4:not(.method):not(.type):not(.tymethod):not(.associatedconstant) {
107109
border-bottom: 1px solid;
108110
}
109111
h3.impl, h3.method, h4.method, h3.type, h4.type, h4.associatedconstant {
@@ -1123,21 +1125,20 @@ h3 > .collapse-toggle, h4 > .collapse-toggle {
11231125
/* The margin on the tooltip does not capture hover events,
11241126
this extends the area of hover enough so that mouse hover is not
11251127
lost when moving the mouse to the tooltip */
1126-
content: "\00a0\00a0\00a0";
1128+
content: "\00a0\00a0\00a0";
11271129
}
11281130

11291131
.important-traits .important, .important-traits .docblock {
11301132
margin: 0;
11311133
}
11321134

11331135
.important-traits .docblock code.content{
1134-
margin: 0;
1135-
padding: 0;
1136-
font-size: 20px;
1136+
margin: 0;
1137+
padding: 0;
1138+
font-size: 20px;
11371139
}
11381140

1139-
/* Example code has the "Run" button that
1140-
needs to be positioned relative to the pre */
1141+
/* Example code has the "Run" button that needs to be positioned relative to the pre */
11411142
pre.rust.rust-example-rendered {
11421143
position: relative;
11431144
}

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

+14-8
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ body {
1010
color: #c5c5c5;
1111
}
1212

13-
h1, h2, h3:not(.impl):not(.method):not(.type):not(.tymethod), h4:not(.method):not(.type):not(.tymethod) {
13+
h1, h2, h3:not(.impl):not(.method):not(.type):not(.tymethod),
14+
h4:not(.method):not(.type):not(.tymethod) {
1415
color: white;
1516
}
1617
h1.fqn {
@@ -41,7 +42,7 @@ h3 > code, h4 > code, h5 > code {
4142
color: #e6e1cf;
4243
}
4344
pre > code {
44-
color: #e6e1cf;
45+
color: #e6e1cf;
4546
}
4647
span code {
4748
color: #e6e1cf;
@@ -192,7 +193,7 @@ pre {
192193
color: #a37acc;
193194
}
194195

195-
pre.rust .comment, pre.rust .doccomment {
196+
pre.rust .comment, pre.rust .doccomment {
196197
color: #788797;
197198
font-style: italic;
198199
}
@@ -423,12 +424,13 @@ pre.ignore:hover, .information:hover + pre.ignore {
423424
/* rules that this theme does not need to set, here to satisfy the rule checker */
424425
/* note that a lot of these are partially set in some way (meaning they are set
425426
individually rather than as a group) */
426-
/* TODO: these rules should be at the bottom of the file but currently must be
427+
/* FIXME: these rules should be at the bottom of the file but currently must be
427428
above the `@media (max-width: 700px)` rules due to a bug in the css checker */
428429
/* see https://github.com/rust-lang/rust/pull/71237#issuecomment-618170143 */
429430
.content .highlighted.mod, .content .highlighted.externcrate {}
430431
.search-input:focus {}
431-
.content span.attr,.content a.attr,.block a.current.attr,.content span.derive,.content a.derive,.block a.current.derive,.content span.macro,.content a.macro,.block a.current.macro {}
432+
.content span.attr,.content a.attr,.block a.current.attr,.content span.derive,.content a.derive,
433+
.block a.current.derive,.content span.macro,.content a.macro,.block a.current.macro {}
432434
.content .highlighted.trait {}
433435
.content span.struct,.content a.struct,.block a.current.struct {}
434436
#titles>div:hover,#titles>div.selected {}
@@ -443,16 +445,20 @@ pre.rust .lifetime {}
443445
.content .highlighted.fn,.content .highlighted.method,.content .highlighted.tymethod {}
444446
h2,h3:not(.impl):not(.method):not(.type):not(.tymethod),h4:not(.method):not(.type):not(.tymethod) {}
445447
.content span.enum,.content a.enum,.block a.current.enum {}
446-
.content span.constant,.content a.constant,.block a.current.constant,.content span.static,.content a.static,.block a.current.static {}
448+
.content span.constant,.content a.constant,.block a.current.constant,.content span.static,
449+
.content a.static,.block a.current.static {}
447450
.content span.keyword,.content a.keyword,.block a.current.keyword {}
448451
pre.rust .comment {}
449452
.content .highlighted.enum {}
450453
.content .highlighted.struct {}
451454
.content .highlighted.keyword {}
452455
.content span.traitalias,.content a.traitalias,.block a.current.traitalias {}
453-
.content span.fn,.content a.fn,.block a.current.fn,.content span.method,.content a.method,.block a.current.method,.content span.tymethod,.content a.tymethod,.block a.current.tymethod,.content .fnname {}
456+
.content span.fn,.content a.fn,.block a.current.fn,.content span.method,.content a.method,
457+
.block a.current.method,.content span.tymethod,.content a.tymethod,.block a.current.tymethod,
458+
.content .fnname {}
454459
pre.rust .kw {}
455-
pre.rust .self,pre.rust .bool-val,pre.rust .prelude-val,pre.rust .attribute,pre.rust .attribute .ident {}
460+
pre.rust .self,pre.rust .bool-val,pre.rust .prelude-val,pre.rust .attribute,
461+
pre.rust .attribute .ident {}
456462
.content span.foreigntype,.content a.foreigntype,.block a.current.foreigntype {}
457463
pre.rust .doccomment {}
458464
.stab.deprecated {}

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

+4-2
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@ body {
33
color: #ddd;
44
}
55

6-
h1, h2, h3:not(.impl):not(.method):not(.type):not(.tymethod), h4:not(.method):not(.type):not(.tymethod) {
6+
h1, h2, h3:not(.impl):not(.method):not(.type):not(.tymethod),
7+
h4:not(.method):not(.type):not(.tymethod) {
78
color: #ddd;
89
}
910
h1.fqn {
1011
border-bottom-color: #d2d2d2;
1112
}
12-
h2, h3:not(.impl):not(.method):not(.type):not(.tymethod), h4:not(.method):not(.type):not(.tymethod) {
13+
h2, h3:not(.impl):not(.method):not(.type):not(.tymethod),
14+
h4:not(.method):not(.type):not(.tymethod) {
1315
border-bottom-color: #d2d2d2;
1416
}
1517

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

+4-2
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@ body {
55
color: black;
66
}
77

8-
h1, h2, h3:not(.impl):not(.method):not(.type):not(.tymethod), h4:not(.method):not(.type):not(.tymethod) {
8+
h1, h2, h3:not(.impl):not(.method):not(.type):not(.tymethod),
9+
h4:not(.method):not(.type):not(.tymethod) {
910
color: black;
1011
}
1112
h1.fqn {
1213
border-bottom-color: #D5D5D5;
1314
}
14-
h2, h3:not(.impl):not(.method):not(.type):not(.tymethod), h4:not(.method):not(.type):not(.tymethod) {
15+
h2, h3:not(.impl):not(.method):not(.type):not(.tymethod),
16+
h4:not(.method):not(.type):not(.tymethod) {
1517
border-bottom-color: #DDDDDD;
1618
}
1719

0 commit comments

Comments
 (0)