Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
adjust styles based on spec redlines
Browse files Browse the repository at this point in the history
  • Loading branch information
Yvonne Yip committed Aug 26, 2014
1 parent 2fa5e87 commit 3c81714
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
20 changes: 12 additions & 8 deletions paper-input.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
outline: none;
text-align: inherit;
color: #757575;
padding: 0.75em 0;
}

:host /deep/ input,
Expand All @@ -18,7 +19,7 @@
padding: 0;
/* Important to use margin here so the margin remains visible
* when textarea scrolls internally. */
margin: 0.5em 0;
margin: 0.5em 0 0.25em;
background-color: transparent;
border: none;
outline: none;
Expand Down Expand Up @@ -57,7 +58,7 @@ textarea {
}

.mirror-text {
padding: 0.5em 0;
padding: 0.5em 0 0.25em;
max-width: 100%;
white-space: nowrap;
}
Expand All @@ -68,7 +69,7 @@ textarea {
}

.label {
padding: 0.5em 0;
padding: 0.5em 0 0.25em;
background: transparent;
pointer-events: none;
}
Expand Down Expand Up @@ -105,15 +106,18 @@ textarea {
}

.underline {
height: 1px;
background: #757575;
border-bottom-color: #757575;
height: 0px;
overflow: visible;
}

:host([disabled]) .underline {
border-bottom: 1px dashed;
height: 0px;
background: transparent;
}

.unfocused-underline {
height: 1px;
background: #757575;
border-bottom-color: #757575;
}

.focused-underline {
Expand Down
3 changes: 2 additions & 1 deletion paper-input.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,11 @@
</div>

<div id="underline" class="underline" relative>
<div class="unfocused-underline" fit invisible?="{{disabled}}"></div>
<div id="focusedUnderline" class="focused-underline" fit invisible?="{{!focused}}" animated?="{{underlineAnimated}}"></div>
</div>

<div layout horizontal center invisible?="{{!invalid}}">
<div layout horizontal center hidden?="{{!invalid}}">
<div class="error-text" flex auto role="alert" aria-hidden="{{!invalid}}">{{error || validationMessage}}</div>
<core-icon class="error-icon" icon="warning"></core-icon>
</div>
Expand Down

0 comments on commit 3c81714

Please sign in to comment.