Skip to content

Commit

Permalink
Input ready to accept visible hint
Browse files Browse the repository at this point in the history
  • Loading branch information
javivelasco committed Oct 22, 2016
1 parent 22a8f43 commit 577feb3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion components/input/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,17 @@
}

& ~ .hint {
display: block;
opacity: var(--input-hint-opacity);
}

& ~ .icon {
color: var(--input-text-highlight-color);
}

&.filled ~ .hint {
opacity: 0;
}
}

&:focus:not([disabled]):not([readonly]),
Expand Down Expand Up @@ -99,7 +104,7 @@
font-size: var(--input-field-font-size);
left: 0;
line-height: var(--input-field-font-size);
opacity: 0;
opacity: var(--input-hint-opacity);
pointer-events: none;
position: absolute;
top: calc(var(--input-padding) + 1.5 * var(--input-field-padding));
Expand Down

0 comments on commit 577feb3

Please sign in to comment.