49 lines
No EOL
613 B
Vue
49 lines
No EOL
613 B
Vue
<template>
|
|
|
|
<input
|
|
id="textInput"
|
|
type="text"
|
|
/>
|
|
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import { defineComponent } from "vue";
|
|
|
|
export default defineComponent({
|
|
name: "TextInput",
|
|
|
|
})
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
#textInput {
|
|
position: absolute;
|
|
|
|
opacity: 0;
|
|
|
|
min-width: 150px;
|
|
height: 16px;
|
|
|
|
border-radius: 18px;
|
|
|
|
padding: 10px;
|
|
margin-right: 10px;
|
|
margin-left: 10px;
|
|
|
|
outline: none;
|
|
border: none;
|
|
pointer-events: none;
|
|
|
|
background-color: white;
|
|
|
|
z-index: -1;
|
|
|
|
box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.15);
|
|
|
|
transform: translateX(50px) scale(0.3);
|
|
|
|
}
|
|
|
|
</style> |