diff options
author | jeffreytse <jeffreytse.mail@gmail.com> | 2020-12-04 19:19:22 +0800 |
---|---|---|
committer | jeffreytse <jeffreytse.mail@gmail.com> | 2020-12-04 19:19:22 +0800 |
commit | 23a8b8941579049227d244449d2e1ba8741b99c4 (patch) | |
tree | 989b069c3a4e7249937716b522e7019e16f5c1c2 /_sass | |
parent | d29ad66f0200a5b39c3e907b78d0760f7fb77d60 (diff) |
fix: wrong display of code type badge in firefox (#11)
Diffstat (limited to '_sass')
-rw-r--r-- | _sass/yat/_base.scss | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/_sass/yat/_base.scss b/_sass/yat/_base.scss index 44afc1f..bef96b7 100644 --- a/_sass/yat/_base.scss +++ b/_sass/yat/_base.scss @@ -160,7 +160,7 @@ pre { background-color: #f0f0f0; // code language badge - &:before { + &::before { content: attr(data-lang); color: #fff; background-color: #ff4e00; @@ -174,6 +174,11 @@ pre { right: 0; } + // fix wrong badge display for firefox browser + code > table pre::before { + display: none; + } + > code { display: inline-block; padding: 20px!important; |