fix(base.styl):css (#606)
* fix(base.styl):css * fix(base.styl):css * fix(main.js):add is-mobile classpull/619/head
parent
7d60a3ed5e
commit
5ea7f05c0b
|
@ -222,7 +222,7 @@ figure.highlight
|
||||||
|
|
||||||
figcaption
|
figcaption
|
||||||
margin: 0 !important
|
margin: 0 !important
|
||||||
padding: .3em .75em
|
padding: .3em .0em .3em .75em
|
||||||
font-style: normal
|
font-style: normal
|
||||||
font-size: .8em
|
font-size: .8em
|
||||||
|
|
||||||
|
@ -242,6 +242,13 @@ figure.highlight
|
||||||
.fold
|
.fold
|
||||||
cursor: pointer
|
cursor: pointer
|
||||||
|
|
||||||
|
&.level
|
||||||
|
overflow: auto
|
||||||
|
.level-right
|
||||||
|
a
|
||||||
|
padding: .0em 0.75em
|
||||||
|
|
||||||
|
|
||||||
.highlight-body
|
.highlight-body
|
||||||
overflow: auto
|
overflow: auto
|
||||||
|
|
||||||
|
|
|
@ -68,7 +68,7 @@
|
||||||
|
|
||||||
$('figure.highlight').each(function() {
|
$('figure.highlight').each(function() {
|
||||||
if ($(this).find('figcaption').length) {
|
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-left">');
|
||||||
$(this).find('figcaption').append('<div class="level-right">');
|
$(this).find('figcaption').append('<div class="level-right">');
|
||||||
$(this).find('figcaption div.level-left').append($(this).find('figcaption').find('span'));
|
$(this).find('figcaption div.level-left').append($(this).find('figcaption').find('span'));
|
||||||
|
|
Loading…
Reference in New Issue