Fix buttons on screen bottom
This commit is contained in:
parent
d837066091
commit
b7058947e1
5 changed files with 23 additions and 22 deletions
|
@ -2,6 +2,7 @@ $blue: #0069CC;
|
|||
$light-blue: #1C7EC9;
|
||||
$lighter-blue: #C3D9FF;
|
||||
$black: #333333;
|
||||
$white: #FFFFFF;
|
||||
$grey: #999999;
|
||||
$light-grey: #F8F8F8;
|
||||
$border-grey: #CCCCCC;
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
@import "colors";
|
||||
@import "constants";
|
||||
|
||||
#champs-editor {
|
||||
.spinner {
|
||||
|
@ -111,10 +112,21 @@
|
|||
}
|
||||
}
|
||||
|
||||
.header,
|
||||
.footer {
|
||||
margin-bottom: 70px;
|
||||
}
|
||||
|
||||
.buttons {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin-top: 30px;
|
||||
margin-bottom: 30px;
|
||||
margin: 0px;
|
||||
position: fixed;
|
||||
bottom: 0px;
|
||||
background-color: $white;
|
||||
max-width: $page-width;
|
||||
width: 100%;
|
||||
border: 1px solid $border-grey;
|
||||
padding: 10px;
|
||||
border-top-left-radius: 5px;
|
||||
border-top-right-radius: 5px;
|
||||
}
|
||||
|
|
|
@ -1,18 +1,5 @@
|
|||
<template>
|
||||
<div class="champs-editor">
|
||||
<div v-if="state.typesDeChamp.length > 3" class="header">
|
||||
<button class="button" v-scroll-to="'.footer'" @click.prevent="addChamp">
|
||||
<template v-if="state.isAnnotation">
|
||||
Ajouter une annotation
|
||||
</template>
|
||||
<template v-else>
|
||||
Ajouter un champ
|
||||
</template>
|
||||
</button>
|
||||
|
||||
<button class="button primary" @click.prevent="save">Enregistrer</button>
|
||||
</div>
|
||||
|
||||
<Draggable :list="state.typesDeChamp" :options="{handle:'.handle'}">
|
||||
<DraggableItem
|
||||
v-for="(item, index) in state.typesDeChamp"
|
||||
|
@ -22,7 +9,8 @@
|
|||
:key="item.id" />
|
||||
</Draggable>
|
||||
|
||||
<div class="footer">
|
||||
<div class="footer"></div>
|
||||
<div class="buttons">
|
||||
<button class="button" v-scroll-to="'.footer'" @click.prevent="addChamp">
|
||||
<template v-if="state.isAnnotation">
|
||||
Ajouter une annotation
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue