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
391b62f9
Commit
391b62f9
authored
Apr 27, 2015
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stub out flexbox variation for input group
parent
9d4d6ef3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
12 deletions
+29
-12
scss/_input-group.scss
scss/_input-group.scss
+29
-12
No files found.
scss/_input-group.scss
View file @
391b62f9
...
...
@@ -8,22 +8,31 @@
//
.input-group
{
position
:
relative
;
// For dropdowns
position
:
relative
;
@if
$enable-flex
{
display
:
flex
;
}
@else
{
display
:
table
;
border-collapse
:
separate
;
// prevent input groups from inheriting border styles from table cells when placed within a table
// Prevent input groups from inheriting border styles from table cells when
// placed within a table.
border-collapse
:
separate
;
}
.form-control
{
// Ensure that the input is always above the *appended* addon button for
// proper border colors.
position
:
relative
;
z-index
:
2
;
@if
$enable-flex
{
flex
:
1
;
}
@else
{
// IE9 fubars the placeholder attribute in text inputs and the arrows on
// select elements in input groups. To fix it, we float the input. Details:
// https://github.com/twbs/bootstrap/issues/11561#issuecomment-28936855
float
:
left
;
width
:
100%
;
}
margin-bottom
:
0
;
}
}
...
...
@@ -31,7 +40,11 @@
.input-group-addon
,
.input-group-btn
,
.input-group
.form-control
{
@if
$enable-flex
{
// do nothing
}
@else
{
display
:
table-cell
;
}
&
:not
(
:first-child
)
:not
(
:last-child
)
{
@include
border-radius
(
0
);
...
...
@@ -40,7 +53,11 @@
.input-group-addon
,
.input-group-btn
{
@if
$enable-flex
{
// do nothing
}
@else
{
width
:
1%
;
}
white-space
:
nowrap
;
vertical-align
:
middle
;
// Match the inputs
}
...
...
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