0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

hamlにfontawesomeを入れ込む(擬似要素も)

Posted at

hamlにfont awesomeをいれたいんです!

.haml
  =fa_icon "edit"

indentはちゃんと取ってね♪

さて、今回は擬似要素を使う場合も調べました。。
以下はsassです。

.haml
  &::after {
    font-family"FontAwesome";
    content:"";
    position: relative;
    bottom:1.1em;

font-familyで指定してやるんですね。。
contentの中身は、fontawesomeのUnicodeをいれます。
\f293 ☜こんなやつ

hamlの記事があんまりなかったので、あんまり主流じゃないのかな??
知らんけど。。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?