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
acc08752
Commit
acc08752
authored
May 22, 2013
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix up customizer js and classes; turn buttons into real buttons
parent
432d417a
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
25 deletions
+29
-25
docs/assets/css/docs.css
docs/assets/css/docs.css
+11
-0
docs/assets/js/application.js
docs/assets/js/application.js
+11
-18
docs/customize.html
docs/customize.html
+7
-7
No files found.
docs/assets/css/docs.css
View file @
acc08752
...
...
@@ -97,6 +97,17 @@ body {
/* Customize and Download button
-------------------------------------------------- */
.bs-customizer
{
}
.bs-customizer
.toggle
{
float
:
right
;
}
.bs-customizer
label
{
margin-top
:
10px
;
}
.bs-customize-download
{
text-align
:
center
;
}
...
...
docs/assets/js/application.js
View file @
acc08752
...
...
@@ -27,13 +27,6 @@
$
(
'
.bs-top
'
).
affix
()
},
100
)
// add-ons
$
(
'
.add-on :checkbox
'
).
on
(
'
click
'
,
function
()
{
var
$this
=
$
(
this
)
,
method
=
$this
.
attr
(
'
checked
'
)
?
'
addClass
'
:
'
removeClass
'
$
(
this
).
parents
(
'
.add-on
'
)[
method
](
'
active
'
)
})
// add tipsies to grid for scaffolding
if
(
$
(
'
#grid-system
'
).
length
)
{
$
(
'
#grid-system
'
).
tooltip
({
...
...
@@ -76,22 +69,22 @@
$
(
'
.bs-docs-carousel-example
'
).
carousel
()
// javascript build logic
var
inputsComponent
=
$
(
"
#components
.download
input
"
)
,
inputsPlugin
=
$
(
"
#plugins
.download
input
"
)
,
inputsVariables
=
$
(
"
#variables
.download
input
"
)
var
inputsComponent
=
$
(
"
#components input
"
)
,
inputsPlugin
=
$
(
"
#plugins input
"
)
,
inputsVariables
=
$
(
"
#variables input
"
)
// toggle all plugin checkboxes
$
(
'
#components
.download .toggle-all
'
).
on
(
'
click
'
,
function
(
e
)
{
$
(
'
#components
.toggle
'
).
on
(
'
click
'
,
function
(
e
)
{
e
.
preventDefault
()
inputsComponent
.
attr
(
'
checked
'
,
!
inputsComponent
.
is
(
'
:checked
'
))
inputsComponent
.
prop
(
'
checked
'
,
!
inputsComponent
.
is
(
'
:checked
'
))
})
$
(
'
#plugins
.download .toggle-all
'
).
on
(
'
click
'
,
function
(
e
)
{
$
(
'
#plugins
.toggle
'
).
on
(
'
click
'
,
function
(
e
)
{
e
.
preventDefault
()
inputsPlugin
.
attr
(
'
checked
'
,
!
inputsPlugin
.
is
(
'
:checked
'
))
inputsPlugin
.
prop
(
'
checked
'
,
!
inputsPlugin
.
is
(
'
:checked
'
))
})
$
(
'
#variables
.download .toggle-all
'
).
on
(
'
click
'
,
function
(
e
)
{
$
(
'
#variables
.toggle
'
).
on
(
'
click
'
,
function
(
e
)
{
e
.
preventDefault
()
inputsVariables
.
val
(
''
)
})
...
...
@@ -99,16 +92,16 @@
// request built javascript
$
(
'
.download-btn .btn
'
).
on
(
'
click
'
,
function
()
{
var
css
=
$
(
"
#components
.download
input:checked
"
)
var
css
=
$
(
"
#components input:checked
"
)
.
map
(
function
()
{
return
this
.
value
})
.
toArray
()
,
js
=
$
(
"
#plugins
.download
input:checked
"
)
,
js
=
$
(
"
#plugins input:checked
"
)
.
map
(
function
()
{
return
this
.
value
})
.
toArray
()
,
vars
=
{}
,
img
=
[
'
glyphicons-halflings.png
'
,
'
glyphicons-halflings-white.png
'
]
$
(
"
#variables
.download
input
"
)
$
(
"
#variables input
"
)
.
each
(
function
()
{
$
(
this
).
val
()
&&
(
vars
[
$
(
this
).
prev
().
text
()
]
=
$
(
this
).
val
())
})
...
...
docs/customize.html
View file @
acc08752
...
...
@@ -7,10 +7,10 @@ lead: Customize Bootstrap's components, LESS variables, and jQuery plugins to ge
<!-- Customize
================================================== -->
<form>
<form
class=
"bs-customizer"
>
<div
class=
"bs-docs-section"
id=
"components"
>
<div
class=
"page-header"
>
<
a
class=
"btn btn-default pull-right toggle-all"
href=
"#"
>
Toggle all
</a
>
<
button
class=
"btn btn-default toggle"
type=
"button"
>
Toggle all
</button
>
<h1>
LESS components
</h1>
</div>
<p
class=
"lead"
>
Choose which LESS files should be compiled into your custom stylesheets.
</p>
...
...
@@ -276,7 +276,7 @@ lead: Customize Bootstrap's components, LESS variables, and jQuery plugins to ge
<div
class=
"bs-docs-section"
id=
"plugins"
>
<div
class=
"page-header"
>
<
a
class=
"btn btn-default pull-right toggle-all"
href=
"#"
>
Toggle all
</a
>
<
button
class=
"btn btn-default toggle"
type=
"button"
>
Toggle all
</button
>
<h1>
jQuery plugins
</h1>
</div>
<p
class=
"lead"
>
Choose which jQuery plugins should be included in your custom JavaScript files.
</p>
...
...
@@ -373,7 +373,7 @@ lead: Customize Bootstrap's components, LESS variables, and jQuery plugins to ge
<div
class=
"bs-docs-section"
id=
"variables"
>
<div
class=
"page-header"
>
<
a
class=
"btn btn-default pull-right toggle-all"
href=
"#"
>
Reset to defaults
</a
>
<
button
class=
"btn btn-default toggle"
type=
"button"
>
Reset to defaults
</button
>
<h1>
LESS variables
</h1>
</div>
<p
class=
"lead"
>
Customize LESS variables to define colors, sizes and more inside your custom CSS stylesheets.
</p>
...
...
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