Skip to content

Commit

Permalink
fix(base.styl):css (ppoffice#606)
Browse files Browse the repository at this point in the history
* fix(base.styl):css

* fix(base.styl):css

* fix(main.js):add is-mobile class
  • Loading branch information
removeif authored and ppoffice committed Jan 21, 2020
1 parent 7d60a3e commit 5ea7f05
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion source/css/base.styl
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ figure.highlight

figcaption
margin: 0 !important
padding: .3em .75em
padding: .3em .0em .3em .75em
font-style: normal
font-size: .8em

Expand All @@ -242,6 +242,13 @@ figure.highlight
.fold
cursor: pointer

&.level
overflow: auto
.level-right
a
padding: .0em 0.75em


.highlight-body
overflow: auto

Expand Down
2 changes: 1 addition & 1 deletion source/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand Down

0 comments on commit 5ea7f05

Please sign in to comment.