Skip to content

A platform for community discussion. Free, open, simple.

Don't use `!important` for wiki color. Allow themes to override it.

Robin Wardfbc194c330c2
diff --git a/app/assets/stylesheets/common/base/topic-post.scss b/app/assets/stylesheets/common/base/topic-post.scss
index 6e91c4927ed..a56ba002147 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 20e4b1451ce..4f6cb2cf8f5 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 8c308e6f3bb..369a6667ea7 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;
+ }
}
}