mirror of
https://github.com/jgthms/bulma
synced 2026-03-15 02:04:29 -07:00
Use Font Awesome 5
This commit is contained in:
@@ -109,7 +109,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
|
||||
const $parent = $el.parentNode;
|
||||
if ($parent && $parent.classList.contains('bd-is-more')) {
|
||||
const showEl = '<button class="bd-show"><div><span class="icon"><i class="fa fa-code"></i></span> <strong>Show code</strong></div></button>';
|
||||
const showEl = '<button class="bd-show"><div><span class="icon"><i class="fas fa-code"></i></span> <strong>Show code</strong></div></button>';
|
||||
$el.insertAdjacentHTML('beforeend', showEl);
|
||||
} else if ($el.firstElementChild.scrollHeight > 480 && $el.firstElementChild.clientHeight <= 480) {
|
||||
$el.insertAdjacentHTML('beforeend', expandEl);
|
||||
|
||||
@@ -12,12 +12,12 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
|
||||
if (fixedBottom) {
|
||||
fixBottomEl.className = 'button is-success';
|
||||
fixBottomElIcon.className = 'fa fa-check-square-o';
|
||||
fixBottomElIcon.className = 'far fa-check-square';
|
||||
rootEl.classList.add('has-navbar-fixed-bottom');
|
||||
navbarBottomEl.classList.remove('is-hidden');
|
||||
} else {
|
||||
fixBottomEl.className = 'button is-link';
|
||||
fixBottomElIcon.className = 'fa fa-square-o';
|
||||
fixBottomElIcon.className = 'far fa-square';
|
||||
rootEl.classList.remove('has-navbar-fixed-bottom');
|
||||
navbarBottomEl.classList.add('is-hidden');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user