2
0
mirror of https://github.com/tenrok/vue-form-wizard.git synced 2026-06-20 02:10:32 +03:00

#15 Trigger back only on back button

Add media query for mobile < 350px
This commit is contained in:
cristijora
2017-06-04 11:54:58 +03:00
parent a065f91d53
commit 17cbb17b5d
4 changed files with 31 additions and 13 deletions
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+28 -10
View File
@@ -88,17 +88,35 @@
} }
} }
} }
.clearfix::after {
.wizard-card-footer{ content: "";
clear: both;
display: table;
}
.wizard-card-footer {
padding: 0 20px; padding: 0 20px;
display: flex; .wizard-footer-left {
flex-direction: row; float: left;
justify-content: flex-end; }
flex-wrap:wrap; .wizard-footer-right {
flex-flow: row wrap; float: right;
.wizard-footer-left{ }
flex:1; }
justify-self:flex-start; @media screen and (max-width: 350px) {
.wizard-card-footer {
display:flex;
justify-content: center;
flex-direction: column;
.wizard-footer-left,
.wizard-footer-right {
float: none;
flex:1;
display: flex;
justify-content:center;
}
.wizard-footer-right button{
margin-top:10px;
}
} }
} }
} }
+1 -1
View File
@@ -45,7 +45,7 @@
</div> </div>
</div> </div>
<div class="wizard-card-footer" v-if="!hideButtons"> <div class="wizard-card-footer clearfix" v-if="!hideButtons">
<template> <template>
<span @click="prevTab" v-if="displayPrevButton" class="wizard-footer-left"> <span @click="prevTab" v-if="displayPrevButton" class="wizard-footer-left">
<slot name="prev"> <slot name="prev">