From 6cdd0739f5f3bbfbde74307a384990d0f1fb54ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Chauveau?= Date: Tue, 5 May 2020 18:33:48 +0200 Subject: [PATCH] =?UTF-8?q?bo=C3=AEte=20de=20dialogue=20des=20m=C3=A9tadat?= =?UTF-8?q?as=20+=20css=20boutons?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/_vars.scss | 1 + src/assets/menupara.scss | 5 +- src/components/Dedediteur.vue | 52 ++++++++++---- src/components/MetaEditor.vue | 126 ++++++++++++++++++++++++++++++++++ 4 files changed, 169 insertions(+), 15 deletions(-) create mode 100644 src/components/MetaEditor.vue diff --git a/src/assets/_vars.scss b/src/assets/_vars.scss index 3c4813e..74286d9 100644 --- a/src/assets/_vars.scss +++ b/src/assets/_vars.scss @@ -3,3 +3,4 @@ $txt-color: black; $bg-color: white; $button-border: 2px solid $txt-color; $button-border-small: 1px solid $txt-color; +$button-width :42px; diff --git a/src/assets/menupara.scss b/src/assets/menupara.scss index cda6594..c36a244 100644 --- a/src/assets/menupara.scss +++ b/src/assets/menupara.scss @@ -1,7 +1,6 @@ @import '_vars.scss'; -$button-width: 42px; .menubar { @@ -11,8 +10,8 @@ $button-width: 42px; display: flex; flex-direction: column; - top: 100px; - right: 25px; + top: 150px; + right: $button-width; button { cursor: pointer; diff --git a/src/components/Dedediteur.vue b/src/components/Dedediteur.vue index 51c1fa2..281d9b9 100644 --- a/src/components/Dedediteur.vue +++ b/src/components/Dedediteur.vue @@ -1,6 +1,8 @@ @@ -150,6 +157,7 @@ Link } from 'tiptap-extensions' + import MetaEditor from './MetaEditor'; import Environment from "../environments/Environement" import CustomStyle from "./extensions/CustomStyle" @@ -159,7 +167,8 @@ components: { EditorContent, EditorMenuBar, - EditorMenuBubble + EditorMenuBubble, + MetaEditor }, data() { return { @@ -167,6 +176,7 @@ nbParagraphs: 0, nbSentences : 0, environmentName: 'ar', + isMetaEditorVisible: false, environment : new Environment(), keepInBounds: true, editor: new Editor({ @@ -296,6 +306,7 @@ @import '../assets/menupara'; @import '../assets/dedediteur.css'; + .bottom-bar{ position: fixed; width: 100vw; @@ -330,17 +341,34 @@ #file_actions { /*border-bottom : 1px solid #2c3e50;*/ - padding: 12px; position: fixed; - top: 10px; - left: 10px; + top: $button-width; + left: $button-width; z-index: 200; + display: flex; + flex-direction: column; + } + + #meta_action { + position: fixed; + top: $button-width; + right: $button-width; + + button{ + width: $button-width; + height: $button-width; + background-color: $txt-color; + border-radius: calc(#{$button-width} /2); + border: none; + cursor: pointer; + } + } - #output_button, #input_button, #pdf_button { + .square_btn { border: 1px solid black; - width: 24px; - height: 24px; + width: $button-width; + height: $button-width; cursor: pointer; outline:none; &:focus { @@ -354,11 +382,11 @@ #output_button { background-color: black; - margin-left: 12px; + margin-top: $button-width; } #pdf_button{ background-color: red; - margin-left: 12px; + margin-top: $button-width } /* editor*/ diff --git a/src/components/MetaEditor.vue b/src/components/MetaEditor.vue new file mode 100644 index 0000000..b5426a2 --- /dev/null +++ b/src/components/MetaEditor.vue @@ -0,0 +1,126 @@ + + + + +