Skip to content

Commit

Permalink
Fix Input group border issue picturepan2#260
Browse files Browse the repository at this point in the history
  • Loading branch information
picturepan2 committed Aug 21, 2017
1 parent c2dcb64 commit 3d0f1a1
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 12 deletions.
15 changes: 9 additions & 6 deletions docs/dist/spectre.css
Original file line number Diff line number Diff line change
Expand Up @@ -835,7 +835,7 @@ textarea.form-input {
height: auto;
}
.form-input[type="file"] {
padding: .125rem;
height: auto;
}
.form-input-hint {
color: #acb3c2;
Expand Down Expand Up @@ -1069,10 +1069,13 @@ textarea.form-input {
font-size: .8rem;
padding: .45rem .4rem;
}
.input-group .input-group-addon,
.input-group .form-input,
.input-group .form-select {
-ms-flex: 1 1 auto;
flex: 1 1 auto;
}
.input-group .input-group-btn {
-ms-flex: 1 0 auto;
flex: 1 0 auto;
z-index: 1;
}
.input-group .form-input:first-child:not(:last-child),
.input-group .form-select:first-child:not(:last-child),
Expand Down Expand Up @@ -1100,7 +1103,7 @@ textarea.form-input {
.input-group .form-select:focus,
.input-group .input-group-addon:focus,
.input-group .input-group-btn:focus {
z-index: 1;
z-index: 2;
}
.input-group .form-select {
width: auto;
Expand Down Expand Up @@ -2112,7 +2115,7 @@ code {
.chip {
align-items: center;
background: #f0f1f4;
border-radius: .1rem;
border-radius: 5rem;
color: #727e96;
display: -ms-inline-flexbox;
display: inline-flex;
Expand Down
2 changes: 1 addition & 1 deletion docs/dist/spectre.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/chips.less
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
.chip {
align-items: center;
background: @bg-color-dark;
border-radius: @border-radius;
border-radius: 5rem;
color: @gray-color-dark;
display: inline-flex;
height: @unit-7;
Expand Down
13 changes: 9 additions & 4 deletions src/forms.less
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ legend {

// Input types
&[type="file"] {
padding: .125rem;
height: auto;
}
}

Expand Down Expand Up @@ -359,9 +359,14 @@ legend {
padding: @control-padding-v-lg @control-padding-h;
}
}
.input-group-addon,

.form-input,
.form-select {
flex: 1 1 auto;
}

.input-group-btn {
flex: 1 0 auto;
z-index: @zindex-0;
}

.form-input,
Expand All @@ -382,7 +387,7 @@ legend {
margin-left: -@border-width;
}
&:focus {
z-index: @zindex-0;
z-index: @zindex-0 + 1;
}
}

Expand Down

0 comments on commit 3d0f1a1

Please sign in to comment.