Skip to content

Commit

Permalink
Merge pull request #455 from PolymerElements/border-bottom
Browse files Browse the repository at this point in the history
Implement underlines with border rather than height/width for better rendering at non-standard zoom
  • Loading branch information
notwaldorf authored Nov 15, 2016
2 parents 1d47989 + 1f3f43d commit a4af88b
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions paper-input-container.html
Original file line number Diff line number Diff line change
Expand Up @@ -131,14 +131,14 @@
}

.underline {
height: 2px;
position: relative;
}

.focused-line {
@apply(--layout-fit);

background: var(--paper-input-container-focus-color, --primary-color);
height: 2px;
border-bottom: 2px solid var(--paper-input-container-focus-color, --primary-color);

-webkit-transform-origin: center center;
transform-origin: center center;
Expand All @@ -158,7 +158,7 @@
}

.underline.is-invalid .focused-line {
background: var(--paper-input-container-invalid-color, --error-color);
border-color: var(--paper-input-container-invalid-color, --error-color);
-webkit-transform: none;
transform: none;
-webkit-transition: -webkit-transform 0.25s;
Expand All @@ -170,16 +170,14 @@
.unfocused-line {
@apply(--layout-fit);

background: var(--paper-input-container-color, --secondary-text-color);
height: 1px;
border-bottom: 1px solid var(--paper-input-container-color, --secondary-text-color);

@apply(--paper-input-container-underline);
}

:host([disabled]) .unfocused-line {
border-bottom: 1px dashed;
border-color: var(--paper-input-container-color, --secondary-text-color);
background: transparent;

@apply(--paper-input-container-underline-disabled);
}
Expand Down

0 comments on commit a4af88b

Please sign in to comment.