mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-17 21:49:09 +01:00
simpler customizer files section; adds glyphicons.less
This commit is contained in:
parent
2234f0e333
commit
7eddb94fa6
@ -1032,13 +1032,15 @@ h3[id] {
|
||||
border-bottom: 1px solid #b94441;
|
||||
}
|
||||
.bs-customizer-alert .close {
|
||||
margin-top: -2px;
|
||||
color: #fff;
|
||||
text-shadow: none;
|
||||
margin-top: -4px;
|
||||
font-size: 24px;
|
||||
}
|
||||
.bs-customizer-alert p {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.bs-customizer-alert .glyphicon {
|
||||
margin-right: 3px;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
|
@ -5,6 +5,7 @@ window.onload = function () { // wait for load in a dumb way because B-0
|
||||
$('<div id="bsCustomizerAlert" class="bs-customizer-alert">\
|
||||
<div class="container">\
|
||||
<a href="#bsCustomizerAlert" data-dismiss="alert" class="close pull-right">×</a>\
|
||||
<span class="glyphicon glyphicon-warning-sign"></span>
|
||||
<p class="bs-customizer-alert-text">' + msg + '</p>' +
|
||||
(err.extract ? '<pre class="bs-customizer-alert-extract">' + err.extract.join('\n') + '</pre>' : '') + '\
|
||||
</div>\
|
||||
@ -51,7 +52,7 @@ window.onload = function () { // wait for load in a dumb way because B-0
|
||||
history.replaceState(false, document.title, window.location.origin + window.location.pathname + '?id=' + result.id)
|
||||
})
|
||||
.error(function(err) {
|
||||
showError('<strong>Error</strong> Could not save gist file, configuration not saved.', err)
|
||||
showError('<strong>Ruh roh!</strong> Could not save gist file, configuration not saved.', err)
|
||||
})
|
||||
}
|
||||
|
||||
@ -108,7 +109,7 @@ window.onload = function () { // wait for load in a dumb way because B-0
|
||||
}
|
||||
|
||||
function generateZip(css, js, complete) {
|
||||
if (!css && !js) return showError('<strong>Error</strong> No Bootstrap files selected.', new Error('no Bootstrap'))
|
||||
if (!css && !js) return showError('<strong>Ruh roh!</strong> No Bootstrap files selected.', new Error('no Bootstrap'))
|
||||
|
||||
var zip = new JSZip()
|
||||
|
||||
@ -174,7 +175,7 @@ window.onload = function () { // wait for load in a dumb way because B-0
|
||||
, filename: 'bootstrap.css'
|
||||
}).parse(css, function (err, tree) {
|
||||
if (err) {
|
||||
return showError('<strong>Error</strong> Could not parse less files.', err)
|
||||
return showError('<strong>Ruh roh!</strong> Could not parse less files.', err)
|
||||
}
|
||||
result = {
|
||||
'bootstrap.css' : cw + tree.toCSS(),
|
||||
@ -182,7 +183,7 @@ window.onload = function () { // wait for load in a dumb way because B-0
|
||||
}
|
||||
})
|
||||
} catch (err) {
|
||||
return showError('<strong>Error</strong> Could not parse less files.', err)
|
||||
return showError('<strong>Ruh roh!</strong> Could not parse less files.', err)
|
||||
}
|
||||
|
||||
return result
|
||||
|
189
customize.html
189
customize.html
@ -15,25 +15,15 @@ base_url: "../"
|
||||
</div>
|
||||
<p class="lead">Choose which LESS files to compile into your custom build of Bootstrap. Not sure which files to use? Read through the <a href="../css/">CSS</a> and <a href="../components/">Components</a> pages in the docs</p>
|
||||
|
||||
<h3>Basics</h3>
|
||||
<div class="row">
|
||||
<div class="col-xs-6 col-sm-4">
|
||||
<h4>Layout</h4>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" checked value="grid.less">
|
||||
Grid system
|
||||
</label>
|
||||
</div>
|
||||
<h3>Common CSS</h3>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" checked value="print.less">
|
||||
Print media styles
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-6 col-sm-4">
|
||||
<h4>Global CSS</h4>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" checked value="type.less">
|
||||
@ -46,6 +36,12 @@ base_url: "../"
|
||||
Code
|
||||
</label>
|
||||
</div>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" checked value="grid.less">
|
||||
Grid system
|
||||
</label>
|
||||
</div>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" checked value="tables.less">
|
||||
@ -64,46 +60,46 @@ base_url: "../"
|
||||
Buttons
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-6 col-sm-4">
|
||||
<h4>Utility classes</h4>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" checked value="utilities.less" data-dependents="navbar.less">
|
||||
Basic utilities
|
||||
</label>
|
||||
</div>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" checked value="responsive-utilities.less">
|
||||
Responsive utilities
|
||||
</label>
|
||||
</div>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" checked value="component-animations.less">
|
||||
Component animations (for JS)
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- .col-xs-6 .col-sm-4 -->
|
||||
|
||||
<h3>Components</h3>
|
||||
<div class="row">
|
||||
<div class="col-xs-6 col-sm-4">
|
||||
<h4>Navigation</h4>
|
||||
<h3>Components</h3>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" checked value="navs.less">
|
||||
<input type="checkbox" checked value="glyphicons.less">
|
||||
Glyphicons
|
||||
</label>
|
||||
</div>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" checked value="button-groups.less" data-dependency="buttons.less">
|
||||
Button groups
|
||||
</label>
|
||||
</div>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" checked value="input-groups.less" data-dependency="forms.less">
|
||||
Input groups
|
||||
</label>
|
||||
</div>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" checked value="navs.less" data-dependents="navbar.less">
|
||||
Navs
|
||||
</label>
|
||||
</div>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" checked value="navbar.less" data-dependencies="forms.less,utilities.less">
|
||||
<input type="checkbox" checked value="navbar.less" data-dependencies="forms.less,utilities.less,navs.less">
|
||||
Navbar
|
||||
</label>
|
||||
</div>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" checked value="breadcrumbs.less">
|
||||
Breadcrumbs
|
||||
</label>
|
||||
</div>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" checked value="pagination.less">
|
||||
@ -118,19 +114,52 @@ base_url: "../"
|
||||
</div>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" checked value="breadcrumbs.less">
|
||||
Breadcrumbs
|
||||
<input type="checkbox" checked value="labels.less">
|
||||
Labels
|
||||
</label>
|
||||
</div>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" checked value="badges.less">
|
||||
Badges
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-6 col-sm-4">
|
||||
<h4>Content blocks</h4>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" checked value="jumbotron.less">
|
||||
Jumbotron
|
||||
</label>
|
||||
</div>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" checked value="thumbnails.less">
|
||||
Thumbnails
|
||||
</label>
|
||||
</div>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" checked value="alerts.less">
|
||||
Alerts
|
||||
</label>
|
||||
</div>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" checked value="progress-bars.less">
|
||||
Progress bars
|
||||
</label>
|
||||
</div>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" checked value="media.less">
|
||||
Media items
|
||||
</label>
|
||||
</div>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" checked value="list-group.less">
|
||||
List groups
|
||||
</label>
|
||||
</div>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" checked value="panels.less">
|
||||
@ -143,15 +172,16 @@ base_url: "../"
|
||||
Wells
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-6 col-sm-4">
|
||||
<h4>Behavioral (requires JS)</h4>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" checked value="alerts.less">
|
||||
Alerts
|
||||
<input type="checkbox" checked value="close.less">
|
||||
Close icon
|
||||
</label>
|
||||
</div>
|
||||
</div><!-- .col-xs-6 .col-sm-4 -->
|
||||
|
||||
<div class="col-xs-6 col-sm-4">
|
||||
<h3>JavaScript components</h3>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" checked value="dropdowns.less">
|
||||
@ -182,71 +212,28 @@ base_url: "../"
|
||||
Carousel
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-6 col-sm-4">
|
||||
<h4>Media</h4>
|
||||
<h3>Utilities</h3>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" checked value="thumbnails.less">
|
||||
Thumbnails
|
||||
<input type="checkbox" checked value="utilities.less" data-dependents="navbar.less">
|
||||
Basic utilities
|
||||
</label>
|
||||
</div>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" checked value="list-group.less">
|
||||
List groups
|
||||
<input type="checkbox" checked value="responsive-utilities.less">
|
||||
Responsive utilities
|
||||
</label>
|
||||
</div>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" checked value="media.less">
|
||||
Media items
|
||||
<input type="checkbox" checked value="component-animations.less">
|
||||
Component animations (for JS)
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-6 col-sm-4">
|
||||
<h4>Miscellaneous</h4>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" checked value="input-groups.less" data-dependency="forms.less">
|
||||
Input groups
|
||||
</label>
|
||||
</div>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" checked value="button-groups.less" data-dependency="buttons.less">
|
||||
Button groups
|
||||
</label>
|
||||
</div>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" checked value="progress-bars.less">
|
||||
Progress bars
|
||||
</label>
|
||||
</div>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" checked value="badges.less">
|
||||
Badges
|
||||
</label>
|
||||
</div>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" checked value="labels.less">
|
||||
Labels
|
||||
</label>
|
||||
</div>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" checked value="close.less">
|
||||
Close icon
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- .col-xs-6 .col-sm-4 -->
|
||||
</div><!-- /.row -->
|
||||
</div>
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user