From 92d2176ffd2a3ccdb7816edacfe5ee5a03a4a8b8 Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Wed, 18 Oct 2023 00:53:21 +0300 Subject: [PATCH] Implemented new config --- assets/styles/layout/_code.scss | 2 +- assets/styles/layout/_config.scss | 46 +++- layouts/AppConfigurator.vue | 409 ++++++++++++++++-------------- layouts/default.vue | 4 +- 4 files changed, 263 insertions(+), 198 deletions(-) diff --git a/assets/styles/layout/_code.scss b/assets/styles/layout/_code.scss index 9d21c5797..96adb8907 100644 --- a/assets/styles/layout/_code.scss +++ b/assets/styles/layout/_code.scss @@ -137,7 +137,7 @@ pre[class*="language-"] { } .layout-light { - &[data-p-theme^="md-"] { + &[data-p-theme^="md"] { pre[class*="language-"] { code { background: var(--surface-900); diff --git a/assets/styles/layout/_config.scss b/assets/styles/layout/_config.scss index c0b281bc5..5b6630729 100644 --- a/assets/styles/layout/_config.scss +++ b/assets/styles/layout/_config.scss @@ -1,15 +1,51 @@ .layout-config { + backdrop-filter: blur(20px); + background-color: var(--mobile-menu-bg); + + .p-selectbutton { + .p-button { + padding: 0.5rem 1rem; + + &:first-child { + border-top-left-radius: 30px; + border-bottom-left-radius: 30px; + } + + &:last-child { + border-top-right-radius: 30px; + border-bottom-right-radius: 30px; + } + } + } + + button { + &:focus { + outline: 0 none; + } + } + .grid { > div { padding: 1rem; } - } - img { - transition: transform .2s; - &:hover { - transform: scale(1.1); + .p-inputswitch { + .p-inputswitch-slider { + border-radius: 30px; + + &:before { + border-radius: 30px; + } } } + + &.layout-light { + background: var(--surface-overlay); + } + + &.layout-dark { + background: var(rgba(0,0,0,.3)); + border: 0 none; + } } \ No newline at end of file diff --git a/layouts/AppConfigurator.vue b/layouts/AppConfigurator.vue index bec2a123b..906e2397c 100755 --- a/layouts/AppConfigurator.vue +++ b/layouts/AppConfigurator.vue @@ -1,217 +1,194 @@