DEV: Extract collapser styles into their own file (#505)

DEV: Extract collapser styles into their own file (#505)

diff --git a/assets/stylesheets/common/chat-message-collapser.scss b/assets/stylesheets/common/chat-message-collapser.scss
new file mode 100644
index 0000000..72eafe6
--- /dev/null
+++ b/assets/stylesheets/common/chat-message-collapser.scss
@@ -0,0 +1,46 @@
+.chat-message-collapser {
+  .chat-message-collapser-header {
+    display: flex;
+    align-items: center;
+  }
+
+  .chat-message-collapser-header + p,
+  .chat-message-collapser-header + p img.onebox {
+    margin-top: 0.25em;
+  }
+
+  .chat-message-collapser-link-small {
+    font-size: 0.75em;
+    white-space: nowrap;
+    text-overflow: ellipsis;
+    overflow: hidden;
+  }
+
+  .chat-message-collapser-button {
+    background: none;
+    padding: unset;
+    margin-left: 0.5em;
+
+    &:hover {
+      background: none;
+
+      .d-icon {
+        color: var(--primary);
+      }
+    }
+  }
+
+  .chat-uploads {
+    margin-top: 0.25em;
+
+    .chat-img-upload,
+    .chat-other-upload {
+      margin-bottom: 1em;
+    }
+  }
+
+  a.onebox img {
+    height: unset;
+    width: unset;
+  }
+}
diff --git a/assets/stylesheets/common/common.scss b/assets/stylesheets/common/common.scss
index 8f2aaaa..2dd647e 100644
--- a/assets/stylesheets/common/common.scss
+++ b/assets/stylesheets/common/common.scss
@@ -1275,53 +1275,6 @@ body.composer-open .topic-chat-float-container {
   }
 }
 
-.chat-message-collapser {
-  .chat-message-collapser-header {
-    display: flex;
-    align-items: center;
-  }
-
-  .chat-message-collapser-header + p,
-  .chat-message-collapser-header + p img.onebox {
-    margin-top: 0.25em;
-  }
-
-  .chat-message-collapser-link-small {
-    font-size: 0.75em;
-    white-space: nowrap;
-    text-overflow: ellipsis;
-    overflow: hidden;
-  }
-
-  .chat-message-collapser-button {
-    background: none;
-    padding: unset;
-    margin-left: 0.5em;
-
-    &:hover {
-      background: none;
-
-      .d-icon {
-        color: var(--primary);
-      }
-    }
-  }
-
-  .chat-uploads {
-    margin-top: 0.25em;
-
-    .chat-img-upload,
-    .chat-other-upload {
-      margin-bottom: 1em;
-    }
-  }
-
-  a.onebox img {
-    height: unset;
-    width: unset;
-  }
-}
-
 .chat-message-collapser,
 .chat-message-text {
   > p {
diff --git a/plugin.rb b/plugin.rb
index 93530c7..c5cf138 100644
--- a/plugin.rb
+++ b/plugin.rb
@@ -12,6 +12,7 @@ enabled_site_setting :chat_enabled
 register_asset 'stylesheets/common/common.scss'
 register_asset 'stylesheets/common/incoming-chat-webhooks.scss'
 register_asset 'stylesheets/common/chat-message.scss'
+register_asset 'stylesheets/common/chat-message-collapser.scss'
 register_asset 'stylesheets/mobile/mobile.scss', :mobile
 register_asset 'stylesheets/desktop/desktop.scss', :desktop
 register_asset 'stylesheets/sidebar-extensions.scss'

GitHub sha: d3c652660f0c05134a16399ae6b55fbb2ceddb34

This commit appears in #505 which was approved by romanrizzi. It was merged by nattsw.