From fbc194c330c201da41f5e38dc51ed54df8713f33 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Wed, 20 Jun 2018 10:47:27 -0400 Subject: [PATCH] Don't use `!important` for wiki color. Allow themes to override it. --- app/assets/stylesheets/common/base/topic-post.scss | 2 +- app/assets/stylesheets/common/foundation/variables.scss | 3 +++ app/assets/stylesheets/desktop/topic-post.scss | 4 ++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/app/assets/stylesheets/common/base/topic-post.scss b/app/assets/stylesheets/common/base/topic-post.scss index 6e91c4927e..a56ba00214 100644 --- a/app/assets/stylesheets/common/base/topic-post.scss +++ b/app/assets/stylesheets/common/base/topic-post.scss @@ -431,7 +431,7 @@ aside.quote { .wiki, .last-wiki-edit { - color: green !important; + color: $wiki; } &.via-email { diff --git a/app/assets/stylesheets/common/foundation/variables.scss b/app/assets/stylesheets/common/foundation/variables.scss index 20e4b1451c..4f6cb2cf8f 100644 --- a/app/assets/stylesheets/common/foundation/variables.scss +++ b/app/assets/stylesheets/common/foundation/variables.scss @@ -234,3 +234,6 @@ $success-medium: dark-light-diff($success, $secondary, 50%, -40%); //love $love-low: dark-light-diff($love, $secondary, 85%, -60%); + +//wiki +$wiki: green; diff --git a/app/assets/stylesheets/desktop/topic-post.scss b/app/assets/stylesheets/desktop/topic-post.scss index 8c308e6f3b..369a6667ea 100644 --- a/app/assets/stylesheets/desktop/topic-post.scss +++ b/app/assets/stylesheets/desktop/topic-post.scss @@ -916,6 +916,10 @@ a.attachment:before { a { color: dark-light-choose($primary-medium, $secondary-medium); } + + a.wiki { + color: $wiki; + } } }