setting:コードブロックにアイコン
問題
import元を修正したが
設定
code:style.css
code:style.css
.line span.code-block .code-block-start title:before { text-decoration: none !important;
font-family: "Font Awesome 6 Brands", "Font Awesome 6 Free";
font-weight: 400;
display: inline-block;
}
code:test.zsh
code:style.css
.line span.code-block .code-block-start title="fish":before, .line span.code-block .code-block-start title="bash":before, .line span.code-block .code-block-start title="zsh":before, .line span.code-block .code-block-start title="sh":before, font: var(--fa-font-solid);
content: '\f120 ';
}
code:test.css
code:style.css
.line span.code-block .code-block-start title="css":before { font: var(--fa-font-brands);
content: '\f38b ';
}
code:test.html
code:style.css
.line span.code-block .code-block-start title="html":before { font: var(--fa-font-brands);
content: '\f13b ';
}
code:test.js
code:style.css
font: var(--fa-font-brands);
content: '\f3b9 ';
}
辞書
code:test.json
code:style.css
.line span.code-block .code-block-start title="toml":before, .line span.code-block .code-block-start title="json":before, .line span.code-block .code-block-start title="yaml":before { font: var(--fa-font-solid);
content: '\f1de ';
}
code:test.gitignore
code:style.css
font: var(--fa-font-brands);
content: '\f841 ';
}
code:test.md
code:style.css
font: var(--fa-font-brands);
content: '\f60f ';
}
code:test.hs
code:style.css
font: var(--fa-font-solid);
content: '\f121 ';
}
code:test.rs
code:style.css
.line span.code-block .code-block-start title="rust":before { font: var(--fa-font-brands);
content: '\e07a ';
}
code:test.sig
code:style.css
.line span.code-block .code-block-start title="sig":before { font: var(--fa-font-solid);
content: '\f233 ';
}
更新
2024/2/17
2021/5/28
a::beforeから:beforeに
無名のときに対応
スペースに気をつける
参考
この人はnerdfont入りのフォントをアップロードして使ってた