fix: wrong display of code type badge in firefox (#11)
This commit is contained in:
parent
d29ad66f02
commit
23a8b89415
1 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue