Skip to content

Commit

Permalink
Rollup merge of #93444 - camelid:rustdoc-css-cleanup, r=GuillaumeGome…
Browse files Browse the repository at this point in the history
…z,jsha

Fix some CSS warnings and errors from VS Code

There's no such CSS rule as `box-shadow-color`, so I instead copied the
whole `box-shadow` property to each rule to make it actually apply.

r? `@jsha`
  • Loading branch information
matthiaskrgr authored Jan 31, 2022
2 parents c03bf54 + f8a013f commit 2070b22
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/librustdoc/html/static/css/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -1502,7 +1502,6 @@ kbd {
vertical-align: middle;
border: solid 1px;
border-radius: 3px;
box-shadow: inset 0 -1px 0;
cursor: default;
}

Expand Down
4 changes: 2 additions & 2 deletions src/librustdoc/html/static/css/themes/ayu.css
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ kbd {
background-color: #314559;
border-color: #5c6773;
border-bottom-color: #5c6773;
box-shadow-color: #c6cbd1;
box-shadow: inset 0 -1px 0 #5c6773;
}

#theme-picker, #settings-menu, #help-button {
Expand Down Expand Up @@ -631,5 +631,5 @@ input:checked + .slider {
background: #616161;
}
.toggle-line:hover .toggle-line-inner {
background: ##898989;
background: #898989;
}
4 changes: 2 additions & 2 deletions src/librustdoc/html/static/css/themes/dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ kbd {
background-color: #fafbfc;
border-color: #d1d5da;
border-bottom-color: #c6cbd1;
box-shadow-color: #c6cbd1;
box-shadow: inset 0 -1px 0 #c6cbd1;
}

#theme-picker, #settings-menu, #help-button {
Expand Down Expand Up @@ -497,5 +497,5 @@ div.files > .selected {
background: #616161;
}
.toggle-line:hover .toggle-line-inner {
background: ##898989;
background: #898989;
}
6 changes: 4 additions & 2 deletions src/librustdoc/html/static/css/themes/light.css
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ pre, .rustdoc.source .example-wrap {
}

.rust-logo {
/* No need for a border in here! */
/* This rule exists to force other themes to explicitly style the logo.
* Rustdoc has a custom linter for this purpose.
*/
}

/* Improve the scrollbar display on webkit-based browsers */
Expand Down Expand Up @@ -392,7 +394,7 @@ kbd {
background-color: #fafbfc;
border-color: #d1d5da;
border-bottom-color: #c6cbd1;
box-shadow-color: #c6cbd1;
box-shadow: inset 0 -1px 0 #c6cbd1;
}

#theme-picker, #settings-menu, #help-button {
Expand Down

0 comments on commit 2070b22

Please sign in to comment.