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
ac98cee6
Commit
ac98cee6
authored
Feb 04, 2012
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
allow alternate form layouts to hide inputs with .hide on them
parent
9ab843b9
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
2 deletions
+9
-2
docs/assets/bootstrap.zip
docs/assets/bootstrap.zip
+0
-0
docs/assets/css/bootstrap.css
docs/assets/css/bootstrap.css
+3
-0
docs/base-css.html
docs/base-css.html
+1
-1
docs/templates/pages/base-css.mustache
docs/templates/pages/base-css.mustache
+1
-1
less/forms.less
less/forms.less
+4
-0
No files found.
docs/assets/bootstrap.zip
View file @
ac98cee6
No preview for this file type
docs/assets/css/bootstrap.css
View file @
ac98cee6
...
@@ -940,6 +940,9 @@ input:focus:required:invalid:focus, textarea:focus:required:invalid:focus, selec
...
@@ -940,6 +940,9 @@ input:focus:required:invalid:focus, textarea:focus:required:invalid:focus, selec
display
:
inline-block
;
display
:
inline-block
;
margin-bottom
:
0
;
margin-bottom
:
0
;
}
}
.form-search
.hide
,
.form-inline
.hide
,
.form-horizontal
.hide
{
display
:
none
;
}
.form-search
label
,
.form-search
label
,
.form-inline
label
,
.form-inline
label
,
.form-search
.input-append
,
.form-search
.input-append
,
...
...
docs/base-css.html
View file @
ac98cee6
...
@@ -886,7 +886,7 @@ For example, <code>section</code> should be wrapped as inline.
...
@@ -886,7 +886,7 @@ For example, <code>section</code> should be wrapped as inline.
<p>
Inputs are block level to start. For
<code>
.form-inline
</code>
and
<code>
.form-horizontal
</code>
, we use inline-block.
</p>
<p>
Inputs are block level to start. For
<code>
.form-inline
</code>
and
<code>
.form-horizontal
</code>
, we use inline-block.
</p>
</div>
</div>
<div
class=
"span9"
>
<div
class=
"span9"
>
<form
class=
"well form-
search
"
>
<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"
>
<button
type=
"submit"
class=
"btn"
>
Go
</button>
<button
type=
"submit"
class=
"btn"
>
Go
</button>
...
...
docs/templates/pages/base-css.mustache
View file @
ac98cee6
...
@@ -810,7 +810,7 @@
...
@@ -810,7 +810,7 @@
<p>
{{
_i
}}
Inputs are block level to start. For
<code>
.form-inline
</code>
and
<code>
.form-horizontal
</code>
, we use inline-block.
{{/
i
}}
</p>
<p>
{{
_i
}}
Inputs are block level to start. For
<code>
.form-inline
</code>
and
<code>
.form-horizontal
</code>
, we use inline-block.
{{/
i
}}
</p>
</div>
</div>
<div
class=
"span9"
>
<div
class=
"span9"
>
<form
class=
"well form-
search
"
>
<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
}}
"
>
<button
type=
"submit"
class=
"btn"
>
{{
_i
}}
Go
{{/
i
}}
</button>
<button
type=
"submit"
class=
"btn"
>
{{
_i
}}
Go
{{/
i
}}
</button>
...
...
less/forms.less
View file @
ac98cee6
...
@@ -462,6 +462,10 @@ select:focus:required:invalid {
...
@@ -462,6 +462,10 @@ select:focus:required:invalid {
display: inline-block;
display: inline-block;
margin-bottom: 0;
margin-bottom: 0;
}
}
// Re-hide hidden elements due to specifity
.hide {
display: none;
}
}
}
.form-search label,
.form-search label,
.form-inline label,
.form-inline label,
...
...
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