Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

css: Deduplicate CSS for message_control_button elements.

Tim Abbott90041ff45373
diff --git a/static/styles/zulip.css b/static/styles/zulip.css
index 02c8f5d93a3..7aecc4d0c91 100644
--- a/static/styles/zulip.css
+++ b/static/styles/zulip.css
@@ -878,6 +878,9 @@ td.pointer {
transition: all 0.2s ease;
width: 16px;
text-align: center;
+ display: inline-block;
+ position: relative;
+ color: hsl(0, 0%, 73%);
> i {
vertical-align: middle;
@@ -891,14 +894,20 @@ td.pointer {
}
> .reaction_button {
- display: inline-block;
- position: relative;
- color: hsl(0, 0%, 73%);
&:hover {
color: hsl(200, 100%, 40%);
}
}
+ .edit_content {
+ width: 12px;
+
+ &:hover {
+ cursor: pointer;
+ color: hsl(200, 100%, 40%);
+ }
+ }
+
&.sender-status-controls {
top: 10px;
}
@@ -923,8 +932,6 @@ td.pointer {
}
.star_container {
- display: inline-block;
-
&:not(.empty-star) {
color: hsl(106, 77%, 29%);
@@ -953,13 +960,8 @@ td.pointer {
&:hover .message_controls,
&:focus-within .message_controls {
- .empty-star {
- opacity: 0.4;
- }
-
.empty-star:hover {
cursor: pointer;
- opacity: 1;
}
> div {
@@ -1357,18 +1359,6 @@ td.pointer {
}
}
-.edit_content {
- width: 12px;
- display: inline-block;
- position: relative;
- color: hsl(0, 0%, 73%);
-
- &:hover {
- cursor: pointer;
- color: hsl(200, 100%, 40%);
- }
-}
-
.has_actions_popover .info {
opacity: 1;
visibility: visible;
diff --git a/static/templates/message_controls.hbs b/static/templates/message_controls.hbs
index 69f4d890c43..210da12b026 100644
--- a/static/templates/message_controls.hbs
+++ b/static/templates/message_controls.hbs
@@ -10,7 +10,7 @@
{{/unless}}
{{#unless msg/locally_echoed}}
- <div class="info actions_hover message_control_button" data-tippy-content="{{#tr}}Message actions{{/tr}} (i)" >
+ <div class="actions_hover message_control_button" data-tippy-content="{{#tr}}Message actions{{/tr}} (i)" >
<i class="zulip-icon zulip-icon-ellipsis-v-solid" role="button" aria-haspopup="true" tabindex="0" aria-label="{{#tr}}Message actions{{/tr}}"></i>
</div>
{{/unless}}