From 795edd225536d406f5cca92f2d4309cfb1694998 Mon Sep 17 00:00:00 2001 From: MattIPv4 Date: Tue, 5 May 2020 15:49:42 +0100 Subject: [PATCH] Move presets into their own panel --- src/nginxconfig/scss/style.scss | 63 +++++++++++------ src/nginxconfig/templates/domain.vue | 67 +++++++++++-------- .../templates/domain_sections/index.js | 1 - .../templates/domain_sections/presets.vue | 50 ++++++++++---- .../util/computed_from_defaults.js | 10 ++- 5 files changed, 129 insertions(+), 62 deletions(-) diff --git a/src/nginxconfig/scss/style.scss b/src/nginxconfig/scss/style.scss index 4281af0..62548bc 100644 --- a/src/nginxconfig/scss/style.scss +++ b/src/nginxconfig/scss/style.scss @@ -82,6 +82,38 @@ $highlight: #f2c94c; margin-top: 0; padding: 1.5rem 0 2rem; + &.presets { + text-align: left; + + .header-group, + .buttons-group { + display: flex; + flex-direction: row; + justify-content: space-between; + } + + .header-group { + h3 { + margin: 0; + } + + .button { + &.is-tiny { + font-size: 20px; + } + } + } + + .message, + .buttons-group { + margin: 1rem 0 0; + } + + .buttons-group { + align-items: center; + } + } + .container { padding: 0 1.5rem; } @@ -91,28 +123,21 @@ $highlight: #f2c94c; padding: 0 1rem; } } - } - .buttons-group { - align-items: center; - display: flex; - flex-direction: row; - justify-content: space-between; - } + .navigation-buttons { + align-items: center; + display: flex; + flex-direction: row; + justify-content: flex-end; + margin: 1.5rem 1.5rem 0; - .navigation-buttons { - align-items: center; - display: flex; - flex-direction: row; - justify-content: flex-end; - margin: 1.5rem 1.5rem 0; + .button { + margin-left: .5rem; - .button { - margin-left: .5rem; - - i + span, - span + i { - margin: 0 0 0 .5rem; + i + span, + span + i { + margin: 0 0 0 .5rem; + } } } } diff --git a/src/nginxconfig/templates/domain.vue b/src/nginxconfig/templates/domain.vue index 96f43cb..1675e76 100644 --- a/src/nginxconfig/templates/domain.vue +++ b/src/nginxconfig/templates/domain.vue @@ -15,47 +15,60 @@ limitations under the License. -->