2020-01-31 05:22:19 +13:00
|
|
|
<script>
|
2020-05-31 05:48:20 +12:00
|
|
|
import {buildStyle} from "../../helpers.js"
|
2020-02-03 22:50:30 +13:00
|
|
|
export let value = ""
|
2020-05-31 05:48:20 +12:00
|
|
|
export let textAlign = "left"
|
|
|
|
export let width = "160px"
|
|
|
|
export let placeholder = ""
|
2020-05-08 01:30:04 +12:00
|
|
|
|
2020-05-31 05:48:20 +12:00
|
|
|
let style = buildStyle({ width, textAlign })
|
2020-01-31 05:22:19 +13:00
|
|
|
</script>
|
|
|
|
|
2020-05-31 05:48:20 +12:00
|
|
|
<input type="text" {placeholder} {style} on:change bind:value />
|
2020-02-03 22:50:30 +13:00
|
|
|
|
2020-01-31 05:22:19 +13:00
|
|
|
<style>
|
2020-05-31 05:48:20 +12:00
|
|
|
input {
|
|
|
|
width: 32px;
|
|
|
|
height: 32px;
|
|
|
|
font-size: 12px;
|
|
|
|
font-weight: 700;
|
|
|
|
margin: 0px 0px 0px 1px;
|
2020-05-27 07:44:24 +12:00
|
|
|
color: var(--ink);
|
2020-05-31 05:48:20 +12:00
|
|
|
opacity: 0.7;
|
|
|
|
padding: 0px 4px;
|
2020-01-31 05:22:19 +13:00
|
|
|
box-sizing: border-box;
|
2020-05-31 05:48:20 +12:00
|
|
|
border: 1px solid var(--grey);
|
|
|
|
border-radius: 2px;
|
|
|
|
outline: none;
|
|
|
|
float: right;
|
|
|
|
}
|
|
|
|
|
|
|
|
input::placeholder {
|
|
|
|
text-align: center;
|
2020-01-31 05:22:19 +13:00
|
|
|
}
|
|
|
|
</style>
|