fix: wrong display of code type badge in firefox (#11)

This commit is contained in:
jeffreytse 2020-12-04 19:19:22 +08:00
parent d29ad66f02
commit 23a8b89415

View file

@ -160,7 +160,7 @@ pre {
background-color: #f0f0f0; background-color: #f0f0f0;
// code language badge // code language badge
&:before { &::before {
content: attr(data-lang); content: attr(data-lang);
color: #fff; color: #fff;
background-color: #ff4e00; background-color: #ff4e00;
@ -174,6 +174,11 @@ pre {
right: 0; right: 0;
} }
// fix wrong badge display for firefox browser
code > table pre::before {
display: none;
}
> code { > code {
display: inline-block; display: inline-block;
padding: 20px!important; padding: 20px!important;