Skip to content

Commit 0e953ed

Browse files
authored
Rollup merge of #106234 - notriddle:notriddle/button-width, r=GuillaumeGomez
rustdoc: simplify settings, help, and copy button CSS by not reusing Since there remains only one common CSS rule shared between them, there's no point to it: the block and selector costs more than the single `width` rule saves.
2 parents 6b792e9 + fefe309 commit 0e953ed

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

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

+3-5
Original file line numberDiff line numberDiff line change
@@ -1318,15 +1318,11 @@ a.test-arrow:hover {
13181318
-webkit-appearance: none;
13191319
opacity: 1;
13201320
}
1321+
13211322
#settings-menu, #help-button {
13221323
margin-left: 4px;
13231324
display: flex;
13241325
}
1325-
1326-
#settings-menu > a, #help-button > a, #copy-path {
1327-
width: 33px;
1328-
}
1329-
13301326
#settings-menu > a, #help-button > a {
13311327
display: flex;
13321328
align-items: center;
@@ -1338,6 +1334,7 @@ a.test-arrow:hover {
13381334
/* Rare exception to specifying font sizes in rem. Since this is acting
13391335
as an icon, it's okay to specify their sizes in pixels. */
13401336
font-size: 20px;
1337+
width: 33px;
13411338
}
13421339

13431340
#settings-menu > a:hover, #settings-menu > a:focus,
@@ -1353,6 +1350,7 @@ a.test-arrow:hover {
13531350
padding: 0;
13541351
padding-left: 2px;
13551352
border: 0;
1353+
width: 33px;
13561354
}
13571355
#copy-path > img {
13581356
filter: var(--copy-path-img-filter);

0 commit comments

Comments
 (0)