Skip to content

Commit

Permalink
fix: responsive form
Browse files Browse the repository at this point in the history
  • Loading branch information
14nrv committed Nov 10, 2018
1 parent c67331e commit d283c66
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/components/Form/Form.vue
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export default {
<style lang="stylus">
$defaultMargin = .75rem
$formWidth = 28rem
$tablet_bp = 769px
$bp_mobile = 496px
form
max-width $formWidth
Expand All @@ -169,9 +169,17 @@ export default {
margin-bottom $defaultMargin
.field-body
display block
@media (min-width: $bp_mobile)
display flex
justify-content space-between
.field
@media (min-width: $tablet_bp)
width ($formWidth / 2 - $defaultMargin)
width 100%
@media (min-width: $bp_mobile)
width ($formWidth / 2 - $defaultMargin / 2)
.form-footer
.button:not(:last-child)
Expand Down

0 comments on commit d283c66

Please sign in to comment.