|
6 | 6 | } |
7 | 7 | } |
8 | 8 | .item-floating-label { |
9 | | - transform: scale(var(--f7-floating-label-scale)) |
10 | | - translateY(calc((var(--f7-input-height) / 2 - 25%) / var(--f7-floating-label-scale))); |
| 9 | + transform: scale(var(--f7-floating-label-scale)) translateY(calc(var(--f7-label-height) + 25%)); |
11 | 10 | } |
12 | 11 | .item-input-focused .item-floating-label { |
13 | 12 | color: var(--f7-label-text-color); |
|
79 | 78 | } |
80 | 79 | } |
81 | 80 |
|
82 | | - .input-outline:after, |
83 | | - .item-input-outline .item-input-wrap:after { |
84 | | - content: ''; |
85 | | - position: absolute; |
86 | | - left: 0; |
87 | | - top: 0; |
88 | | - width: 100%; |
89 | | - height: 100%; |
90 | | - box-sizing: border-box; |
91 | | - border: 1px solid var(--f7-input-outline-border-color); |
92 | | - border-radius: var(--f7-input-outline-border-radius); |
93 | | - transition-duration: 200ms; |
94 | | - pointer-events: none; |
| 81 | + .item-input-outline .item-content, |
| 82 | + .item-input-outline.item-content { |
| 83 | + padding-top: 8px; |
| 84 | + padding-bottom: 8px; |
| 85 | + margin-left: 16px; |
| 86 | + margin-right: 16px; |
95 | 87 | } |
96 | | - .input-outline.input-focused:after, |
97 | | - .item-input-outline.item-input-focused .item-input-wrap:after { |
98 | | - border-width: 2px; |
99 | | - border-color: var(--f7-input-outline-focused-border-color, var(--f7-theme-color)); |
100 | | - } |
101 | | - .input-outline.input-invalid:after, |
102 | | - .item-input-outline.item-input-invalid .item-input-wrap:after { |
103 | | - border-width: 2px; |
104 | | - border-color: var(--f7-input-outline-invalid-border-color, var(--f7-input-error-text-color)); |
105 | | - } |
106 | | - .input-outline, |
107 | | - .item-input-outline, |
108 | | - .list .item-input-outline { |
109 | | - input, |
110 | | - textarea, |
111 | | - select { |
112 | | - border-radius: var(--f7-input-outline-border-radius); |
113 | | - padding-left: var(--f7-input-outline-padding-horizontal); |
114 | | - padding-right: var(--f7-input-outline-padding-horizontal); |
115 | | - } |
116 | | - } |
117 | | - .input-outline.input-dropdown, |
118 | | - .item-input-outline .input-dropdown-wrap { |
119 | | - &:before { |
120 | | - .ltr({ |
121 | | - right: 8px; |
122 | | - }); |
123 | | - .rtl({ |
124 | | - left: 8px; |
125 | | - }); |
126 | | - } |
127 | | - input, |
128 | | - textarea, |
129 | | - select { |
130 | | - .ltr({ |
131 | | - padding-right: 20px; |
132 | | - }); |
133 | | - .rtl({ |
134 | | - padding-left: 20px; |
135 | | - }); |
| 88 | + li.item-input-outline:first-child, |
| 89 | + li:first-child > .item-input-outline { |
| 90 | + padding-top: 16px; |
| 91 | + &::after { |
| 92 | + top: 16px; |
136 | 93 | } |
137 | 94 | } |
138 | | - .input-outline, |
139 | | - .item-input-outline { |
140 | | - .input-clear-button { |
141 | | - .ltr({ |
142 | | - right: 8px; |
143 | | - }); |
144 | | - .rtl({ |
145 | | - left: 8px; |
146 | | - }); |
| 95 | + li.item-input-outline:last-child, |
| 96 | + li:last-child > .item-input-outline { |
| 97 | + padding-bottom: 16px; |
| 98 | + &::after { |
| 99 | + bottom: 16px; |
147 | 100 | } |
148 | 101 | } |
149 | 102 |
|
150 | | - .item-input-outline { |
151 | | - --f7-input-height: var(--f7-input-outline-height); |
152 | | - .item-inner:after { |
153 | | - display: none !important; |
| 103 | + .item-input-outline .item-content, |
| 104 | + .item-input-outline.item-content, |
| 105 | + .input-outline { |
| 106 | + .item-inner { |
| 107 | + display: block; |
| 108 | + padding-top: 0px; |
| 109 | + padding-bottom: 0px; |
154 | 110 | } |
155 | | - .item-label { |
156 | | - .ltr({ |
157 | | - left: var(--f7-input-outline-padding-horizontal); |
158 | | - }); |
159 | | - .rtl({ |
160 | | - right: var(--f7-input-outline-padding-horizontal); |
161 | | - }); |
| 111 | + .item-input-wrap { |
| 112 | + margin-top: -22px; |
162 | 113 | } |
163 | 114 |
|
| 115 | + .item-label, |
164 | 116 | .item-floating-label { |
165 | | - .ltr({ |
166 | | - left: calc(var(--f7-input-outline-padding-horizontal) - 4px); |
167 | | - }); |
168 | | - .rtl({ |
169 | | - right: calc(var(--f7-input-outline-padding-horizontal) - 4px); |
170 | | - }); |
171 | | - padding-left: 4px; |
172 | | - padding-right: 4px; |
173 | | - background: var(--f7-page-bg-color); |
174 | | - z-index: 10; |
175 | | - margin-top: calc(-0.5 * (var(--f7-label-line-height))); |
176 | | - } |
177 | | - &.item-input-with-value .item-floating-label, |
178 | | - &.item-input-focused .item-floating-label { |
179 | | - transform: scale(1) translateY(50%); |
180 | | - } |
181 | | - .item-input-info, |
182 | | - .item-input-error-message { |
183 | | - .ltr({ |
184 | | - padding-left: var(--f7-input-outline-padding-horizontal); |
185 | | - }); |
186 | | - .rtl({ |
187 | | - padding-right: var(--f7-input-outline-padding-horizontal); |
188 | | - }); |
| 117 | + display: inline-flex; |
| 118 | + margin: -8px -4px -4px; |
| 119 | + top: -4px; |
189 | 120 | } |
190 | | - } |
191 | 121 |
|
192 | | - .item-input-outline, |
193 | | - .input-outline { |
194 | | - .item-input-wrap { |
195 | | - margin-top: 0; |
196 | | - margin-bottom: 0; |
197 | | - } |
198 | | - .item-input-error-message, |
199 | | - .item-input-info, |
200 | | - .input-error-message, |
201 | | - .input-info { |
202 | | - margin-top: 0; |
203 | | - white-space: normal; |
204 | | - overflow: hidden; |
205 | | - text-overflow: ellipsis; |
206 | | - } |
207 | | - .item-input-info, |
208 | | - .input-info { |
209 | | - margin-bottom: calc(-1 * var(--f7-input-info-font-size) * var(--f7-input-info-line-height)); |
210 | | - } |
211 | | - .item-input-error-message, |
212 | | - .input-error-message { |
213 | | - margin-bottom: calc(-1 * var(--f7-input-error-font-size) * var(--f7-input-error-line-height)); |
214 | | - } |
215 | | - &.item-input-with-info, |
216 | | - &.input-with-info { |
217 | | - .item-input-wrap { |
218 | | - margin-bottom: calc(var(--f7-input-info-font-size) * var(--f7-input-info-line-height)); |
219 | | - } |
220 | | - } |
221 | | - &.item-input-with-error-message, |
222 | | - &.input-with-error-message { |
223 | | - .item-input-wrap { |
224 | | - margin-bottom: calc(var(--f7-input-error-font-size) * var(--f7-input-error-line-height)); |
225 | | - } |
| 122 | + .item-floating-label { |
| 123 | + transform: scale(var(--f7-floating-label-scale)) translateY(calc(var(--f7-label-height))); |
226 | 124 | } |
227 | 125 | } |
228 | 126 | } |
0 commit comments