Dom*_*nic 3 html css firefox flexbox
我希望使用Flexbox来对齐按钮中的svg和文本,并且所有功能在Chrome和Safari中运行良好,但在Firefox中似乎存在问题.
这个codepen应该现场演示这个问题.请注意,我将https://github.com/mastastealth/sass-flex-mixin/blob/master/_flex.scss作为codepen中的外部CSS工作表.
http://codepen.io/dominicchapman/pen/EgNgoq
SCSS如下:
.Button {
border: 0 none;
height: 32px;
padding: 0 16px;
font-size: 14px;
background-color: orange;
color: white;
.Icon {
fill: white;
}
&:hover, &:active {
background: red;
}
}
.Button__icon {
@include inline-flex;
@include align-items(center);
.Icon {
margin-right: 11px;
height:16px;
width:6px
}
}
Run Code Online (Sandbox Code Playgroud)
任何帮助将不胜感激.提前致谢.