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
143b3db2
Commit
143b3db2
authored
Feb 20, 2012
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update inline forms to resolve checkbox label with space in it and overlapping content, per #1969
parent
331c8572
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
29 additions
and
3 deletions
+29
-3
docs/assets/bootstrap.zip
docs/assets/bootstrap.zip
+0
-0
docs/assets/css/bootstrap.css
docs/assets/css/bootstrap.css
+9
-0
docs/base-css.html
docs/base-css.html
+4
-1
docs/templates/pages/base-css.mustache
docs/templates/pages/base-css.mustache
+4
-1
less/forms.less
less/forms.less
+12
-1
No files found.
docs/assets/bootstrap.zip
View file @
143b3db2
No preview for this file type
docs/assets/css/bootstrap.css
View file @
143b3db2
...
@@ -1001,9 +1001,18 @@ input:focus:required:invalid:focus, textarea:focus:required:invalid:focus, selec
...
@@ -1001,9 +1001,18 @@ input:focus:required:invalid:focus, textarea:focus:required:invalid:focus, selec
.form-search
.checkbox
,
.form-search
.checkbox
,
.form-inline
.radio
,
.form-inline
.radio
,
.form-inline
.checkbox
{
.form-inline
.checkbox
{
padding-left
:
0
;
margin-bottom
:
0
;
margin-bottom
:
0
;
vertical-align
:
middle
;
vertical-align
:
middle
;
}
}
.form-search
.radio
input
[
type
=
"radio"
],
.form-search
.checkbox
input
[
type
=
"checkbox"
],
.form-inline
.radio
input
[
type
=
"radio"
],
.form-inline
.checkbox
input
[
type
=
"checkbox"
]
{
float
:
left
;
margin-left
:
0
;
margin-right
:
3px
;
}
.control-group
{
.control-group
{
margin-bottom
:
9px
;
margin-bottom
:
9px
;
}
}
...
...
docs/base-css.html
View file @
143b3db2
...
@@ -910,7 +910,7 @@ For example, <code>section</code> should be wrapped as inline.
...
@@ -910,7 +910,7 @@ For example, <code>section</code> should be wrapped as inline.
<input
type=
"text"
class=
"input-small"
placeholder=
"Email"
>
<input
type=
"text"
class=
"input-small"
placeholder=
"Email"
>
<input
type=
"password"
class=
"input-small"
placeholder=
"Password"
>
<input
type=
"password"
class=
"input-small"
placeholder=
"Password"
>
<label
class=
"checkbox"
>
<label
class=
"checkbox"
>
<input
type=
"checkbox"
>
Remember
?
<input
type=
"checkbox"
>
Remember
me
</label>
</label>
<button
type=
"submit"
class=
"btn"
>
Sign in
</button>
<button
type=
"submit"
class=
"btn"
>
Sign in
</button>
</form>
</form>
...
@@ -918,6 +918,9 @@ For example, <code>section</code> should be wrapped as inline.
...
@@ -918,6 +918,9 @@ For example, <code>section</code> should be wrapped as inline.
<
form class="well form-inline"
>
<
form class="well form-inline"
>
<
input type="text" class="input-small" placeholder="Email"
>
<
input type="text" class="input-small" placeholder="Email"
>
<
input type="password" class="input-small" placeholder="Password"
>
<
input type="password" class="input-small" placeholder="Password"
>
<
label class="checkbox"
>
<
input type="checkbox"
>
Remember me
<
/label
>
<
button type="submit" class="btn"
>
Go
<
/button
>
<
button type="submit" class="btn"
>
Go
<
/button
>
<
/form
>
<
/form
>
</pre>
</pre>
...
...
docs/templates/pages/base-css.mustache
View file @
143b3db2
...
@@ -834,7 +834,7 @@
...
@@ -834,7 +834,7 @@
<input
type=
"text"
class=
"input-small"
placeholder=
"
{{
_i
}}
Email
{{/
i
}}
"
>
<input
type=
"text"
class=
"input-small"
placeholder=
"
{{
_i
}}
Email
{{/
i
}}
"
>
<input
type=
"password"
class=
"input-small"
placeholder=
"
{{
_i
}}
Password
{{/
i
}}
"
>
<input
type=
"password"
class=
"input-small"
placeholder=
"
{{
_i
}}
Password
{{/
i
}}
"
>
<label
class=
"checkbox"
>
<label
class=
"checkbox"
>
<input
type=
"checkbox"
>
{{
_i
}}
Remember
?
{{/
i
}}
<input
type=
"checkbox"
>
{{
_i
}}
Remember
me
{{/
i
}}
</label>
</label>
<button
type=
"submit"
class=
"btn"
>
{{
_i
}}
Sign in
{{/
i
}}
</button>
<button
type=
"submit"
class=
"btn"
>
{{
_i
}}
Sign in
{{/
i
}}
</button>
</form>
</form>
...
@@ -842,6 +842,9 @@
...
@@ -842,6 +842,9 @@
<
form class="well form-inline"
>
<
form class="well form-inline"
>
<
input type="text" class="input-small" placeholder="
{{
_i
}}
Email
{{/
i
}}
"
>
<
input type="text" class="input-small" placeholder="
{{
_i
}}
Email
{{/
i
}}
"
>
<
input type="password" class="input-small" placeholder="
{{
_i
}}
Password
{{/
i
}}
"
>
<
input type="password" class="input-small" placeholder="
{{
_i
}}
Password
{{/
i
}}
"
>
<
label class="checkbox"
>
<
input type="checkbox"
>
{{
_i
}}
Remember me
{{/
i
}}
<
/label
>
<
button type="submit" class="btn"
>
{{
_i
}}
Go
{{/
i
}}
<
/button
>
<
button type="submit" class="btn"
>
{{
_i
}}
Go
{{/
i
}}
<
/button
>
<
/form
>
<
/form
>
</pre>
</pre>
...
...
less/forms.less
View file @
143b3db2
...
@@ -475,14 +475,25 @@ select:focus:required:invalid {
...
@@ -475,14 +475,25 @@ select:focus:required:invalid {
.form-inline .input-prepend .add-on {
.form-inline .input-prepend .add-on {
vertical-align: middle;
vertical-align: middle;
}
}
// Inline checkbox/radio labels
// Inline checkbox/radio labels
(remove padding on left)
.form-search .radio,
.form-search .radio,
.form-search .checkbox,
.form-search .checkbox,
.form-inline .radio,
.form-inline .radio,
.form-inline .checkbox {
.form-inline .checkbox {
padding-left: 0;
margin-bottom: 0;
margin-bottom: 0;
vertical-align: middle;
vertical-align: middle;
}
}
// Remove float and margin, set to inline-block
.form-search .radio input[type="radio"],
.form-search .checkbox input[type="checkbox"],
.form-inline .radio input[type="radio"],
.form-inline .checkbox input[type="checkbox"] {
float: left;
margin-left: 0;
margin-right: 3px;
}
// Margin to space out fieldsets
// Margin to space out fieldsets
.control-group {
.control-group {
...
...
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