From 4ddfdb84acbbdf2eaf3e150810d1fe04317e5cd4 Mon Sep 17 00:00:00 2001 From: CuriousMagpie Date: Thu, 17 Nov 2022 14:57:58 -0500 Subject: [PATCH 01/87] get most of the right parts in the same place --- .../components/shared/number-increment.vue | 119 ++++++++++++++++++ 1 file changed, 119 insertions(+) create mode 100644 website/client/src/components/shared/number-increment.vue diff --git a/website/client/src/components/shared/number-increment.vue b/website/client/src/components/shared/number-increment.vue new file mode 100644 index 0000000000..8596d204bc --- /dev/null +++ b/website/client/src/components/shared/number-increment.vue @@ -0,0 +1,119 @@ + + + + + From 4f5a720c30ce42d8d6fd7e1a4b239ad396173eb3 Mon Sep 17 00:00:00 2001 From: CuriousMagpie Date: Fri, 18 Nov 2022 15:27:18 -0500 Subject: [PATCH 02/87] how to make component show up? --- ...mber-increment.vue => numberIncrement.vue} | 20 +++++++++---------- .../src/components/shops/market/sellModal.vue | 2 ++ 2 files changed, 12 insertions(+), 10 deletions(-) rename website/client/src/components/shared/{number-increment.vue => numberIncrement.vue} (87%) diff --git a/website/client/src/components/shared/number-increment.vue b/website/client/src/components/shared/numberIncrement.vue similarity index 87% rename from website/client/src/components/shared/number-increment.vue rename to website/client/src/components/shared/numberIncrement.vue index 8596d204bc..91ad8670e0 100644 --- a/website/client/src/components/shared/number-increment.vue +++ b/website/client/src/components/shared/numberIncrement.vue @@ -2,9 +2,9 @@
Date: Tue, 22 Nov 2022 15:28:48 -0500 Subject: [PATCH 03/87] add conditionals, add component to buy & sell modals --- .../src/components/shared/numberIncrement.vue | 115 ++++++++++++++++-- .../client/src/components/shops/buyModal.vue | 5 + .../src/components/shops/market/sellModal.vue | 3 + 3 files changed, 114 insertions(+), 9 deletions(-) diff --git a/website/client/src/components/shared/numberIncrement.vue b/website/client/src/components/shared/numberIncrement.vue index 91ad8670e0..594728f523 100644 --- a/website/client/src/components/shared/numberIncrement.vue +++ b/website/client/src/components/shared/numberIncrement.vue @@ -1,37 +1,91 @@ @@ -112,12 +114,12 @@ .content { text-align: center; - } .title { color: $gray-10; font-size: 1.25rem; + margin-top: 28px; } .inner-content { @@ -141,6 +143,10 @@ z-index: 1; } + .item-wrapper { + margin-top: -10px; + } + .item { width: 141px; height: 147px; @@ -201,6 +207,7 @@ .item-cost { padding-bottom: 16px; + padding-top: 8px; } .cost { @@ -220,28 +227,36 @@ } } + .total-row { + padding-top: 4px; + padding-bottom: 4px; + } + .total { - font-size: 0.825rem; + font-size: 0.875rem; line-height: 1.71; font-weight: bold; &.gold { - color: $gold-color; + color: $yellow-5; + margin-left: -4px; } } .total-text { + color: $gray-50; font-size: 0.825rem; - line-height: 1.71; font-weight: bold; + line-height: 1.71; height: 24px; width: 37px; padding-right: 4px; + // margin-left: -4px; } button.btn.btn-primary { - margin-top: 24px; - margin-bottom: 24px; + margin-top: 16px; + margin-bottom: 0px; } .balance { @@ -263,6 +278,7 @@ .how-many-to-sell { margin-bottom: 16px; + margin-top: 8px; display: block; font-size: 0.875rem; font-weight: bold; From 09a0d2b3b88a3251b87fd614a6d687d688adcfde Mon Sep 17 00:00:00 2001 From: CuriousMagpie Date: Thu, 23 Mar 2023 16:01:33 -0400 Subject: [PATCH 28/87] change spacing on buyModal --- .../client/src/components/shops/buyModal.vue | 82 +++++++++++-------- website/common/locales/en/generic.json | 2 +- 2 files changed, 50 insertions(+), 34 deletions(-) diff --git a/website/client/src/components/shops/buyModal.vue b/website/client/src/components/shops/buyModal.vue index 7efa2fdf6d..fe78766168 100644 --- a/website/client/src/components/shops/buyModal.vue +++ b/website/client/src/components/shops/buyModal.vue @@ -66,7 +66,7 @@ :class="totalOwned" > - {{ $t('owned') }}: {{ totalOwned }} + {{ $t('owned') }}: {{ totalOwned }}

{{ itemText }} @@ -119,12 +119,13 @@ :hidden="attemptingToPurchaseMoreGemsThanAreLeft" >
{{ $t('sendTotal') }} @@ -281,17 +282,22 @@ .owned { font-size: 0.75rem; font-weight: bold; - line-height: 1.33; + height: 32px; + line-height: 1.71; background-color: $gray-600; padding: 8px 41px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; display: block; width: 141px; - margin-left: 154px; + margin-left: 153px; margin-top: -36px; position: relative; z-index: 1; + + .user-amount { + font-weight: normal !important; + } } .item { @@ -304,24 +310,27 @@ cursor: default; } - .title { - color: $gray-10; - font-size: 1.25rem; - } - .item-content { transform: scale(1.45, 1.45); - top: -16px; + top: -25.67px; + left: 1px; + } + + .title { + height: 28px; + color: $gray-10; + font-size: 1.25rem; + margin-top: 25px; + margin-bottom: 0px; } .item-notes { + height: 48px; + margin-top: 8px; padding-left: 48.5px; padding-right: 48.5px; - } - - .attributes-group { - margin: 24px; - border-radius: 4px; + line-height: 1.71; + font-size: 0.875; } .content { @@ -334,7 +343,7 @@ } .inner-content { - margin: 33px auto auto; + margin: 32px auto auto; } .btn-primary { @@ -342,10 +351,15 @@ } .purchase-amount { - margin-top: 24px; + margin-top: 0px; .how-many-to-buy { - margin-bottom: 16px; + margin-top: 24px; + height: 24px; + } + + .number-increment { + margin-top: 16px; } .box { @@ -407,48 +421,50 @@ } .item-cost { - padding-bottom: 16px; + position: relative; + margin-top: 20px; + left: 2px; } .cost { height: 40px; font-size: 1.25rem; font-weight: bold; - line-height: 1.4; vertical-align: middle; + padding: 8px 20px 8px 20px; &.gems { color: $green-10; - border-radius: 20px; - padding: 8px 20px 8px 20px; - margin-top: 16px; - margin-bottom: 16px; background-color: rgba(36, 204, 143, 0.15); + line-height: 1.4; + margin: 0 0 0 4px; + border-radius: 20px; } &.gold { color: $yellow-5; + background-color: rgba(255, 190, 93, 0.15); border-radius: 20px; padding: 8px 20px 8px 20px; margin-top: 16px; margin-bottom: 16px; - background-color: rgba(255, 190, 93, 0.15); } &.hourglasses { color: $hourglass-color; + background-color: rgba(41, 149, 205, 0.15); border-radius: 20px; padding: 8px 20px 8px 20px; margin-top: 16px; margin-bottom: 16px; - background-color: rgba(41, 149, 205, 0.15); } } .total { - font-size: 0.825rem; - line-height: 1.71; font-weight: bold; + font-size: 0.875rem; + height: 24px; + line-height: 1.71; &.gems { color: $green-10; @@ -464,10 +480,10 @@ } .total-text { - font-size: 0.825rem; - line-height: 1.71; font-weight: bold; + font-size: 0.875rem; height: 24px; + line-height: 1.71; width: 37px; padding-right: 4px; @@ -505,9 +521,9 @@ margin: auto -1rem -1rem; } - .pt-015 { - padding-top: 0.15rem; - } + // .pt-015 { + // padding-top: 0.15rem; + // } } .gems-left { diff --git a/website/common/locales/en/generic.json b/website/common/locales/en/generic.json index 67b27d5633..4b0a4c26b1 100644 --- a/website/common/locales/en/generic.json +++ b/website/common/locales/en/generic.json @@ -208,7 +208,7 @@ "userSentMessage": "<%- user %> sent you a message", "letsgo": "Let's Go!", "selected": "Selected", - "howManyToBuy": "How many would you like to buy?", + "howManyToBuy": "How many would you like to purchase?", "contactForm": "Contact the Moderation Team", "loadEarlierMessages": "Load Earlier Messages", "askQuestion": "Ask a Question", From 3c7ca560898ad63922995b1b9a7f0d81007683a2 Mon Sep 17 00:00:00 2001 From: CuriousMagpie Date: Mon, 27 Mar 2023 15:58:56 -0400 Subject: [PATCH 29/87] buyModal styling --- .../src/components/shared/numberIncrement.vue | 2 +- .../client/src/components/shops/buyModal.vue | 86 +++++++++++++------ 2 files changed, 59 insertions(+), 29 deletions(-) diff --git a/website/client/src/components/shared/numberIncrement.vue b/website/client/src/components/shared/numberIncrement.vue index b2fd5f989c..34b9b966df 100644 --- a/website/client/src/components/shared/numberIncrement.vue +++ b/website/client/src/components/shared/numberIncrement.vue @@ -38,7 +38,7 @@ @import '~@/assets/scss/colors.scss'; .number-increment { - padding-bottom: 12px; + padding-bottom: 0px; } .alignment { diff --git a/website/client/src/components/shops/buyModal.vue b/website/client/src/components/shops/buyModal.vue index fe78766168..6743f16759 100644 --- a/website/client/src/components/shops/buyModal.vue +++ b/website/client/src/components/shops/buyModal.vue @@ -65,8 +65,7 @@ class="owned" :class="totalOwned" > - - {{ $t('owned') }}: {{ totalOwned }} + {{ $t('owned') }}: {{ totalOwned }}

{{ itemText }} @@ -122,15 +121,18 @@ class="number-increment" @updateQuantity="selectedAmountToBuy = $event" /> -
+
{{ $t('sendTotal') }} {{ item.value * selectedAmountToBuy }}
@@ -224,9 +226,9 @@ slot="modal-footer" class="clearfix" > - {{ $t('yourBalance') }} + {{ $t('yourBalance') }} @@ -242,9 +244,9 @@ @include centeredModal(); .modal-body { - // padding-bottom: 0px; padding-left: 0px; padding-right: 0px; + padding-bottom: 0px; } .modal-footer { @@ -257,7 +259,7 @@ padding: 16px 24px; align-content: center; - .balance { + .user-balance { width: 150px; height: 16px; font-size: 0.75rem; @@ -266,6 +268,12 @@ color: $gray-100; margin-bottom: 16px; margin-top: -4px; + margin-left: -4px; + } + + .currency-totals { + margin-right: -8px; + float: right; } } @@ -274,6 +282,11 @@ box-sizing: border-box; } + .badge-dialog { + left: -8px; + top: -8px; + } + .avatar { cursor: default; margin: 0 auto; @@ -283,14 +296,16 @@ font-size: 0.75rem; font-weight: bold; height: 32px; + width: 141px; + margin-left: 153px; line-height: 1.71; background-color: $gray-600; padding: 8px 41px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; display: block; - width: 141px; - margin-left: 153px; + justify-content: center; + text-align: center; margin-top: -36px; position: relative; z-index: 1; @@ -321,7 +336,6 @@ color: $gray-10; font-size: 1.25rem; margin-top: 25px; - margin-bottom: 0px; } .item-notes { @@ -423,7 +437,13 @@ .item-cost { position: relative; margin-top: 20px; - left: 2px; + } + + .attributes-group { + margin: 24px; + border-radius: 4px; + line-height: 1.71; + font-size: 0.875; } .cost { @@ -437,34 +457,31 @@ color: $green-10; background-color: rgba(36, 204, 143, 0.15); line-height: 1.4; - margin: 0 0 0 4px; + margin: 0 0 0 -4px; border-radius: 20px; } &.gold { color: $yellow-5; background-color: rgba(255, 190, 93, 0.15); + line-height: 1.4; + margin: 0 0 0 -4px; border-radius: 20px; - padding: 8px 20px 8px 20px; - margin-top: 16px; - margin-bottom: 16px; } &.hourglasses { color: $hourglass-color; background-color: rgba(41, 149, 205, 0.15); + line-height: 1.4; + margin: 0 0 0 -4px; border-radius: 20px; - padding: 8px 20px 8px 20px; - margin-top: 16px; - margin-bottom: 16px; } } .total { font-weight: bold; font-size: 0.875rem; - height: 24px; - line-height: 1.71; + margin-top:16px; &.gems { color: $green-10; @@ -479,23 +496,36 @@ } } - .total-text { + .total-text { + color: $gray-50; font-weight: bold; font-size: 0.875rem; height: 24px; line-height: 1.71; - width: 37px; padding-right: 4px; + &.gems { + color: $green-10; + } + + &.gold { + color: $yellow-5; + } + + &.hourglasses { + color: $hourglass-color; + } + } + button.btn.btn-primary { - margin-top: 24px; - margin-bottom: 24px; - min-width: 6rem; + margin-top: 14px; + padding: 4px 16px; + height: 32px; &:focus { border: 2px solid black; } - } + .notEnough { pointer-events: none; From 7e9506391fbbe84672bf556b70d275c70dbd30f7 Mon Sep 17 00:00:00 2001 From: CuriousMagpie Date: Mon, 27 Mar 2023 16:13:06 -0400 Subject: [PATCH 30/87] more buyModal styling --- .../client/src/components/shops/buyModal.vue | 21 +++++++++++-------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/website/client/src/components/shops/buyModal.vue b/website/client/src/components/shops/buyModal.vue index 6743f16759..086b556a2a 100644 --- a/website/client/src/components/shops/buyModal.vue +++ b/website/client/src/components/shops/buyModal.vue @@ -60,13 +60,14 @@ :show-popover="false" /> - - {{ $t('owned') }}: {{ totalOwned }} - + + {{ $t('owned') }}: {{ totalOwned }} +

{{ itemText }}

@@ -293,23 +294,25 @@ } .owned { - font-size: 0.75rem; - font-weight: bold; height: 32px; width: 141px; + margin-top: -36px; margin-left: 153px; - line-height: 1.71; + padding-top: 6px; background-color: $gray-600; - padding: 8px 41px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; display: block; - justify-content: center; text-align: center; - margin-top: -36px; position: relative; z-index: 1; + .owned-text { + font-size: 0.75rem; + font-weight: bold; + line-height: 1.71; + } + .user-amount { font-weight: normal !important; } From c1a0f8a8d162ace682ab7e79abde39f9f6fb4c7b Mon Sep 17 00:00:00 2001 From: CuriousMagpie Date: Tue, 28 Mar 2023 15:07:49 -0400 Subject: [PATCH 31/87] style: buyModal, sellModal, buyQuestModal, questRewards --- .../client/src/components/shops/buyModal.vue | 114 ++++++------ .../src/components/shops/market/sellModal.vue | 174 +++++++++++------- .../components/shops/quests/buyQuestModal.vue | 158 ++++++++++------ .../components/shops/quests/questRewards.vue | 3 - 4 files changed, 267 insertions(+), 182 deletions(-) diff --git a/website/client/src/components/shops/buyModal.vue b/website/client/src/components/shops/buyModal.vue index 086b556a2a..8b279be27c 100644 --- a/website/client/src/components/shops/buyModal.vue +++ b/website/client/src/components/shops/buyModal.vue @@ -256,7 +256,7 @@ border-bottom-right-radius: 8px; border-bottom-left-radius: 8px; display: block; - margin: 24px 0 0; + margin: 0; padding: 16px 24px; align-content: center; @@ -332,6 +332,12 @@ transform: scale(1.45, 1.45); top: -25.67px; left: 1px; + + &.shop_gem { + transform: scale(1.45, 1.45); + top: -2px; + left: 0px; + } } .title { @@ -347,7 +353,7 @@ padding-left: 48.5px; padding-right: 48.5px; line-height: 1.71; - font-size: 0.875; + font-size: 0.875rem; } .content { @@ -443,12 +449,19 @@ } .attributes-group { - margin: 24px; + margin: 32px; border-radius: 4px; line-height: 1.71; font-size: 0.875; } + .attributesGrid { + margin-top: 28px; + border-radius: 2px; + background-color: $gray-500; + // margin: 10px 0 24px; + } + .cost { height: 40px; font-size: 1.25rem; @@ -484,7 +497,7 @@ .total { font-weight: bold; font-size: 0.875rem; - margin-top:16px; + margin-top: 16px; &.gems { color: $green-10; @@ -528,66 +541,59 @@ &:focus { border: 2px solid black; } - - - .notEnough { - pointer-events: none; - opacity: 0.55; } - .attributesGrid { - margin-top: 8px; - border-radius: 2px; - background-color: $gray-500; - margin: 10px 0 24px; - } + .notEnough { + pointer-events: none; + opacity: 0.55; + } + + + .gems-left { + margin-top: .5em; + } + + .free-rebirth { + background-color: $yellow-5; + color: $white; + height: 2rem; + line-height: 16px; + margin: auto -1rem -1rem; + } + + // .pt-015 { + // padding-top: 0.15rem; + // } + .gems-left { - margin-top: .5em; + height: 32px; + background-color: $green-100; + font-size: 0.75rem; + margin-top: 24px; + color: $green-1; + width: 100%; } - .free-rebirth { - background-color: $yellow-5; + .out-of-gems-banner { + height: 32px; + font-size: 0.75rem; + margin-top: 24px; + background-color: $yellow-100; + color: $yellow-1; + width: 100%; + } + + .limitedTime { + height: 32px; + width: 446px; + font-size: 0.75rem; + margin: 24px 0 0 0; + background-color: $purple-300; color: $white; - height: 2rem; - line-height: 16px; - margin: auto -1rem -1rem; } - - // .pt-015 { - // padding-top: 0.15rem; - // } } - .gems-left { - height: 32px; - background-color: $green-100; - font-size: 0.75rem; - margin-top: 24px; - margin-bottom: -40px; - color: $green-1; - width: 100%; - } - - .out-of-gems-banner { - height: 32px; - font-size: 0.75rem; - margin-top: 24px; - margin-bottom: -40px; - background-color: $yellow-100; - color: $yellow-1; - width: 100%; - } - - .limitedTime { - height: 32px; - width: 446px; - font-size: 0.75rem; - margin: 24px 0 -40px 0; - background-color: $purple-300; - color: $white; - } -}