Skip to content

Commit 1e7b6ec

Browse files
authored
Rollup merge of rust-lang#103161 - notriddle:notriddle/copy-path-settings-help-button, r=GuillaumeGomez
rustdoc: remove redundant CSS on `#copy-path` The border and background were removed in 5d004c1, but not all the CSS was.
2 parents 0a19575 + 3aa3b8b commit 1e7b6ec

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

src/librustdoc/html/static/css/rustdoc.css

+8-12
Original file line numberDiff line numberDiff line change
@@ -1431,10 +1431,7 @@ h3.variant {
14311431
}
14321432

14331433
#settings-menu > a, #help-button > a, #copy-path {
1434-
padding: 5px;
14351434
width: 33px;
1436-
border: 1px solid var(--border-color);
1437-
border-radius: 2px;
14381435
cursor: pointer;
14391436
line-height: 1.5;
14401437
}
@@ -1444,10 +1441,18 @@ h3.variant {
14441441
height: 100%;
14451442
display: block;
14461443
background-color: var(--button-background-color);
1444+
border: 1px solid var(--border-color);
1445+
border-radius: 2px;
14471446
}
14481447

14491448
#copy-path {
14501449
color: var(--copy-path-button-color);
1450+
background: var(--main-background-color);
1451+
height: 34px;
1452+
margin-left: 10px;
1453+
padding: 0;
1454+
padding-left: 2px;
1455+
border: 0;
14511456
}
14521457
#copy-path > img {
14531458
filter: var(--copy-path-img-filter);
@@ -1495,15 +1500,6 @@ input:checked + .slider {
14951500
padding-top: 2px;
14961501
}
14971502

1498-
#copy-path {
1499-
height: 34px;
1500-
background-color: var(--main-background-color);
1501-
margin-left: 10px;
1502-
padding: 0;
1503-
padding-left: 2px;
1504-
border: 0;
1505-
}
1506-
15071503
kbd {
15081504
display: inline-block;
15091505
padding: 3px 5px;

0 commit comments

Comments
 (0)