From 0d9f1871b0ec39b86cfb7bbbc7f9411aa3f3b651 Mon Sep 17 00:00:00 2001 From: Adam Procter <adamprocter@researchnot.es> Date: Thu, 26 Mar 2020 17:49:53 +0000 Subject: [PATCH] readMode css tweaks Just some style tweaks to make it less janky --- app/src/components/NodesLayer.vue | 42 +++++++++++++++++++++---------- 1 file changed, 29 insertions(+), 13 deletions(-) diff --git a/app/src/components/NodesLayer.vue b/app/src/components/NodesLayer.vue index fb0a1d5..9fe4d21 100644 --- a/app/src/components/NodesLayer.vue +++ b/app/src/components/NodesLayer.vue @@ -31,6 +31,7 @@ :id="nodeid" class="drag-cancel" ref="nodetext" + placeholder="Idea goes here!" ></textarea> </div> </div> @@ -43,9 +44,11 @@ <p class="allemoji" v-if="nodeid == emojis.node_id">{{ emojis.emoji_text }}</p> </div> - <p>markdown supported</p> - <BaseButton buttonClass="danger" @click="deleteFlag()">Delete</BaseButton> - <BaseButton class="read" buttonClass="action" @click="readFlag()">{{ mode }}</BaseButton> + <p class="info">*markdown supported</p> + <div class="btn-row"> + <BaseButton buttonClass="danger" @click="deleteFlag()">Delete</BaseButton> + <BaseButton class="read" buttonClass="action" @click="readFlag()">{{ mode }}</BaseButton> + </div> </form> </vue-draggable-resizable> </div> @@ -197,9 +200,29 @@ export default { position: relative; } -.read { - /* FIXME: make this a nice little CSS grid */ - float: right; +.info { + font-size: 0.8em; +} + +textarea { + width: 100%; + height: 125px; + resize: none; + box-sizing: border-box; + font-family: 'Inter var', Helvetica, sans-serif; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + outline: #cab6ff; +} + +.btn-row { + position: relative; + margin-bottom: 5px; + display: flex; + justify-content: center; + flex-wrap: wrap; + padding: 0 15px; + border-radius: 4px; } img { @@ -208,11 +231,4 @@ img { /* .draggable { transform: scale(0.7); } */ - -textarea { - width: 100%; - height: 120px; - resize: none; - box-sizing: border-box; -} </style> -- GitLab