Skip to content

Commit

Permalink
add section
Browse files Browse the repository at this point in the history
Signed-off-by: Greta Doci <gretadoci@gmail.com>
  • Loading branch information
GretaD committed Oct 22, 2019
1 parent dfe9691 commit 9f1aeb7
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions src/components/SettingsCheckbox/SettingsCheckbox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,14 @@
-->

<template>
<p>
<input :id="id" type="checkbox" class="checkbox"
<div class="section">
<p>
<input :id="id" type="checkbox" class="checkbox">
:checked="inputVal" :disabled="disabled" @change="$emit('input', $event.target.checked)">
<label :for="id">{{ label }}</label><br>
<em v-if="hint !== ''">{{ hint }}</em>
</p>
<label :for="id">{{ label }}</label><br>
<em v-if="hint !== ''">{{ hint }}</em>
</p>
</div>
</template>

<script>
Expand Down Expand Up @@ -73,9 +75,15 @@ export default {
}
</script>

<style scoped>
p {
margin-bottom: 15px;
}
<style lang="scss" scoped>
p {
margin-bottom: 15px;
}
.section {
margin-bottom: auto;
display: block;
padding: 30px;
}
</style>

0 comments on commit 9f1aeb7

Please sign in to comment.