Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bootstrap
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
bootstrap
Commits
7eddb94f
Commit
7eddb94f
authored
Aug 18, 2013
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simpler customizer files section; adds glyphicons.less
parent
2234f0e3
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
78 additions
and
88 deletions
+78
-88
assets/css/docs.css
assets/css/docs.css
+5
-3
assets/js/customizer.js
assets/js/customizer.js
+5
-4
customize.html
customize.html
+68
-81
No files found.
assets/css/docs.css
View file @
7eddb94f
...
...
@@ -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
;
}
/*
...
...
assets/js/customizer.js
View file @
7eddb94f
...
...
@@ -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
...
...
customize.html
View file @
7eddb94f
...
...
@@ -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>
<!-- .col-xs-6 .col-sm-4 -->
<div
class=
"col-xs-6 col-sm-4"
>
<h
4>
Utility classes
</h4
>
<h
3>
Components
</h3
>
<div
class=
"checkbox"
>
<label>
<input
type=
"checkbox"
checked
value=
"
utilities.less"
data-dependents=
"navbar
.less"
>
Basic utilitie
s
<input
type=
"checkbox"
checked
value=
"
glyphicons
.less"
>
Glyphicon
s
</label>
</div>
<div
class=
"checkbox"
>
<label>
<input
type=
"checkbox"
checked
value=
"
responsive-utilitie
s.less"
>
Responsive utilitie
s
<input
type=
"checkbox"
checked
value=
"
button-groups.less"
data-dependency=
"button
s.less"
>
Button group
s
</label>
</div>
<div
class=
"checkbox"
>
<label>
<input
type=
"checkbox"
checked
value=
"
component-animation
s.less"
>
Component animations (for JS)
<input
type=
"checkbox"
checked
value=
"
input-groups.less"
data-dependency=
"form
s.less"
>
Input groups
</label>
</div>
</div>
</div>
<h3>
Components
</h3>
<div
class=
"row"
>
<div
class=
"col-xs-6 col-sm-4"
>
<h4>
Navigation
</h4>
<div
class=
"checkbox"
>
<label>
<input
type=
"checkbox"
checked
value=
"navs.less"
>
<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,34 +114,28 @@ base_url: "../"
</div>
<div
class=
"checkbox"
>
<label>
<input
type=
"checkbox"
checked
value=
"
breadcrumb
s.less"
>
Breadcrumb
s
<input
type=
"checkbox"
checked
value=
"
label
s.less"
>
Label
s
</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
<input
type=
"checkbox"
checked
value=
"
badges
.less"
>
Badges
</label>
</div>
<div
class=
"checkbox"
>
<label>
<input
type=
"checkbox"
checked
value=
"
panels
.less"
>
Panels
<input
type=
"checkbox"
checked
value=
"
jumbotron
.less"
>
Jumbotron
</label>
</div>
<div
class=
"checkbox"
>
<label>
<input
type=
"checkbox"
checked
value=
"
wel
ls.less"
>
Wel
ls
<input
type=
"checkbox"
checked
value=
"
thumbnai
ls.less"
>
Thumbnai
ls
</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"
>
...
...
@@ -154,99 +144,96 @@ base_url: "../"
</div>
<div
class=
"checkbox"
>
<label>
<input
type=
"checkbox"
checked
value=
"
dropdown
s.less"
>
Dropdown
s
<input
type=
"checkbox"
checked
value=
"
progress-bar
s.less"
>
Progress bar
s
</label>
</div>
<div
class=
"checkbox"
>
<label>
<input
type=
"checkbox"
checked
value=
"
tooltip
.less"
>
Tooltip
s
<input
type=
"checkbox"
checked
value=
"
media
.less"
>
Media item
s
</label>
</div>
<div
class=
"checkbox"
>
<label>
<input
type=
"checkbox"
checked
value=
"
popovers
.less"
>
Popover
s
<input
type=
"checkbox"
checked
value=
"
list-group
.less"
>
List group
s
</label>
</div>
<div
class=
"checkbox"
>
<label>
<input
type=
"checkbox"
checked
value=
"
moda
ls.less"
>
Moda
ls
<input
type=
"checkbox"
checked
value=
"
pane
ls.less"
>
Pane
ls
</label>
</div>
<div
class=
"checkbox"
>
<label>
<input
type=
"checkbox"
checked
value=
"
carousel
.less"
>
Carousel
<input
type=
"checkbox"
checked
value=
"
wells
.less"
>
Wells
</label>
</div>
</div>
</div>
<div
class=
"row"
>
<div
class=
"col-xs-6 col-sm-4"
>
<h4>
Media
</h4>
<div
class=
"checkbox"
>
<label>
<input
type=
"checkbox"
checked
value=
"
thumbnails
.less"
>
Thumbnails
<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=
"
list-group
.less"
>
List group
s
<input
type=
"checkbox"
checked
value=
"
dropdowns
.less"
>
Dropdown
s
</label>
</div>
<div
class=
"checkbox"
>
<label>
<input
type=
"checkbox"
checked
value=
"
media
.less"
>
Media item
s
<input
type=
"checkbox"
checked
value=
"
tooltip
.less"
>
Tooltip
s
</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=
"form
s.less"
>
Input group
s
<input
type=
"checkbox"
checked
value=
"
popover
s.less"
>
Popover
s
</label>
</div>
<div
class=
"checkbox"
>
<label>
<input
type=
"checkbox"
checked
value=
"
button-groups.less"
data-dependency=
"button
s.less"
>
Button group
s
<input
type=
"checkbox"
checked
value=
"
modal
s.less"
>
Modal
s
</label>
</div>
<div
class=
"checkbox"
>
<label>
<input
type=
"checkbox"
checked
value=
"
progress-bars
.less"
>
Progress bars
<input
type=
"checkbox"
checked
value=
"
carousel
.less"
>
Carousel
</label>
</div>
<h3>
Utilities
</h3>
<div
class=
"checkbox"
>
<label>
<input
type=
"checkbox"
checked
value=
"
badges
.less"
>
Ba
dg
es
<input
type=
"checkbox"
checked
value=
"
utilities.less"
data-dependents=
"navbar
.less"
>
Ba
sic utiliti
es
</label>
</div>
<div
class=
"checkbox"
>
<label>
<input
type=
"checkbox"
checked
value=
"
label
s.less"
>
Label
s
<input
type=
"checkbox"
checked
value=
"
responsive-utilitie
s.less"
>
Responsive utilitie
s
</label>
</div>
<div
class=
"checkbox"
>
<label>
<input
type=
"checkbox"
checked
value=
"c
lose
.less"
>
C
lose icon
<input
type=
"checkbox"
checked
value=
"c
omponent-animations
.less"
>
C
omponent animations (for JS)
</label>
</div>
</div>
</div>
</div>
<!-- .col-xs-6 .col-sm-4 -->
</div>
<!-- /.row -->
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment