diff --git a/src/components/TextField.vue b/src/components/TextField.vue
index 70e1146..f675b16 100644
--- a/src/components/TextField.vue
+++ b/src/components/TextField.vue
@@ -1,22 +1,28 @@
-
{{ label }}
+
+ {{ label }}
+
+
-
{{ errorMsg }}
+
{{ errorMsg }}
@@ -30,6 +36,7 @@ input {
padding: 0 8px;
font-size: 13px;
box-sizing: border-box;
+ display: block;
}
input::placeholder {
@@ -40,24 +47,44 @@ input:focus {
outline: none;
}
+input:disabled {
+ background: var(--color-bg-light);
+ color: var(--color-text-light-2);
+ cursor: default;
+}
+
input.error {
border-color: var(--color-text-error);
}
+
.text-field-label {
font-size: 12px;
color: var(--color-text-base);
padding-left: 8px;
margin-bottom: 2px;
+ display: inline-block;
+ position: relative;
+}
+
+.text-field-label .hint{
+ position: absolute;
+ top: -2px;
+ right: -22px;
}
.text-field-label.error {
color: var(--color-text-error);
}
+.text-field-label.disabled {
+ color: var(--color-text-light-2);
+}
+
.text-field-error {
color: var(--color-text-error);
font-size: 12px;
padding-left: 8px;
margin-top: 2px;
+ position: absolute;
}