Skip to content

Commit c305330

Browse files
authored
Rollup merge of #102550 - notriddle:notriddle/impl, r=GuillaumeGomez
rustdoc: remove no-op CSS on `.impl, .method` etc Preview: http://notriddle.com/notriddle-rustdoc-demos/impl/index.html # `flex-basis: 100%` When `.impl-items { flex-basis: 100% }` and `h3.impl, h3.method, h4.method, h3.type, h4.type, h4.associatedconstant` were added in 34bd2b8, it seems like it was a mistake even then. According to MDN, [flex-basis] does nothing unless the box it's applied to is a flex *item*, a child of a flex container. However, when this was added, these elements were flex containers themselves. [flex-basis]: https://developer.mozilla.org/en-US/docs/Web/CSS/flex-basis # `position: relative` This property was added to help with positioning the `[+]/[-]` toggle. It is no longer necessary, because `details.rustdoc-toggle` already has `position:relative` set on it.
2 parents 607b829 + d46e558 commit c305330

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

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

-12
Original file line numberDiff line numberDiff line change
@@ -184,18 +184,6 @@ h4.code-header {
184184
margin: 0;
185185
padding: 0;
186186
}
187-
.impl,
188-
.impl-items .method,
189-
.methods .method,
190-
.impl-items .type,
191-
.methods .type,
192-
.impl-items .associatedconstant,
193-
.methods .associatedconstant,
194-
.impl-items .associatedtype,
195-
.methods .associatedtype {
196-
flex-basis: 100%;
197-
position: relative;
198-
}
199187

200188
#crate-search,
201189
h1, h2, h3, h4, h5, h6,

0 commit comments

Comments
 (0)