File tree 1 file changed +12
-10
lines changed
src/librustdoc/html/static/css
1 file changed +12
-10
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 */
1081
1081
}
1082
1082
1083
1083
.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;
1089
1085
padding : 3px ;
1090
1086
margin-bottom : 5px ;
1091
- align-items : center;
1092
- vertical-align : text-bottom;
1093
1087
}
1094
1088
.item-name .stab {
1095
1089
margin-left : 0.3125em ;
@@ -1111,18 +1105,26 @@ so that we can apply CSS-filters to change the arrow color in themes */
1111
1105
background : none;
1112
1106
color : var (--stab-code-color );
1113
1107
}
1114
-
1115
- .stab .emoji {
1108
+ .stab .emoji , .item-info .stab ::before {
1116
1109
font-size : 1.25rem ;
1110
+ }
1111
+ .stab .emoji {
1117
1112
margin-right : 0.3rem ;
1118
1113
}
1114
+ .item-info .stab ::before {
1115
+ /* ensure badges with emoji and without it have same height */
1116
+ content : "\0" ;
1117
+ width : 0 ;
1118
+ display : inline-block;
1119
+ color : transparent;
1120
+ }
1119
1121
1120
1122
/* Black one-pixel outline around emoji shapes */
1121
1123
.emoji {
1122
1124
text-shadow :
1123
1125
1px 0 0 black,
1124
1126
-1px 0 0 black,
1125
- 0 1px 0 black,
1127
+ 0 1px 0 black,
1126
1128
0 -1px 0 black;
1127
1129
}
1128
1130
You can’t perform that action at this time.
0 commit comments