Rollup merge of #102436 - notriddle:notriddle/normalize-form, r=GuillaumeGomez
rustdoc: clean up "normalize.css 8" input override CSS These rules were copied from normalize.css 3, and are mostly redundant. * `optgroup` isn't used in rustdoc at all * `textarea` is only used for the "copy" button, so it's not visible * The remaining buttons and inputs mostly have styles set anyway. * We should never be setting `color` without also setting the background to something. Otherwise, you get white-on-gray text. That seems to be [the reason] why `normalize.css` changed this. [the reason]: https://github.com/necolas/normalize.css/pull/502
This commit is contained in:
commit
5f18c2bd10
2 changed files with 11 additions and 13 deletions
|
@ -191,6 +191,7 @@ h4.code-header {
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#crate-search,
|
||||||
h1, h2, h3, h4, h5, h6,
|
h1, h2, h3, h4, h5, h6,
|
||||||
.sidebar,
|
.sidebar,
|
||||||
.mobile-topbar,
|
.mobile-topbar,
|
||||||
|
@ -304,16 +305,6 @@ summary {
|
||||||
|
|
||||||
/* Fix some style changes due to normalize.css 8 */
|
/* Fix some style changes due to normalize.css 8 */
|
||||||
|
|
||||||
button,
|
|
||||||
input,
|
|
||||||
optgroup,
|
|
||||||
select,
|
|
||||||
textarea {
|
|
||||||
color: inherit;
|
|
||||||
font: inherit;
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
button {
|
button {
|
||||||
/* Buttons on Safari have different default padding than other platforms. Make them the same. */
|
/* Buttons on Safari have different default padding than other platforms. Make them the same. */
|
||||||
padding: 1px 6px;
|
padding: 1px 6px;
|
||||||
|
@ -887,6 +878,9 @@ table,
|
||||||
/* Removes default arrow from firefox */
|
/* Removes default arrow from firefox */
|
||||||
text-indent: 0.01px;
|
text-indent: 0.01px;
|
||||||
background-color: var(--main-background-color);
|
background-color: var(--main-background-color);
|
||||||
|
color: inherit;
|
||||||
|
line-height: 1.5;
|
||||||
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
/* cancel stylistic differences in padding in firefox
|
/* cancel stylistic differences in padding in firefox
|
||||||
for "appearance: none"-style (or equivalent) <select>s */
|
for "appearance: none"-style (or equivalent) <select>s */
|
||||||
|
@ -1363,6 +1357,8 @@ pre.rust {
|
||||||
border: 0;
|
border: 0;
|
||||||
border-top: 2px solid;
|
border-top: 2px solid;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
line-height: 1.5;
|
||||||
|
color: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
#titles > button > div.count {
|
#titles > button > div.count {
|
||||||
|
@ -1380,7 +1376,6 @@ pre.rust {
|
||||||
position: sticky;
|
position: sticky;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
font-weight: bold;
|
|
||||||
font-size: 1.25rem;
|
font-size: 1.25rem;
|
||||||
border-bottom: 1px solid;
|
border-bottom: 1px solid;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -1400,6 +1395,8 @@ pre.rust {
|
||||||
margin-bottom: 6px;
|
margin-bottom: 6px;
|
||||||
}
|
}
|
||||||
#sidebar-toggle > button {
|
#sidebar-toggle > button {
|
||||||
|
font-size: inherit;
|
||||||
|
font-weight: bold;
|
||||||
background: none;
|
background: none;
|
||||||
color: inherit;
|
color: inherit;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
@ -1428,6 +1425,7 @@ pre.rust {
|
||||||
border: 1px solid var(--border-color);
|
border: 1px solid var(--border-color);
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
line-height: 1.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
#settings-menu > a, #help-button > button {
|
#settings-menu > a, #help-button > button {
|
||||||
|
@ -1887,7 +1885,6 @@ in storage.js plus the media query with (min-width: 701px)
|
||||||
border-top-right-radius: 3px;
|
border-top-right-radius: 3px;
|
||||||
border-bottom-right-radius: 3px;
|
border-bottom-right-radius: 3px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
font-weight: bold;
|
|
||||||
border: 1px solid;
|
border: 1px solid;
|
||||||
border-left: 0;
|
border-left: 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,7 +12,8 @@
|
||||||
margin-right: 0.3em;
|
margin-right: 0.3em;
|
||||||
height: 1.2rem;
|
height: 1.2rem;
|
||||||
width: 1.2rem;
|
width: 1.2rem;
|
||||||
border: 1px solid;
|
color: inherit;
|
||||||
|
border: 1px solid currentColor;
|
||||||
outline: none;
|
outline: none;
|
||||||
-webkit-appearance: none;
|
-webkit-appearance: none;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue