File tree Expand file tree Collapse file tree 1 file changed +13
-15
lines changed
src/librustdoc/html/static/css Expand file tree Collapse file tree 1 file changed +13
-15
lines changed Original file line number Diff line number Diff line change @@ -1081,15 +1081,9 @@ so that we can apply CSS-filters to change the arrow color in themes */
10811081}
10821082
10831083.item-info .stab {
1084- /* This min-height is needed to unify the height of the stab elements because some of them
1085- have emojis.
1086- */
1087- min-height : 36px ;
1088- display : flex;
1084+ display : block;
10891085 padding : 3px ;
10901086 margin-bottom : 5px ;
1091- align-items : center;
1092- vertical-align : text-bottom;
10931087}
10941088.item-name .stab {
10951089 margin-left : 0.3125em ;
@@ -1104,25 +1098,29 @@ so that we can apply CSS-filters to change the arrow color in themes */
11041098 white-space : pre-wrap;
11051099 border-radius : 3px ;
11061100 display : inline;
1107- vertical-align : baseline;
11081101}
1109-
1110- .stab .portability > code {
1102+ .stab .portability > code {
11111103 background : none;
11121104 color : var (--stab-code-color );
11131105}
1114-
1115- .stab .emoji {
1106+ .stab .emoji , .item-info .stab ::before {
11161107 font-size : 1.25rem ;
1108+ }
1109+ .stab .emoji {
11171110 margin-right : 0.3rem ;
11181111}
1119-
1120- /* Black one-pixel outline around emoji shapes */
1112+ .item-info .stab ::before {
1113+ /* ensure badges with emoji and without it have same height */
1114+ content : "\0" ;
1115+ width : 0 ;
1116+ display : inline-block;
1117+ color : transparent;
1118+ }
11211119.emoji {
11221120 text-shadow :
11231121 1px 0 0 black,
11241122 -1px 0 0 black,
1125- 0 1px 0 black,
1123+ 0 1px 0 black,
11261124 0 -1px 0 black;
11271125}
11281126
You can’t perform that action at this time.
0 commit comments