fix(layout): code block title bar on mobile screen
This commit is contained in:
parent
bf3b49a04b
commit
6c57464b63
|
@ -53,14 +53,14 @@
|
||||||
|
|
||||||
$('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'));
|
||||||
$(this).find('figcaption div.level-right').append($(this).find('figcaption').find('a'));
|
$(this).find('figcaption div.level-right').append($(this).find('figcaption').find('a'));
|
||||||
} else {
|
} else {
|
||||||
if (clipboard || fold) {
|
if (clipboard || fold) {
|
||||||
$(this).prepend('<figcaption class="level"><div class="level-left"></div><div class="level-right"></div></figcaption>');
|
$(this).prepend('<figcaption class="level is-mobile"><div class="level-left"></div><div class="level-right"></div></figcaption>');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue