OLD | NEW |
| (Empty) |
1 /* | |
2 * @license | |
3 * Copyright (c) 2014 The Polymer Project Authors. All rights reserved. | |
4 * This code may only be used under the BSD style license found at http://polyme
r.github.io/LICENSE.txt | |
5 * The complete set of authors may be found at http://polymer.github.io/AUTHORS.
txt | |
6 * The complete set of contributors may be found at http://polymer.github.io/CON
TRIBUTORS.txt | |
7 * Code distributed by Google as part of the polymer project is also | |
8 * subject to an additional IP rights grant found at http://polymer.github.io/PA
TENTS.txt | |
9 */ | |
10 | |
11 :host { | |
12 display: inline-block; | |
13 outline: none; | |
14 text-align: inherit; | |
15 color: #757575; | |
16 padding: 0.75em 0; | |
17 } | |
18 | |
19 :host /deep/ input, | |
20 :host /deep/ textarea { | |
21 font: inherit; | |
22 color: #000; | |
23 padding: 0; | |
24 margin: 0; | |
25 background-color: transparent; | |
26 border: none; | |
27 outline: none; | |
28 /* see comments in template */ | |
29 width: 100%; | |
30 height: 100%; | |
31 } | |
32 | |
33 input:invalid, | |
34 textarea:invalid { | |
35 box-shadow: none; | |
36 } | |
37 | |
38 textarea { | |
39 resize: none; | |
40 } | |
41 | |
42 [invisible] { | |
43 visibility: hidden; | |
44 } | |
45 | |
46 [animated] { | |
47 visibility: visible !important; | |
48 -webkit-transition: -webkit-transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), opaci
ty 0.2s cubic-bezier(0.4, 0, 0.2, 1); | |
49 transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s cubic-be
zier(0.4, 0, 0.2, 1); | |
50 } | |
51 | |
52 .floated-label { | |
53 font-size: 0.75em; | |
54 background: transparent; | |
55 white-space: nowrap; | |
56 } | |
57 | |
58 .mirror-text { | |
59 padding: 0.5em 0 0.25em; | |
60 max-width: 100%; | |
61 white-space: nowrap; | |
62 } | |
63 | |
64 :host([multiline]) .mirror-text { | |
65 white-space: pre-wrap; | |
66 word-wrap: break-word; | |
67 } | |
68 | |
69 .label { | |
70 padding: 0.5em 0 0.25em; | |
71 background: transparent; | |
72 pointer-events: none; | |
73 } | |
74 | |
75 .label-text { | |
76 overflow: hidden; | |
77 text-overflow: ellipsis; | |
78 white-space: nowrap; | |
79 display: inline-block; | |
80 max-width: 100%; | |
81 -moz-transform-origin: 0% 0%; | |
82 -webkit-transform-origin: 0% 0%; | |
83 transform-origin: 0% 0%; | |
84 } | |
85 | |
86 .cursor { | |
87 position: absolute; | |
88 top: 0.4em; | |
89 left: 0; | |
90 width: 1px; | |
91 height: 1.4em; | |
92 opacity: 0.4; | |
93 -moz-transform-origin: 0%; | |
94 -webkit-transform-origin: 0%; | |
95 transform-origin: 0%; | |
96 -webkit-transform: none; | |
97 transform: none; | |
98 } | |
99 | |
100 .cursor[invisible] { | |
101 opacity: 0.75; | |
102 -webkit-transform: translate3d(3em,0,0) scale3d(50,1,1); | |
103 transform: translate3d(3em,0,0) scale3d(50,1,1); | |
104 } | |
105 | |
106 .input-container { | |
107 position: absolute; | |
108 /* simulate padding so the input/textarea can use 100% width/height */ | |
109 top: 0.5em; | |
110 right: 0; | |
111 bottom: 0.25em; | |
112 left: 0; | |
113 } | |
114 | |
115 .underline { | |
116 height: 0px; | |
117 overflow: visible; | |
118 } | |
119 | |
120 :host([disabled]) .underline { | |
121 border-bottom: 1px dashed; | |
122 } | |
123 | |
124 .unfocused-underline { | |
125 height: 1px; | |
126 background: #757575; | |
127 border-bottom-color: #757575; | |
128 } | |
129 | |
130 .focused-underline { | |
131 height: 2px; | |
132 -webkit-transform: none; | |
133 transform: none; | |
134 } | |
135 | |
136 .focused-underline[invisible] { | |
137 -webkit-transform: scale3d(0,1,1); | |
138 transform: scale3d(0,1,1); | |
139 } | |
140 | |
141 .error-text { | |
142 font-size: 0.75em; | |
143 padding: 0.5em 0; | |
144 } | |
145 | |
146 .error-icon { | |
147 height: 20px; | |
148 width: 20px; | |
149 } | |
OLD | NEW |