mirror of
https://github.com/jgthms/bulma
synced 2026-03-15 10:14:29 -07:00
Move docs to bulma repo (#299)
* Add package files whitelist * Add flex shrink * Add flex shrink * Add docs config * Fix flex shrink * Fix hero pages * Add docs folder
This commit is contained in:
9214
docs/javascript/Chart.js
vendored
Normal file
9214
docs/javascript/Chart.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
58
docs/javascript/bulma.js
Normal file
58
docs/javascript/bulma.js
Normal file
@@ -0,0 +1,58 @@
|
||||
jQuery(document).ready(function ($) {
|
||||
|
||||
var $toggle = $('#nav-toggle');
|
||||
var $menu = $('#nav-menu');
|
||||
|
||||
$toggle.click(function() {
|
||||
$(this).toggleClass('is-active');
|
||||
$menu.toggleClass('is-active');
|
||||
});
|
||||
|
||||
$('.modal-button').click(function() {
|
||||
var target = $(this).data('target');
|
||||
$('html').addClass('is-clipped');
|
||||
$(target).addClass('is-active');
|
||||
});
|
||||
|
||||
$('.modal-background, .modal-close').click(function() {
|
||||
$('html').removeClass('is-clipped');
|
||||
$(this).parent().removeClass('is-active');
|
||||
});
|
||||
|
||||
$('.modal-card-head .delete, .modal-card-foot .button').click(function() {
|
||||
$('html').removeClass('is-clipped');
|
||||
$('#modal-ter').removeClass('is-active');
|
||||
});
|
||||
|
||||
var $highlights = $('.highlight');
|
||||
|
||||
$highlights.each(function() {
|
||||
var $el = $(this);
|
||||
var copy = '<button class="copy">Copy</button>';
|
||||
var expand = '<button class="expand">Expand</button>';
|
||||
$el.append(copy);
|
||||
|
||||
if ($el.find('pre code').innerHeight() > 600) {
|
||||
$el.append(expand);
|
||||
}
|
||||
});
|
||||
|
||||
var $highlightButtons = $('.highlight .copy, .highlight .expand');
|
||||
|
||||
$highlightButtons.hover(function() {
|
||||
$(this).parent().css('box-shadow', '0 0 0 1px #ed6c63');
|
||||
}, function() {
|
||||
$(this).parent().css('box-shadow', 'none');
|
||||
});
|
||||
|
||||
$('.highlight .expand').click(function() {
|
||||
$(this).parent().children('pre').css('max-height', 'none');
|
||||
});
|
||||
|
||||
new Clipboard('.copy', {
|
||||
target: function(trigger) {
|
||||
return trigger.previousSibling;
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
7
docs/javascript/clipboard.min.js
vendored
Normal file
7
docs/javascript/clipboard.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
46
docs/javascript/index.js
Normal file
46
docs/javascript/index.js
Normal file
@@ -0,0 +1,46 @@
|
||||
jQuery(document).ready(function ($) {
|
||||
|
||||
var $grid = $('#grid');
|
||||
var $columns = $grid.children('.column');
|
||||
var showing = 5;
|
||||
var $markup = $('#markup code');
|
||||
var $message = $('#message');
|
||||
var $add = $('#add');
|
||||
var $remove = $('#remove');
|
||||
|
||||
function showColumns() {
|
||||
if (showing === 13) {
|
||||
$message.show();
|
||||
} else {
|
||||
$message.hide();
|
||||
}
|
||||
|
||||
showing = Math.min(Math.max(parseInt(showing), 2), 12);
|
||||
|
||||
$columns.hide();
|
||||
$columns.slice(0, showing).show();
|
||||
|
||||
$markup.html('<span class="nt"><div</span> <span class="na">class=</span><span class="s">"columns"</span><span class="nt">></span>');
|
||||
$markup.append('\n');
|
||||
|
||||
for(i = 0; i < showing; i++) {
|
||||
$markup.append(' <span class="nt"><div</span> <span class="na">class=</span><span class="s">"column"</span><span class="nt">></span>');
|
||||
$markup.append(i + 1);
|
||||
$markup.append('<span class="nt"></div></span>');
|
||||
$markup.append('\n');
|
||||
}
|
||||
|
||||
$markup.append('<span class="nt"></div></span>');
|
||||
}
|
||||
|
||||
$add.click(function() {
|
||||
showing++;
|
||||
showColumns();
|
||||
});
|
||||
|
||||
$remove.click(function() {
|
||||
showing--;
|
||||
showColumns();
|
||||
});
|
||||
|
||||
});
|
||||
4
docs/javascript/jquery-2.2.0.min.js
vendored
Normal file
4
docs/javascript/jquery-2.2.0.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user