@neovici/cosmoz-input 3.16.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 +14 -3
- 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,19 +94,22 @@ export const styles = css `
|
|
|
91
94
|
position: absolute;
|
|
92
95
|
top: 0;
|
|
93
96
|
left: 0;
|
|
94
|
-
width: 100
|
|
97
|
+
width: var(--cosmoz-input-label-width, 100%);
|
|
95
98
|
transition: transform 0.25s, width 0.25s;
|
|
96
99
|
transform-origin: left top;
|
|
97
100
|
color: var(--color);
|
|
98
101
|
white-space: nowrap;
|
|
99
102
|
overflow: hidden;
|
|
100
103
|
text-overflow: ellipsis;
|
|
104
|
+
text-transform: var(--cosmoz-input-label-text-transform);
|
|
105
|
+
font-weight: var(--cosmoz-input-label-font-weight);
|
|
101
106
|
}
|
|
102
107
|
|
|
103
108
|
:host([always-float-label]) label,
|
|
104
109
|
#input:not(:placeholder-shown) + label {
|
|
105
110
|
transform: translateY(calc(var(--label-scale) * -100%))
|
|
106
111
|
scale(var(--label-scale));
|
|
112
|
+
background-color: var(--cosmoz-input-no-placeholder-label-bg, transparent);
|
|
107
113
|
}
|
|
108
114
|
:host(:not(always-float-label):focus-within) #input::placeholder,
|
|
109
115
|
:host(:focus-within) label {
|
|
@@ -136,6 +142,11 @@ export const styles = css `
|
|
|
136
142
|
:host(:focus-within) .line {
|
|
137
143
|
border-bottom-color: var(--focused-color);
|
|
138
144
|
}
|
|
145
|
+
|
|
146
|
+
:host(:focus-within) {
|
|
147
|
+
border-color: var(--focused-color);
|
|
148
|
+
}
|
|
149
|
+
|
|
139
150
|
:host([disabled]) .line {
|
|
140
151
|
border-bottom-style: dashed;
|
|
141
152
|
opacity: var(--disabled-line-opacity);
|