-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathRoomInput.vue
More file actions
55 lines (49 loc) · 1.16 KB
/
Copy pathRoomInput.vue
File metadata and controls
55 lines (49 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<template>
<input
:id="name"
class="roomInput"
:name="name"
placeholder="type or select"
autocomplete="off"
:value="value"
list="roomsList"
@input="$emit('input', $event.target.value)"
@change="$emit('change', $event.target.value)"
/>
</template>
<script lang="ts">
import Vue from "vue";
export default Vue.extend({
props: {
name: { type: String, required: true },
},
data() {
return { value: "" };
},
});
</script>
<style scoped>
.roomInput {
margin-bottom: 1em;
font-size: 25px;
text-align: center;
border-radius: 10px;
border-width: 0px;
color: var(--input-text-color);
background-color: var(--input-background-color);
transition: background-color var(--linear-ease);
}
.roomInput:focus {
background-color: var(--input-selection-color);
color: var(--input-selection-text-color);
transition: background-color var(--linear-ease);
}
.roomInput::placeholder {
color: var(--input-placeholder-text-color); /*#6e7f8d;*/
transition: background-color var(--linear-ease);
}
.roomInput:focus::placeholder {
color: var(--input-selection-color);
transition: background-color var(--linear-ease);
}
</style>