From 2131fed0bb85dd39cc189ff087bcf0fb23050afc Mon Sep 17 00:00:00 2001 From: Prospector Date: Wed, 15 Nov 2023 09:22:02 -0800 Subject: [PATCH 1/2] Update promo styling --- docs/components/promotion.md | 5 +-- lib/assets/styles/variables.scss | 11 +++--- lib/components/base/Promotion.vue | 58 ++++++++++++++++++------------- package.json | 2 +- 4 files changed, 44 insertions(+), 32 deletions(-) diff --git a/docs/components/promotion.md b/docs/components/promotion.md index aba1a6ab3..2e0a5d110 100644 --- a/docs/components/promotion.md +++ b/docs/components/promotion.md @@ -1,11 +1,12 @@ # Promotion +The Promotion component is used to serve Adrinth ads. :::raw - + ::: ```vue - + ``` diff --git a/lib/assets/styles/variables.scss b/lib/assets/styles/variables.scss index 5e9a1343f..0dbeb00ea 100644 --- a/lib/assets/styles/variables.scss +++ b/lib/assets/styles/variables.scss @@ -3,6 +3,10 @@ html { --dark-color-base: #b0bac5; --dark-color-contrast: #ecf9fb; + --color-ad: rgba(125, 75, 162, 0.2); + --color-ad-raised: rgba(190, 140, 243, 0.8); + --color-ad-highlight: var(--color-purple); + --gap-xs: 0.25rem; --gap-sm: 0.5rem; --gap-md: 0.75rem; @@ -36,8 +40,8 @@ html { --color-purple: #8e32f3; --color-gray: #595b61; - --color-ad: #d6e6f9; - --color-ad-raised: #b1c8e4; + --color-ad: rgba(125, 75, 162, 0.2); + --color-ad-raised: rgba(190, 140, 243, 0.8); --color-brand: var(--color-green); --color-brand-highlight: rgba(0, 175, 92, 0.25); @@ -79,9 +83,6 @@ html { --color-purple: #c78aff; --color-gray: #9fa4b3; - --color-ad: #1f324a; - --color-ad-raised: #2e4057; - --color-brand: var(--color-green); --color-brand-highlight: rgba(27, 217, 106, 0.25); --color-brand-shadow: rgba(27, 217, 106, 0.7); diff --git a/lib/components/base/Promotion.vue b/lib/components/base/Promotion.vue index 70b9ab02a..fd40c55cc 100644 --- a/lib/components/base/Promotion.vue +++ b/lib/components/base/Promotion.vue @@ -1,26 +1,23 @@