Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
f6d029f6
Commit
f6d029f6
authored
11 years ago
by
Chris Rebert
Browse files
Options
Download
Email Patches
Plain Diff
Use .bs-example-* instead of .bs-* in examples in docs
Refs
#12610
parent
dff122f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/javascript.html
+12
-12
docs/javascript.html
with
12 additions
and
12 deletions
+12
-12
docs/javascript.html
+
12
-
12
View file @
f6d029f6
...
@@ -241,14 +241,14 @@ $('#myModal').on('show.bs.modal', function (e) {
...
@@ -241,14 +241,14 @@ $('#myModal').on('show.bs.modal', function (e) {
<h2
id=
"modals-sizes"
>
Optional sizes
</h2>
<h2
id=
"modals-sizes"
>
Optional sizes
</h2>
<p>
Modals have two optional sizes, available via modifier classes to be placed on a
<code>
.modal-dialog
</code>
.
</p>
<p>
Modals have two optional sizes, available via modifier classes to be placed on a
<code>
.modal-dialog
</code>
.
</p>
<div
class=
"bs-example"
>
<div
class=
"bs-example"
>
<button
class=
"btn btn-primary"
data-toggle=
"modal"
data-target=
".bs-modal-lg"
>
Large modal
</button>
<button
class=
"btn btn-primary"
data-toggle=
"modal"
data-target=
".bs-
example-
modal-lg"
>
Large modal
</button>
<button
class=
"btn btn-primary"
data-toggle=
"modal"
data-target=
".bs-modal-sm"
>
Small modal
</button>
<button
class=
"btn btn-primary"
data-toggle=
"modal"
data-target=
".bs-
example-
modal-sm"
>
Small modal
</button>
</div>
</div>
{% highlight html %}
{% highlight html %}
<!-- Large modal -->
<!-- Large modal -->
<button
class=
"btn btn-primary"
data-toggle=
"modal"
data-target=
".bs-modal-lg"
>
Large modal
</button>
<button
class=
"btn btn-primary"
data-toggle=
"modal"
data-target=
".bs-
example-
modal-lg"
>
Large modal
</button>
<div
class=
"modal fade bs-modal-lg"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myLargeModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal fade bs-
example-
modal-lg"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myLargeModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog modal-lg"
>
<div
class=
"modal-dialog modal-lg"
>
<div
class=
"modal-content"
>
<div
class=
"modal-content"
>
...
...
...
@@ -257,9 +257,9 @@ $('#myModal').on('show.bs.modal', function (e) {
...
@@ -257,9 +257,9 @@ $('#myModal').on('show.bs.modal', function (e) {
</div>
</div>
<!-- Small modal -->
<!-- Small modal -->
<button
class=
"btn btn-primary"
data-toggle=
"modal"
data-target=
".bs-modal-sm"
>
Small modal
</button>
<button
class=
"btn btn-primary"
data-toggle=
"modal"
data-target=
".bs-
example-
modal-sm"
>
Small modal
</button>
<div
class=
"modal fade bs-modal-sm"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"mySmallModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal fade bs-
example-
modal-sm"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"mySmallModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog modal-sm"
>
<div
class=
"modal-dialog modal-sm"
>
<div
class=
"modal-content"
>
<div
class=
"modal-content"
>
...
...
...
@@ -269,7 +269,7 @@ $('#myModal').on('show.bs.modal', function (e) {
...
@@ -269,7 +269,7 @@ $('#myModal').on('show.bs.modal', function (e) {
{% endhighlight %}
{% endhighlight %}
<!-- Modal content for the above example -->
<!-- Modal content for the above example -->
<div
class=
"modal fade bs-modal-lg"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myLargeModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal fade bs-
example-
modal-lg"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myLargeModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog modal-lg"
>
<div
class=
"modal-dialog modal-lg"
>
<div
class=
"modal-content"
>
<div
class=
"modal-content"
>
...
@@ -283,7 +283,7 @@ $('#myModal').on('show.bs.modal', function (e) {
...
@@ -283,7 +283,7 @@ $('#myModal').on('show.bs.modal', function (e) {
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal-dialog -->
</div>
<!-- /.modal-dialog -->
</div>
<!-- /.modal -->
</div>
<!-- /.modal -->
<div
class=
"modal fade bs-modal-sm"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"mySmallModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal fade bs-
example-
modal-sm"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"mySmallModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog modal-sm"
>
<div
class=
"modal-dialog modal-sm"
>
<div
class=
"modal-content"
>
<div
class=
"modal-content"
>
...
@@ -435,7 +435,7 @@ $('#myModal').on('hidden.bs.modal', function (e) {
...
@@ -435,7 +435,7 @@ $('#myModal').on('hidden.bs.modal', function (e) {
<nav
id=
"navbar-example"
class=
"navbar navbar-default navbar-static"
role=
"navigation"
>
<nav
id=
"navbar-example"
class=
"navbar navbar-default navbar-static"
role=
"navigation"
>
<div
class=
"container-fluid"
>
<div
class=
"container-fluid"
>
<div
class=
"navbar-header"
>
<div
class=
"navbar-header"
>
<button
class=
"navbar-toggle"
type=
"button"
data-toggle=
"collapse"
data-target=
".bs-js-navbar-collapse"
>
<button
class=
"navbar-toggle"
type=
"button"
data-toggle=
"collapse"
data-target=
".bs-
example-
js-navbar-collapse"
>
<span
class=
"sr-only"
>
Toggle navigation
</span>
<span
class=
"sr-only"
>
Toggle navigation
</span>
<span
class=
"icon-bar"
></span>
<span
class=
"icon-bar"
></span>
<span
class=
"icon-bar"
></span>
<span
class=
"icon-bar"
></span>
...
@@ -443,7 +443,7 @@ $('#myModal').on('hidden.bs.modal', function (e) {
...
@@ -443,7 +443,7 @@ $('#myModal').on('hidden.bs.modal', function (e) {
</button>
</button>
<a
class=
"navbar-brand"
href=
"#"
>
Project Name
</a>
<a
class=
"navbar-brand"
href=
"#"
>
Project Name
</a>
</div>
</div>
<div
class=
"collapse navbar-collapse bs-js-navbar-collapse"
>
<div
class=
"collapse navbar-collapse bs-
example-
js-navbar-collapse"
>
<ul
class=
"nav navbar-nav"
>
<ul
class=
"nav navbar-nav"
>
<li
class=
"dropdown"
>
<li
class=
"dropdown"
>
<a
id=
"drop1"
href=
"#"
role=
"button"
class=
"dropdown-toggle"
data-toggle=
"dropdown"
>
Dropdown
<b
class=
"caret"
></b></a>
<a
id=
"drop1"
href=
"#"
role=
"button"
class=
"dropdown-toggle"
data-toggle=
"dropdown"
>
Dropdown
<b
class=
"caret"
></b></a>
...
@@ -614,7 +614,7 @@ $('#myDropdown').on('show.bs.dropdown', function () {
...
@@ -614,7 +614,7 @@ $('#myDropdown').on('show.bs.dropdown', function () {
<nav
id=
"navbar-example2"
class=
"navbar navbar-default navbar-static"
role=
"navigation"
>
<nav
id=
"navbar-example2"
class=
"navbar navbar-default navbar-static"
role=
"navigation"
>
<div
class=
"container-fluid"
>
<div
class=
"container-fluid"
>
<div
class=
"navbar-header"
>
<div
class=
"navbar-header"
>
<button
class=
"navbar-toggle"
type=
"button"
data-toggle=
"collapse"
data-target=
".bs-js-navbar-scrollspy"
>
<button
class=
"navbar-toggle"
type=
"button"
data-toggle=
"collapse"
data-target=
".bs-
example-
js-navbar-scrollspy"
>
<span
class=
"sr-only"
>
Toggle navigation
</span>
<span
class=
"sr-only"
>
Toggle navigation
</span>
<span
class=
"icon-bar"
></span>
<span
class=
"icon-bar"
></span>
<span
class=
"icon-bar"
></span>
<span
class=
"icon-bar"
></span>
...
@@ -622,7 +622,7 @@ $('#myDropdown').on('show.bs.dropdown', function () {
...
@@ -622,7 +622,7 @@ $('#myDropdown').on('show.bs.dropdown', function () {
</button>
</button>
<a
class=
"navbar-brand"
href=
"#"
>
Project Name
</a>
<a
class=
"navbar-brand"
href=
"#"
>
Project Name
</a>
</div>
</div>
<div
class=
"collapse navbar-collapse bs-js-navbar-scrollspy"
>
<div
class=
"collapse navbar-collapse bs-
example-
js-navbar-scrollspy"
>
<ul
class=
"nav navbar-nav"
>
<ul
class=
"nav navbar-nav"
>
<li><a
href=
"#fat"
>
@fat
</a></li>
<li><a
href=
"#fat"
>
@fat
</a></li>
<li><a
href=
"#mdo"
>
@mdo
</a></li>
<li><a
href=
"#mdo"
>
@mdo
</a></li>
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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