fix(base.styl):css (#606)

* fix(base.styl):css

* fix(base.styl):css

* fix(main.js):add is-mobile class
This commit is contained in:
isAlive 2020-01-22 00:00:49 +08:00 committed by Ruipeng Zhang
parent 7d60a3ed5e
commit 5ea7f05c0b
2 changed files with 9 additions and 2 deletions

View File

@ -222,7 +222,7 @@ figure.highlight
figcaption
margin: 0 !important
padding: .3em .75em
padding: .3em .0em .3em .75em
font-style: normal
font-size: .8em
@ -242,6 +242,13 @@ figure.highlight
.fold
cursor: pointer
&.level
overflow: auto
.level-right
a
padding: .0em 0.75em
.highlight-body
overflow: auto

View File

@ -68,7 +68,7 @@
$('figure.highlight').each(function() {
if ($(this).find('figcaption').length) {
$(this).find('figcaption').addClass('level');
$(this).find('figcaption').addClass('level is-mobile');
$(this).find('figcaption').append('<div class="level-left">');
$(this).find('figcaption').append('<div class="level-right">');
$(this).find('figcaption div.level-left').append($(this).find('figcaption').find('span'));