diff --git a/src/App.vue b/src/App.vue index 407c490c0a30fcaacb17b5aab41ae4dc5cec8eec..518e9dde36c683760f4e63d1467a41c168be066c 100644 --- a/src/App.vue +++ b/src/App.vue @@ -279,42 +279,45 @@ function handleAction(actionType: ActionType) { } } -.gradient-bg { - position: fixed; - top: 0; - left: 0; - width: 100%; - height: 100%; - overflow: hidden; - - @mixin gradient-style($color) { - position: absolute; - width: 100vh; - height: 100vh; - background-image: radial-gradient( - rgba($color, 0.8) 20%, - rgba($color, 0.6) 40%, - rgba($color, 0.4) 60%, - rgba($color, 0.2) 80%, - transparent 100% - ); - border-radius: 50%; - opacity: 0.2; - filter: blur(4rem); - } +@supports (filter: blur(4rem)) or (-webkit-filter: blur(4rem)) or + (-moz-filter: blur(4rem)) { + .gradient-bg { + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; + overflow: hidden; + + @mixin gradient-style($color) { + position: absolute; + width: 100vh; + height: 100vh; + background-image: radial-gradient( + rgba($color, 0.8) 20%, + rgba($color, 0.6) 40%, + rgba($color, 0.4) 60%, + rgba($color, 0.2) 80%, + transparent 100% + ); + border-radius: 50%; + opacity: 0.2; + filter: blur(4rem); + } - .gradient-top { - @include gradient-style($color-secondary); + .gradient-top { + @include gradient-style($color-secondary); - top: -50%; - right: -20%; - } + top: -50%; + right: -20%; + } - .gradient-bottom { - @include gradient-style($color-accent); + .gradient-bottom { + @include gradient-style($color-accent); - bottom: -50%; - left: -20%; + bottom: -50%; + left: -20%; + } } } diff --git a/src/assets/preview/glasses/round.svg b/src/assets/preview/glasses/round.svg index cecbea39032d8799f15cb367f9328a0713c67fd7..d7d436dc0535e692d76eb302e53d69fce5ce26f8 100644 --- a/src/assets/preview/glasses/round.svg +++ b/src/assets/preview/glasses/round.svg @@ -11,25 +11,21 @@ cx="123.5" cy="28" r="26" - stroke="#aaa" + stroke="hsl(211, 19%, 70%)" stroke-width="4" /> - + - \ No newline at end of file + diff --git a/src/components/CodeModal.vue b/src/components/CodeModal.vue index 32dba353ab8e3eb615257529edac78321991125e..51dfc4751780ea16ffafb3f1de26c46ef874ab15 100644 --- a/src/components/CodeModal.vue +++ b/src/components/CodeModal.vue @@ -96,16 +96,23 @@ onUnmounted(() => { padding: 2rem 0; overflow: hidden; transform: translate(-50%, 0); + + @supports (backdrop-filter: blur(0.1rem)) { + backdrop-filter: blur(0.1rem); + } } .code-box { $code-header-height: 4rem; + $code-box-side-padding-normal: 2rem; + $code-box-side-padding-small: 1rem; position: relative; width: 75%; max-width: 800px; height: 100%; margin: 0 auto; - padding: $code-header-height 2rem 2.5rem 2rem; + padding: $code-header-height $code-box-side-padding-normal 2.5rem + $code-box-side-padding-normal; background-color: lighten($color-dark, 3); border-radius: 1rem; transition: width 0.2s; @@ -120,6 +127,12 @@ onUnmounted(() => { @media screen and (max-width: $screen-sm) { width: 90%; + padding: $code-header-height $code-box-side-padding-small 2.5rem + $code-box-side-padding-small; + + .code-header { + padding: 0 $code-box-side-padding-small; + } } .code-header { @@ -130,7 +143,7 @@ onUnmounted(() => { align-items: center; width: 100%; height: $code-header-height; - padding: 0 2rem; + padding: 0 $code-box-side-padding-normal; .title { font-weight: bold; @@ -219,6 +232,11 @@ onUnmounted(() => { font-family: 'Ubuntu Mono', Fallback; line-height: 1.4; + @media screen and (max-width: $screen-sm) { + padding: 0 1rem; + font-size: 1rem; + } + & > .token { &.key { color: #ffcb6b; diff --git a/src/components/Configurator.vue b/src/components/Configurator.vue index 4e122933556c4d2699ba476a49dd9d06d7d5c1c8..a04a6d450ceb23324eb0b6184a6d0b6b028c4b3d 100644 --- a/src/components/Configurator.vue +++ b/src/components/Configurator.vue @@ -290,7 +290,7 @@ function switchWidget(widgetType: WidgetType, widgetShape: WidgetShape) { } & :deep(path) { - stroke: #aaa !important; + stroke: $color-stroke !important; } } } diff --git a/src/styles/variables.scss b/src/styles/variables.scss index 7199e94adb0464e414bd309d1c1f7fcc3177b9da..4ba2ea94a63214937f4449d59f94d74842238083 100644 --- a/src/styles/variables.scss +++ b/src/styles/variables.scss @@ -6,6 +6,7 @@ $color-dark: hsl(216, 14%, 14%); $color-gray: lighten($color-dark, 5); $color-page-bg: darken($color-dark, 5); $color-configurator: $color-dark; +$color-stroke: $color-text; $layout-header-height: 6rem; $layout-sider-width: 20rem;