diff options
| author | Henry Jameson <me@hjkos.com> | 2018-10-07 22:03:34 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2018-10-07 22:03:34 +0300 |
| commit | 4d77b0c86bbd711e76e8ed23b6b227332bbea3cf (patch) | |
| tree | 4a98983babaad3d2e35527bf09465e9daeff0ed5 /src/components/opacity_input/opacity_input.vue | |
| parent | 96804d42f0f6aa6af85295933af6fd267b19e473 (diff) | |
Transparency works without exploding now. All nice.
Diffstat (limited to 'src/components/opacity_input/opacity_input.vue')
| -rw-r--r-- | src/components/opacity_input/opacity_input.vue | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/src/components/opacity_input/opacity_input.vue b/src/components/opacity_input/opacity_input.vue index cfe6de21..09972868 100644 --- a/src/components/opacity_input/opacity_input.vue +++ b/src/components/opacity_input/opacity_input.vue @@ -22,6 +22,16 @@ max="1" min="0" step=".05"> + <input + :id="name" + class="input-number" + type="number" + :value="value || fallback" + :disabled="!present" + @input="$emit('input', $event.target.value)" + max="1" + min="0" + step=".05"> </div> </template> @@ -64,12 +74,17 @@ export default { align-self: center; background: none; border: none; - padding: 0; margin: 0; height: auto; box-shadow: none; - min-width: 9em; + min-width: 7em; flex: 1; } + .input-number { + align-self: center; + margin: 0; + min-width: 4em; + flex: 0; + } } </style> |
