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
457859fe
Commit
457859fe
authored
Apr 16, 2012
by
Jacob Thornton
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '2.0.3-wip' of
https://github.com/twitter/bootstrap
into 2.0.3-wip
parents
498b7d98
5fa0fcc8
Changes
14
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
1854 additions
and
9 deletions
+1854
-9
Makefile
Makefile
+5
-0
docs/assets/css/bootstrap.css
docs/assets/css/bootstrap.css
+2
-0
docs/assets/js/bootstrap-alert.js
docs/assets/js/bootstrap-alert.js
+2
-2
docs/assets/js/bootstrap-collapse.js
docs/assets/js/bootstrap-collapse.js
+1
-0
docs/assets/js/bootstrap.js
docs/assets/js/bootstrap.js
+1813
-0
docs/assets/js/bootstrap.min.js
docs/assets/js/bootstrap.min.js
+6
-0
docs/javascript.html
docs/javascript.html
+1
-1
docs/templates/pages/javascript.mustache
docs/templates/pages/javascript.mustache
+1
-1
js/bootstrap-alert.js
js/bootstrap-alert.js
+2
-2
js/bootstrap-collapse.js
js/bootstrap-collapse.js
+1
-0
less/forms.less
less/forms.less
+3
-0
less/mixins.less
less/mixins.less
+1
-1
less/tests/css-tests.html
less/tests/css-tests.html
+16
-0
less/variables.less
less/variables.less
+0
-2
No files found.
Makefile
View file @
457859fe
...
@@ -16,6 +16,11 @@ docs:
...
@@ -16,6 +16,11 @@ docs:
cp
img/
*
docs/assets/img/
cp
img/
*
docs/assets/img/
cp
js/
*
.js docs/assets/js/
cp
js/
*
.js docs/assets/js/
cp
js/tests/vendor/jquery.js docs/assets/js/
cp
js/tests/vendor/jquery.js docs/assets/js/
cat
js/bootstrap-transition.js js/bootstrap-alert.js js/bootstrap-button.js js/bootstrap-carousel.js js/bootstrap-collapse.js js/bootstrap-dropdown.js js/bootstrap-modal.js js/bootstrap-tooltip.js js/bootstrap-popover.js js/bootstrap-scrollspy.js js/bootstrap-tab.js js/bootstrap-typeahead.js
>
docs/assets/js/bootstrap.js
uglifyjs
-nc
docs/assets/js/bootstrap.js
>
docs/assets/js/bootstrap.min.tmp.js
echo
"/**
\n
* Bootstrap.js by @fat & @mdo
\n
* Copyright 2012 Twitter, Inc.
\n
* http://www.apache.org/licenses/LICENSE-2.0.txt
\n
*/"
>
docs/assets/js/copyright.js
cat
docs/assets/js/copyright.js docs/assets/js/bootstrap.min.tmp.js
>
docs/assets/js/bootstrap.min.js
rm
docs/assets/js/copyright.js docs/assets/js/bootstrap.min.tmp.js
#
#
# BUILD SIMPLE BOOTSTRAP DIRECTORY
# BUILD SIMPLE BOOTSTRAP DIRECTORY
...
...
docs/assets/css/bootstrap.css
View file @
457859fe
...
@@ -969,6 +969,8 @@ select:focus:required:invalid:focus {
...
@@ -969,6 +969,8 @@ select:focus:required:invalid:focus {
-moz-box-shadow
:
inset
0
1px
2px
rgba
(
0
,
0
,
0
,
0.025
);
-moz-box-shadow
:
inset
0
1px
2px
rgba
(
0
,
0
,
0
,
0.025
);
box-shadow
:
inset
0
1px
2px
rgba
(
0
,
0
,
0
,
0.025
);
box-shadow
:
inset
0
1px
2px
rgba
(
0
,
0
,
0
,
0.025
);
cursor
:
not-allowed
;
cursor
:
not-allowed
;
overflow
:
hidden
;
white-space
:
nowrap
;
}
}
:-moz-placeholder
{
:-moz-placeholder
{
color
:
#999999
;
color
:
#999999
;
...
...
docs/assets/js/bootstrap-alert.js
View file @
457859fe
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
* ====================== */
* ====================== */
var
dismiss
=
'
[data-dismiss="alert"]
'
var
dismiss
=
'
[data-dismiss="alert"]
'
,
Alert
=
function
(
el
)
{
,
Alert
=
function
(
el
)
{
$
(
el
).
on
(
'
click
'
,
dismiss
,
this
.
close
)
$
(
el
).
on
(
'
click
'
,
dismiss
,
this
.
close
)
}
}
...
@@ -68,7 +68,7 @@
...
@@ -68,7 +68,7 @@
/* ALERT PLUGIN DEFINITION
/* ALERT PLUGIN DEFINITION
* ======================= */
* ======================= */
$
.
fn
.
alert
=
function
(
option
)
{
$
.
fn
.
alert
=
function
(
option
)
{
return
this
.
each
(
function
()
{
return
this
.
each
(
function
()
{
var
$this
=
$
(
this
)
var
$this
=
$
(
this
)
,
data
=
$this
.
data
(
'
alert
'
)
,
data
=
$this
.
data
(
'
alert
'
)
...
...
docs/assets/js/bootstrap-collapse.js
View file @
457859fe
...
@@ -60,6 +60,7 @@
...
@@ -60,6 +60,7 @@
if
(
actives
&&
actives
.
length
)
{
if
(
actives
&&
actives
.
length
)
{
hasData
=
actives
.
data
(
'
collapse
'
)
hasData
=
actives
.
data
(
'
collapse
'
)
if
(
hasData
&&
hasData
.
transitioning
)
return
actives
.
collapse
(
'
hide
'
)
actives
.
collapse
(
'
hide
'
)
hasData
||
actives
.
data
(
'
collapse
'
,
null
)
hasData
||
actives
.
data
(
'
collapse
'
,
null
)
}
}
...
...
docs/assets/js/bootstrap.js
0 → 100644
View file @
457859fe
This diff is collapsed.
Click to expand it.
docs/assets/js/bootstrap.min.js
0 → 100644
View file @
457859fe
This diff is collapsed.
Click to expand it.
docs/javascript.html
View file @
457859fe
...
@@ -206,7 +206,7 @@
...
@@ -206,7 +206,7 @@
<h2>
Static example
</h2>
<h2>
Static example
</h2>
<p>
Below is a statically rendered modal.
</p>
<p>
Below is a statically rendered modal.
</p>
<div
class=
"well modal-example"
style=
"background-color: #888; border: none;"
>
<div
class=
"well modal-example"
style=
"background-color: #888; border: none;"
>
<div
class=
"modal"
style=
"position: relative; top: auto; left: auto; margin: 0 auto; z-index: 1"
>
<div
class=
"modal"
style=
"position: relative; top: auto; left: auto; margin: 0 auto; z-index: 1
; max-width: 100%;
"
>
<div
class=
"modal-header"
>
<div
class=
"modal-header"
>
<button
class=
"close"
data-dismiss=
"modal"
>
×
</button>
<button
class=
"close"
data-dismiss=
"modal"
>
×
</button>
<h3>
Modal header
</h3>
<h3>
Modal header
</h3>
...
...
docs/templates/pages/javascript.mustache
View file @
457859fe
...
@@ -129,7 +129,7 @@
...
@@ -129,7 +129,7 @@
<h2>
{{
_i
}}
Static example
{{/
i
}}
</h2>
<h2>
{{
_i
}}
Static example
{{/
i
}}
</h2>
<p>
{{
_i
}}
Below is a statically rendered modal.
{{/
i
}}
</p>
<p>
{{
_i
}}
Below is a statically rendered modal.
{{/
i
}}
</p>
<div
class=
"well modal-example"
style=
"background-color: #888; border: none;"
>
<div
class=
"well modal-example"
style=
"background-color: #888; border: none;"
>
<div
class=
"modal"
style=
"position: relative; top: auto; left: auto; margin: 0 auto; z-index: 1"
>
<div
class=
"modal"
style=
"position: relative; top: auto; left: auto; margin: 0 auto; z-index: 1
; max-width: 100%;
"
>
<div
class=
"modal-header"
>
<div
class=
"modal-header"
>
<button
class=
"close"
data-dismiss=
"modal"
>
×
</button>
<button
class=
"close"
data-dismiss=
"modal"
>
×
</button>
<h3>
{{
_i
}}
Modal header
{{/
i
}}
</h3>
<h3>
{{
_i
}}
Modal header
{{/
i
}}
</h3>
...
...
js/bootstrap-alert.js
View file @
457859fe
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
* ====================== */
* ====================== */
var
dismiss
=
'
[data-dismiss="alert"]
'
var
dismiss
=
'
[data-dismiss="alert"]
'
,
Alert
=
function
(
el
)
{
,
Alert
=
function
(
el
)
{
$
(
el
).
on
(
'
click
'
,
dismiss
,
this
.
close
)
$
(
el
).
on
(
'
click
'
,
dismiss
,
this
.
close
)
}
}
...
@@ -68,7 +68,7 @@
...
@@ -68,7 +68,7 @@
/* ALERT PLUGIN DEFINITION
/* ALERT PLUGIN DEFINITION
* ======================= */
* ======================= */
$
.
fn
.
alert
=
function
(
option
)
{
$
.
fn
.
alert
=
function
(
option
)
{
return
this
.
each
(
function
()
{
return
this
.
each
(
function
()
{
var
$this
=
$
(
this
)
var
$this
=
$
(
this
)
,
data
=
$this
.
data
(
'
alert
'
)
,
data
=
$this
.
data
(
'
alert
'
)
...
...
js/bootstrap-collapse.js
View file @
457859fe
...
@@ -60,6 +60,7 @@
...
@@ -60,6 +60,7 @@
if
(
actives
&&
actives
.
length
)
{
if
(
actives
&&
actives
.
length
)
{
hasData
=
actives
.
data
(
'
collapse
'
)
hasData
=
actives
.
data
(
'
collapse
'
)
if
(
hasData
&&
hasData
.
transitioning
)
return
actives
.
collapse
(
'
hide
'
)
actives
.
collapse
(
'
hide
'
)
hasData
||
actives
.
data
(
'
collapse
'
,
null
)
hasData
||
actives
.
data
(
'
collapse
'
,
null
)
}
}
...
...
less/forms.less
View file @
457859fe
...
@@ -331,6 +331,9 @@ select:focus:required:invalid {
...
@@ -331,6 +331,9 @@ select:focus:required:invalid {
border-color: #eee;
border-color: #eee;
.box-shadow(inset 0 1px 2px rgba(0,0,0,.025));
.box-shadow(inset 0 1px 2px rgba(0,0,0,.025));
cursor: not-allowed;
cursor: not-allowed;
// prevent text from wrapping, but still cut it off like an input does
overflow: hidden;
white-space: nowrap;
}
}
// Placeholder text gets special styles; can't be bundled together though for some reason
// Placeholder text gets special styles; can't be bundled together though for some reason
...
...
less/mixins.less
View file @
457859fe
...
@@ -545,7 +545,7 @@
...
@@ -545,7 +545,7 @@
.offsetX (0) {}
.offsetX (0) {}
.offset (@columns) {
.offset (@columns) {
margin-left: (@gridColumnWidth * @columns) + (@gridGutterWidth * (@columns
- 1)) + (@gridGutterWidth * 2
);
margin-left: (@gridColumnWidth * @columns) + (@gridGutterWidth * (@columns
+ 1)
);
}
}
.span (@columns) {
.span (@columns) {
...
...
less/tests/css-tests.html
View file @
457859fe
...
@@ -374,6 +374,19 @@
...
@@ -374,6 +374,19 @@
</ul>
</ul>
</li>
</li>
</ul>
</ul>
<h4>
Dropdown on a button
</h4>
<div
style=
"position: relative;"
>
<button
class=
"btn"
type=
"button"
data-toggle=
"dropdown"
>
Dropdown
<span
class=
"caret"
></span></button>
<ul
class=
"dropdown-menu"
>
<li><a
href=
"#"
>
Action
</a></li>
<li><a
href=
"#"
>
Another action
</a></li>
<li><a
href=
"#"
>
Something else here
</a></li>
<li
class=
"divider"
></li>
<li><a
href=
"#"
>
Separated link
</a></li>
</ul>
</div>
<br>
<br>
...
@@ -445,6 +458,7 @@
...
@@ -445,6 +458,7 @@
</div>
</div>
<!-- Tabs
<!-- Tabs
================================================== -->
================================================== -->
...
@@ -491,6 +505,8 @@
...
@@ -491,6 +505,8 @@
<!-- Footer
<!-- Footer
================================================== -->
================================================== -->
<footer
class=
"footer"
>
<footer
class=
"footer"
>
...
...
less/variables.less
View file @
457859fe
...
@@ -197,8 +197,6 @@
...
@@ -197,8 +197,6 @@
@gridColumns: 12;
@gridColumns: 12;
@gridColumnWidth: 60px;
@gridColumnWidth: 60px;
@gridGutterWidth: 20px;
@gridGutterWidth: 20px;
@gridRowWidth: (@gridColumns * @gridColumnWidth) + (@gridGutterWidth * (@gridColumns - 1));
// Fluid grid
// Fluid grid
// -------------------------
// -------------------------
...
...
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