【发布时间】:2020-12-29 16:31:40
【问题描述】:
使用以下 CSS:
.notice--info::before {
position: relative;
font-family: "Font Awesome 5 Free";
font-weight: 900;
top: .5em;
left: 0;
color: #ff980052;
content: "\f071 ";
font-size: 4em;
vertical-align: text-top;
line-height: .1em;
text-indent: 0;
}
我已经设法实现了这个外观:
在 Jekyll 的最小错误主题中使用这个 Kramdown 标记:
{: .notice--info}
Important: Our systems are evolving and becoming more and more interconnected and dependent upon one another. Therefore, we're providing a single checklist to handle all aspects of the morning prep so we can all work as a team on all aspects of the production.
我们的目标是为Minimal Mistakes Utility Classes 默认值添加字体真棒图标作为水印。
问题 1:如何让第一行重叠而不缩进?
问题 2:如何将文本置于最前面,使其成为顶层并且没有被 Font Awesome 图标的 alpha 通道洗掉?
谢谢!
【问题讨论】:
标签: sass css-selectors font-awesome