Skip to content

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

DEV: Refactor `.coldmap` styles

Penar Musarajfb2fce037bd8
diff --git a/app/assets/stylesheets/common/base/discourse.scss b/app/assets/stylesheets/common/base/discourse.scss
index 142a80d4cec..282a8556ad8 100644
--- a/app/assets/stylesheets/common/base/discourse.scss
+++ b/app/assets/stylesheets/common/base/discourse.scss
@@ -359,23 +359,6 @@ table {
margin-left: 12px;
}
-// the default for table cells in topic list
-// is $primary-medium
-// numbers get dimmer as they get colder
-.coldmap {
- &-high {
- color: dark-light-choose($primary-low-mid, $secondary-high) !important;
- }
-
- &-med {
- color: dark-light-choose($primary-medium, $secondary-high) !important;
- }
-
- &-low {
- color: dark-light-choose($primary-medium, $secondary-medium) !important;
- }
-}
-
.top-space {
margin-top: 10px;
}
diff --git a/app/assets/stylesheets/mobile/topic-list.scss b/app/assets/stylesheets/mobile/topic-list.scss
index b0400c41c24..a55831c9fa1 100644
--- a/app/assets/stylesheets/mobile/topic-list.scss
+++ b/app/assets/stylesheets/mobile/topic-list.scss
@@ -263,6 +263,21 @@
.age {
margin-left: 5px;
}
+
+ // numbers get dimmer as they get colder
+ .coldmap {
+ &-high {
+ opacity: 0.4;
+ }
+
+ &-med {
+ opacity: 0.6;
+ }
+
+ &-low {
+ opacity: 0.8;
+ }
+ }
}
.subcategory-list-item.category {