From b28251dc9eb2271c2470a496ca8020507549349f Mon Sep 17 00:00:00 2001 From: Sabe Jones Date: Wed, 8 May 2024 20:27:27 -0500 Subject: [PATCH] WIP(shops): more layouts and fixes --- website/client/src/assets/scss/icon.scss | 2 +- website/client/src/assets/scss/item.scss | 12 +- .../client/src/assets/scss/typography.scss | 3 +- .../avatarModal/customize-banner.vue | 4 +- .../avatarModal/customize-options.vue | 101 +-------------- .../client/src/components/creatorIntro.vue | 115 +++++++++--------- .../components/shops/timeTravelers/index.vue | 11 +- website/client/src/components/ui/closeX.vue | 3 +- .../client/src/mixins/avatarEditUtilities.js | 4 +- .../common/script/content/appearance/sets.js | 1 + .../common/script/content/appearance/shirt.js | 2 +- 11 files changed, 88 insertions(+), 170 deletions(-) diff --git a/website/client/src/assets/scss/icon.scss b/website/client/src/assets/scss/icon.scss index 3ab036333a..ad57951ac6 100644 --- a/website/client/src/assets/scss/icon.scss +++ b/website/client/src/assets/scss/icon.scss @@ -12,7 +12,7 @@ } &.color { - svg path { + svg path, svg polygon { fill: currentColor; } } diff --git a/website/client/src/assets/scss/item.scss b/website/client/src/assets/scss/item.scss index c1752d019e..c674db0554 100644 --- a/website/client/src/assets/scss/item.scss +++ b/website/client/src/assets/scss/item.scss @@ -80,9 +80,15 @@ } } -.flat .item { - box-shadow: none; - border: none; +.flat { + .item { + box-shadow: none; + border: none; + } + + .item-wrapper:hover { + box-shadow: none; + } } .bordered-item .item { diff --git a/website/client/src/assets/scss/typography.scss b/website/client/src/assets/scss/typography.scss index 970fd41737..b80ce6da3b 100644 --- a/website/client/src/assets/scss/typography.scss +++ b/website/client/src/assets/scss/typography.scss @@ -60,8 +60,9 @@ h1 { h2 { font-size: 20px; - line-height: 1.4; + line-height: 28px; margin-bottom: 16px; + color: $purple-300; } h3, h4 { diff --git a/website/client/src/components/avatarModal/customize-banner.vue b/website/client/src/components/avatarModal/customize-banner.vue index c74bb7cbae..a0bb5e26df 100644 --- a/website/client/src/components/avatarModal/customize-banner.vue +++ b/website/client/src/components/avatarModal/customize-banner.vue @@ -31,8 +31,8 @@ .bottom-banner { background: linear-gradient(114.26deg, $purple-300 0%, $purple-200 100%); - border-bottom-left-radius: 5px; - border-bottom-right-radius: 5px; + border-bottom-left-radius: 8px; + border-bottom-right-radius: 8px; color: $white; height: 80px; line-height: 24px; diff --git a/website/client/src/components/avatarModal/customize-options.vue b/website/client/src/components/avatarModal/customize-options.vue index 0e56c1b08d..aa2741f92c 100644 --- a/website/client/src/components/avatarModal/customize-options.vue +++ b/website/client/src/components/avatarModal/customize-options.vue @@ -7,7 +7,6 @@ :key="option.key" class="outer-option-background" :class="{ - locked: option.gemLocked || option.goldLocked, premium: Boolean(option.gem), active: option.active || currentValue === option.key, none: option.none, @@ -117,7 +116,7 @@ export default { &:not(.locked):not(.active) { .option:hover { - background-color: rgba(213, 200, 255, .32); + background-color: rgba($purple-300, .25); } } @@ -183,9 +182,6 @@ export default { margin-top: 0; margin-left: 0; - &.color-bangs { - margin-top: 3px; - } &.skin { margin-top: -4px; margin-left: -4px; @@ -204,14 +200,14 @@ export default { margin-top: -5px; } } - &.color, &.bangs { - margin-top: 4px; - margin-left: -3px; + &.color, &.bangs, &.beard { + background-position-x: -5px; + background-position-y: -12px; } &.hair.base { - margin-top: 0px; - margin-left: -5px; + background-position-x: -6px; + background-position-y: -4px; } &.headAccessory { @@ -225,89 +221,4 @@ export default { } } } - - .text-center { - .gem-lock, .gold-lock { - display: inline-block; - margin: 0 auto 8px; - vertical-align: bottom; - } - } - - .gem-lock, .gold-lock { - .svg-icon { - width: 16px; - } - - span { - font-weight: bold; - margin-left: .5em; - } - - .svg-icon, span { - display: inline-block; - vertical-align: bottom; - } - } - - .gem-lock span { - color: $green-10 - } - - .purchase-set { - background: #fff; - padding: 0.5em; - border-radius: 0 0 2px 2px; - box-shadow: 0 2px 2px 0 rgba(26, 24, 29, 0.16), 0 1px 4px 0 rgba(26, 24, 29, 0.12); - cursor: pointer; - - span { - font-weight: bold; - font-size: 12px; - } - - span.price { - color: #24cc8f; - } - - .gem, .coin { - width: 16px; - } - - &.single { - width: 141px; - } - - width: 100%; - - span { - font-size: 14px; - } - - .gem, .coin { - width: 20px; - margin: 0 .5em; - display: inline-block; - vertical-align: bottom; - } - } - - .background-set { - background-color: #edecee; - border-radius: 2px; - - padding-top: 12px; - margin-left: 12px; - margin-right: 12px; - margin-bottom: 12px; - - width: calc(100% - 24px); - - padding-left: 0; - padding-right: 0; - - max-width: unset; // disable col12 styling - flex: unset; - } - diff --git a/website/client/src/components/creatorIntro.vue b/website/client/src/components/creatorIntro.vue index 365bce4f36..9520f0f275 100644 --- a/website/client/src/components/creatorIntro.vue +++ b/website/client/src/components/creatorIntro.vue @@ -9,12 +9,10 @@ :no-close-on-esc="!editing" :no-close-on-backdrop="!editing" > - + @close="close()" + />
+

+ {{ $t('editAvatar')}} +

-
+
+ class="user-creation-bg mt-5" + > + +
-
+