Fix display of features in rustdoc
This commit is contained in:
parent
cf8d81213c
commit
bf681dcfb5
@ -1081,15 +1081,9 @@ so that we can apply CSS-filters to change the arrow color in themes */
|
|||||||
}
|
}
|
||||||
|
|
||||||
.item-info .stab {
|
.item-info .stab {
|
||||||
/* This min-height is needed to unify the height of the stab elements because some of them
|
display: block;
|
||||||
have emojis.
|
|
||||||
*/
|
|
||||||
min-height: 36px;
|
|
||||||
display: flex;
|
|
||||||
padding: 3px;
|
padding: 3px;
|
||||||
margin-bottom: 5px;
|
margin-bottom: 5px;
|
||||||
align-items: center;
|
|
||||||
vertical-align: text-bottom;
|
|
||||||
}
|
}
|
||||||
.item-name .stab {
|
.item-name .stab {
|
||||||
margin-left: 0.3125em;
|
margin-left: 0.3125em;
|
||||||
@ -1112,17 +1106,26 @@ so that we can apply CSS-filters to change the arrow color in themes */
|
|||||||
color: var(--stab-code-color);
|
color: var(--stab-code-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
.stab .emoji {
|
.stab .emoji, .item-info .stab::before {
|
||||||
font-size: 1.25rem;
|
font-size: 1.25rem;
|
||||||
|
}
|
||||||
|
.stab .emoji {
|
||||||
margin-right: 0.3rem;
|
margin-right: 0.3rem;
|
||||||
}
|
}
|
||||||
|
.item-info .stab::before {
|
||||||
|
/* ensure badges with emoji and without it have same height */
|
||||||
|
content: "\0";
|
||||||
|
width: 0;
|
||||||
|
display: inline-block;
|
||||||
|
color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
/* Black one-pixel outline around emoji shapes */
|
/* Black one-pixel outline around emoji shapes */
|
||||||
.emoji {
|
.emoji {
|
||||||
text-shadow:
|
text-shadow:
|
||||||
1px 0 0 black,
|
1px 0 0 black,
|
||||||
-1px 0 0 black,
|
-1px 0 0 black,
|
||||||
0 1px 0 black,
|
0 1px 0 black,
|
||||||
0 -1px 0 black;
|
0 -1px 0 black;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user