@neovici/cosmoz-input 3.17.0 → 3.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/styles.js +13 -6
- package/package.json +1 -1
package/dist/styles.js
CHANGED
|
@@ -40,8 +40,7 @@ export const styles = css `
|
|
|
40
40
|
padding-top: var(--paper-input-container_-_padding-top, 8px);
|
|
41
41
|
padding-bottom: var(--paper-input-container_-_padding-bottom, 8px);
|
|
42
42
|
position: relative;
|
|
43
|
-
|
|
44
|
-
border-radius: var(--cosmoz-input-border-radius, 0px);
|
|
43
|
+
|
|
45
44
|
max-height: var(--cosmoz-input-max-height);
|
|
46
45
|
font-size: var(--font-size);
|
|
47
46
|
line-height: var(--line-height);
|
|
@@ -54,13 +53,17 @@ export const styles = css `
|
|
|
54
53
|
|
|
55
54
|
.float {
|
|
56
55
|
line-height: calc(var(--line-height) * var(--label-scale));
|
|
56
|
+
background-color: var(--cosmoz-input-float-bg-color, none);
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
.wrap {
|
|
60
|
+
padding: var(--cosmoz-input-padding, 0px);
|
|
60
61
|
display: flex;
|
|
61
62
|
align-items: center;
|
|
62
63
|
position: relative;
|
|
63
64
|
background: var(--bg);
|
|
65
|
+
border: var(--cosmoz-input-border, none);
|
|
66
|
+
border-radius: var(--cosmoz-input-border-radius, 0px);
|
|
64
67
|
}
|
|
65
68
|
|
|
66
69
|
.control {
|
|
@@ -91,10 +94,8 @@ export const styles = css `
|
|
|
91
94
|
position: absolute;
|
|
92
95
|
top: 0;
|
|
93
96
|
left: 0;
|
|
94
|
-
width: 100
|
|
95
|
-
transition:
|
|
96
|
-
transform 0.25s,
|
|
97
|
-
width 0.25s;
|
|
97
|
+
width: var(--cosmoz-input-label-width, 100%);
|
|
98
|
+
transition: transform 0.25s, width 0.25s;
|
|
98
99
|
transform-origin: left top;
|
|
99
100
|
color: var(--color);
|
|
100
101
|
white-space: nowrap;
|
|
@@ -108,6 +109,7 @@ export const styles = css `
|
|
|
108
109
|
#input:not(:placeholder-shown) + label {
|
|
109
110
|
transform: translateY(calc(var(--label-scale) * -100%))
|
|
110
111
|
scale(var(--label-scale));
|
|
112
|
+
background-color: var(--cosmoz-input-no-placeholder-label-bg, transparent);
|
|
111
113
|
}
|
|
112
114
|
:host(:not(always-float-label):focus-within) #input::placeholder,
|
|
113
115
|
:host(:focus-within) label {
|
|
@@ -140,6 +142,11 @@ export const styles = css `
|
|
|
140
142
|
:host(:focus-within) .line {
|
|
141
143
|
border-bottom-color: var(--focused-color);
|
|
142
144
|
}
|
|
145
|
+
|
|
146
|
+
:host(:focus-within) {
|
|
147
|
+
border-color: var(--focused-color);
|
|
148
|
+
}
|
|
149
|
+
|
|
143
150
|
:host([disabled]) .line {
|
|
144
151
|
border-bottom-style: dashed;
|
|
145
152
|
opacity: var(--disabled-line-opacity);
|