summaryrefslogtreecommitdiff
path: root/_sass
diff options
context:
space:
mode:
authorjeffreytse <jeffreytse.mail@gmail.com>2020-12-04 19:19:22 +0800
committerjeffreytse <jeffreytse.mail@gmail.com>2020-12-04 19:19:22 +0800
commit23a8b8941579049227d244449d2e1ba8741b99c4 (patch)
tree989b069c3a4e7249937716b522e7019e16f5c1c2 /_sass
parentd29ad66f0200a5b39c3e907b78d0760f7fb77d60 (diff)
fix: wrong display of code type badge in firefox (#11)
Diffstat (limited to '_sass')
-rw-r--r--_sass/yat/_base.scss7
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;