From 23a8b8941579049227d244449d2e1ba8741b99c4 Mon Sep 17 00:00:00 2001 From: jeffreytse Date: Fri, 4 Dec 2020 19:19:22 +0800 Subject: fix: wrong display of code type badge in firefox (#11) --- _sass/yat/_base.scss | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3