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
4245e8eb
Commit
4245e8eb
authored
Dec 09, 2012
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix checkbox and radios example
parent
6e9bbe62
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
74 additions
and
48 deletions
+74
-48
docs/assets/css/bootstrap.css
docs/assets/css/bootstrap.css
+1
-0
docs/css.html
docs/css.html
+36
-24
docs/templates/pages/css.mustache
docs/templates/pages/css.mustache
+36
-24
less/forms.less
less/forms.less
+1
-0
No files found.
docs/assets/css/bootstrap.css
View file @
4245e8eb
...
...
@@ -903,6 +903,7 @@ textarea::-webkit-input-placeholder {
.radio
label
,
.checkbox
label
{
margin-bottom
:
0
;
font-weight
:
normal
;
}
...
...
docs/css.html
View file @
4245e8eb
...
...
@@ -1185,34 +1185,46 @@ For example, <code><section></code> should be wrapped as inlin
<p>
Checkboxes are for selecting one or several options in a list while radios are for selecting one option from many.
</p>
<h4>
Default (stacked)
</h4>
<form
class=
"bs-docs-example"
>
<label
class=
"checkbox"
>
<input
type=
"checkbox"
value=
""
>
Option one is this and that
—
be sure to include why it's great
</label>
<div
class=
"checkbox"
>
<label>
<input
type=
"checkbox"
value=
""
>
Option one is this and that
—
be sure to include why it's great
</label>
</div>
<br>
<label
class=
"radio"
>
<input
type=
"radio"
name=
"optionsRadios"
id=
"optionsRadios1"
value=
"option1"
checked
>
Option one is this and that
—
be sure to include why it's great
</label>
<label
class=
"radio"
>
<input
type=
"radio"
name=
"optionsRadios"
id=
"optionsRadios2"
value=
"option2"
>
Option two can be something else and selecting it will deselect option one
</label>
<div
class=
"radio"
>
<label>
<input
type=
"radio"
name=
"optionsRadios"
id=
"optionsRadios1"
value=
"option1"
checked
>
Option one is this and that
—
be sure to include why it's great
</label>
</div>
<div
class=
"radio"
>
<label>
<input
type=
"radio"
name=
"optionsRadios"
id=
"optionsRadios2"
value=
"option2"
>
Option two can be something else and selecting it will deselect option one
</label>
</div>
</form>
<pre
class=
"prettyprint linenums"
>
<
label class="checkbox"
>
<
input type="checkbox" value=""
>
Option one is this and that
—
be sure to include why it's great
<
/label
>
<
div class="checkbox"
>
<
label
>
<
input type="checkbox" value=""
>
Option one is this and that
—
be sure to include why it's great
<
/label
>
<
/div
>
<
label class="radio"
>
<
input type="radio" name="optionsRadios" id="optionsRadios1" value="option1" checked
>
Option one is this and that
—
be sure to include why it's great
<
/label
>
<
label class="radio"
>
<
input type="radio" name="optionsRadios" id="optionsRadios2" value="option2"
>
Option two can be something else and selecting it will deselect option one
<
/label
>
<
div class="radio"
>
<
label
>
<
input type="radio" name="optionsRadios" id="optionsRadios1" value="option1" checked
>
Option one is this and that
—
be sure to include why it's great
<
/label
>
<
/div
>
<
div class="radio"
>
<
label
>
<
input type="radio" name="optionsRadios" id="optionsRadios2" value="option2"
>
Option two can be something else and selecting it will deselect option one
<
/label
>
<
/div
>
</pre>
<h4>
Inline checkboxes
</h4>
...
...
docs/templates/pages/css.mustache
View file @
4245e8eb
...
...
@@ -1125,34 +1125,46 @@ For example, <code><section></code> should be wrapped as inlin
<p>
Checkboxes are for selecting one or several options in a list while radios are for selecting one option from many.
</p>
<h4>
Default (stacked)
</h4>
<form
class=
"bs-docs-example"
>
<label
class=
"checkbox"
>
<input
type=
"checkbox"
value=
""
>
Option one is this and that
—
be sure to include why it's great
</label>
<div
class=
"checkbox"
>
<label>
<input
type=
"checkbox"
value=
""
>
Option one is this and that
—
be sure to include why it's great
</label>
</div>
<br>
<label
class=
"radio"
>
<input
type=
"radio"
name=
"optionsRadios"
id=
"optionsRadios1"
value=
"option1"
checked
>
Option one is this and that
—
be sure to include why it's great
</label>
<label
class=
"radio"
>
<input
type=
"radio"
name=
"optionsRadios"
id=
"optionsRadios2"
value=
"option2"
>
Option two can be something else and selecting it will deselect option one
</label>
<div
class=
"radio"
>
<label>
<input
type=
"radio"
name=
"optionsRadios"
id=
"optionsRadios1"
value=
"option1"
checked
>
Option one is this and that
—
be sure to include why it's great
</label>
</div>
<div
class=
"radio"
>
<label>
<input
type=
"radio"
name=
"optionsRadios"
id=
"optionsRadios2"
value=
"option2"
>
Option two can be something else and selecting it will deselect option one
</label>
</div>
</form>
<pre
class=
"prettyprint linenums"
>
<
label class="checkbox"
>
<
input type="checkbox" value=""
>
Option one is this and that
—
be sure to include why it's great
<
/label
>
<
div class="checkbox"
>
<
label
>
<
input type="checkbox" value=""
>
Option one is this and that
—
be sure to include why it's great
<
/label
>
<
/div
>
<
label class="radio"
>
<
input type="radio" name="optionsRadios" id="optionsRadios1" value="option1" checked
>
Option one is this and that
—
be sure to include why it's great
<
/label
>
<
label class="radio"
>
<
input type="radio" name="optionsRadios" id="optionsRadios2" value="option2"
>
Option two can be something else and selecting it will deselect option one
<
/label
>
<
div class="radio"
>
<
label
>
<
input type="radio" name="optionsRadios" id="optionsRadios1" value="option1" checked
>
Option one is this and that
—
be sure to include why it's great
<
/label
>
<
/div
>
<
div class="radio"
>
<
label
>
<
input type="radio" name="optionsRadios" id="optionsRadios2" value="option2"
>
Option two can be something else and selecting it will deselect option one
<
/label
>
<
/div
>
</pre>
<h4>
Inline checkboxes
</h4>
...
...
less/forms.less
View file @
4245e8eb
...
...
@@ -206,6 +206,7 @@ textarea {
}
.radio label,
.checkbox label {
margin-bottom: 0;
font-weight: normal;
}
.radio input[type="radio"],
...
...
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