Skip to content

Commit 835a102

Browse files
committed
rustdoc: remove no-op CSS .impl { flex-basis: 100% } etc
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
1 parent 744e397 commit 835a102

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

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

-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,6 @@ h4.code-header {
193193
.methods .associatedconstant,
194194
.impl-items .associatedtype,
195195
.methods .associatedtype {
196-
flex-basis: 100%;
197196
position: relative;
198197
}
199198

0 commit comments

Comments
 (0)