私は素晴らしいフォントを使用して、次の警告サインを生成する必要があります。 フォントの素晴らしいアイコンの背景円を小さくするには?
しかし、私は、余分なボーダーのように持っているので、それは正確にそれを作ることができないです:
これは私ですHTML:これは私のCSSで
<div role="alert" class="alert alert-dismissible">
<i id="exclamation-mark" class="fa fa-exclamation-circle extraClass" aria-hidden="true"></i>
<p style="display: inline;vertical-align: middle">
<span>Oops! Something went horribly wrong. </span> We’re really sorry. Please try that again.
</p>
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
×
</button>
</div>
(SCSS):
$color-secondary-1: #db2b4b;
p > span {
font-weight: bold;
}
div {
color: white;
text-align: center;
background-color: $color-secondary-1;
i {
font-size: 100px;
color: #ff91a5;
background: white;
border-radius: 50%;
height: 1em;
width: 1em;
}
}
.extraClass{
font-size:3em;
}
Thisは私のCodePenリンクです。
@Korgrueを、私は若干の変更をしましたが、私が望んでいたとしてそれがあります。必要に応じてこの問題を解決するために行ったことを説明する回答を提供することができます。 – lmiguelvargasf