From 441bd2d307dc93a07684910bcf386f066e70d710 Mon Sep 17 00:00:00 2001 From: silverpill Date: Wed, 29 Mar 2023 19:59:18 +0000 Subject: [PATCH] Define SCSS variables for all colors --- src/App.vue | 2 +- src/components/CryptoAddress.vue | 2 +- src/components/Loader.vue | 1 - src/components/Post.vue | 6 +++--- src/components/ProfileCard.vue | 2 +- src/components/Search.vue | 1 + src/components/SidebarLayout.vue | 4 ++-- src/components/SubscriptionEthereum.vue | 1 + src/components/SubscriptionMonero.vue | 1 + src/styles/_layout.scss | 5 +++++ src/styles/_mixins.scss | 2 +- src/styles/_theme.scss | 15 ++++++++++----- src/views/LandingPage.vue | 16 ++++++++-------- src/views/PostOverlay.vue | 2 +- src/views/Profile.vue | 8 +++++++- src/views/ProfileForm.vue | 19 ++++++++++++------- 16 files changed, 55 insertions(+), 32 deletions(-) diff --git a/src/App.vue b/src/App.vue index 8871e0a..d5bb16d 100644 --- a/src/App.vue +++ b/src/App.vue @@ -165,7 +165,7 @@ button { background-color: $btn-background-color; border: none; border-radius: $btn-border-radius; - box-shadow: $btn-shadow; + box-shadow: $btn-shadow-size $shadow-color; color: $btn-text-color; cursor: pointer; display: inline-block; diff --git a/src/components/CryptoAddress.vue b/src/components/CryptoAddress.vue index 5e5f432..5613dc0 100644 --- a/src/components/CryptoAddress.vue +++ b/src/components/CryptoAddress.vue @@ -23,7 +23,7 @@ function copyAddress() { @import "../styles/theme"; .crypto-address { - background-color: #eee; + background-color: $widget-background-color; border-radius: 10px; display: flex; diff --git a/src/components/Loader.vue b/src/components/Loader.vue index 00e184d..6eed0e0 100644 --- a/src/components/Loader.vue +++ b/src/components/Loader.vue @@ -10,7 +10,6 @@ /* https://github.com/loadingio/css-spinner/blob/master/dist/ripple.html */ -$loader-color: #999; $loader-size: 80px; $loader-width: 4px; diff --git a/src/components/Post.vue b/src/components/Post.vue index b8ef8eb..1b8d3a0 100644 --- a/src/components/Post.vue +++ b/src/components/Post.vue @@ -584,7 +584,7 @@ async function onMintToken() { text-align: left; &.highlighted { - outline: 1px solid #FFA500; + outline: 1px solid $highlight-color; } } @@ -707,7 +707,7 @@ async function onMintToken() { .icon { &.tokenized img { - filter: invert(51%) sepia(48%) saturate(437%) hue-rotate(222deg) brightness(92%) contrast(84%); + filter: $gem-colorizer; } &.tokenize-progress img { @@ -744,7 +744,7 @@ async function onMintToken() { } .post-form { - border-top: 1px solid #f3f2ed; + border-top: 1px solid $separator-color; } @media screen and (max-width: $screen-breakpoint-small) { diff --git a/src/components/ProfileCard.vue b/src/components/ProfileCard.vue index 63cafd0..bf92da0 100644 --- a/src/components/ProfileCard.vue +++ b/src/components/ProfileCard.vue @@ -53,7 +53,7 @@ $profile-padding: calc($block-inner-padding / 2); border-radius: $block-border-radius; .profile-header { - background-color: $text-color; + background-color: $btn-background-color; border-radius: $block-border-radius $block-border-radius 0 0; height: 100px; diff --git a/src/components/Search.vue b/src/components/Search.vue index 2dae71f..37ae185 100644 --- a/src/components/Search.vue +++ b/src/components/Search.vue @@ -27,6 +27,7 @@ function search() {