From 062fbf84df4605aabda30b29ba4759a6d2ed110c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Fri, 1 Nov 2019 19:31:15 +0100 Subject: [PATCH] styling & improvements --- src/App.vue | 17 +++++ src/components/Player.vue | 48 ++++++++----- src/components/Sidebar.vue | 135 ++++++++++++++++++++++--------------- 3 files changed, 128 insertions(+), 72 deletions(-) diff --git a/src/App.vue b/src/App.vue index d0972a3..5dc5204 100644 --- a/src/App.vue +++ b/src/App.vue @@ -54,8 +54,25 @@ html, body, #app { font-size: .95em; } +input, button { + font-family: Consolas, Inconsolata, monospace, serif; +} + input { font-size: .95em; + padding: 4px 0; + background: white; + border: 1px solid black; +} + +input[type="file"] { + border: none; +} + +button { + background: white; + border: 1px solid black; + box-shadow: 2px 2px #272727; } #menu-wrap, #canvas-wrap { diff --git a/src/components/Player.vue b/src/components/Player.vue index c9a8433..be038ff 100644 --- a/src/components/Player.vue +++ b/src/components/Player.vue @@ -2,18 +2,18 @@
- +
-
+
-
-
+
+
@@ -23,6 +23,8 @@
+
+
@@ -252,21 +254,31 @@ export default { text-align: center; } -.fullscreen { - position: absolute; - top: 0; - left: 0; - background-color: rgba(1, 1, 1, .9); - width: 100%; - height: 100%; -} - -.fullscreen-controls { - position: absolute; - bottom: 0; -} - #zoom { width: 3em; + text-align: center; +} + +.player-container { + padding: 2em 0 1em 0; +} + +.controls, .options { + display: flex; + flex-direction: column; +} + +.controls button { + width: 12em; + margin: .25em; +} + +.options { + padding-top: 1em; +} + +.options div { + display: flex; + justify-content: space-between; } diff --git a/src/components/Sidebar.vue b/src/components/Sidebar.vue index b6dd7ab..d1419e3 100644 --- a/src/components/Sidebar.vue +++ b/src/components/Sidebar.vue @@ -1,54 +1,63 @@ @@ -160,12 +169,6 @@ export default { return "~" + seconds + " seconds" + (mins > 0 ? (" (" + mins + "m " + secs + "s)") : ""); } }, - noXremainder: function () { - return this.imageSize[0] % this.guideSizeX === 0; - }, - noYremainder: function () { - return this.imageSize[1] % this.guideSizeY === 0; - }, }, methods: { loadImage (e) { @@ -193,17 +196,41 @@ export default {