From 431cbf53e2fb988403a52ad1e628b88a070374e2 Mon Sep 17 00:00:00 2001 From: MattIPv4 Date: Mon, 4 May 2020 17:16:25 +0100 Subject: [PATCH] Add nginx global section --- src/nginxconfig/scss/style.scss | 12 +- .../templates/global_sections/index.js | 1 + .../templates/global_sections/nginx.vue | 169 ++++++++++++++++++ 3 files changed, 176 insertions(+), 6 deletions(-) create mode 100644 src/nginxconfig/templates/global_sections/nginx.vue diff --git a/src/nginxconfig/scss/style.scss b/src/nginxconfig/scss/style.scss index 4f513ac..e31c5f2 100644 --- a/src/nginxconfig/scss/style.scss +++ b/src/nginxconfig/scss/style.scss @@ -191,18 +191,18 @@ $highlight: #f2c94c; .button { &.is-static { background: $panel; - border-color: $border; - border-style: solid; - border-width: 1px 0 1px 1px; + border: 1px solid $border; color: $dark-grey; padding: 0 ($margin * 1.5); } } .control { - + .control { - &:not(.is-expanded) { - margin-top: .25rem; + &:not(.is-expanded) { + + .control { + &:not(.is-expanded) { + margin-top: .25rem; + } } } } diff --git a/src/nginxconfig/templates/global_sections/index.js b/src/nginxconfig/templates/global_sections/index.js index c20688e..9cf6c4f 100644 --- a/src/nginxconfig/templates/global_sections/index.js +++ b/src/nginxconfig/templates/global_sections/index.js @@ -4,3 +4,4 @@ export { default as PHP } from './php'; export { default as Python } from './python'; export { default as Performance } from './performance'; export { default as Logging } from './logging'; +export { default as NGINX } from './nginx'; diff --git a/src/nginxconfig/templates/global_sections/nginx.vue b/src/nginxconfig/templates/global_sections/nginx.vue new file mode 100644 index 0000000..2d651c1 --- /dev/null +++ b/src/nginxconfig/templates/global_sections/nginx.vue @@ -0,0 +1,169 @@ + + +