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.

reaction_pills: Shift from border to outline.

Karl Stolleydde998a4526c
diff --git a/web/styles/reactions.css b/web/styles/reactions.css
index b6b115cb38c..ffe32004810 100644
--- a/web/styles/reactions.css
+++ b/web/styles/reactions.css
@@ -14,15 +14,17 @@
.message_reaction {
display: flex;
- /* Set a pixel and half padding to maintain
- pill height adjacent own reactions. */
- padding: 1.5px 4px 1.5px 3px;
+ padding: 2.5px 5px 2.5px 4px;
box-sizing: border-box;
min-width: 44px;
cursor: pointer;
color: var(--color-message-reaction-text);
background-color: var(--color-message-reaction-background);
- border: 1px solid var(--color-message-reaction-border);
+ /* Use an outline around the reaction pill so that
+ it does not change the dimensions of the reaction-pill
+ box when going in and out of the .reacted state. */
+ outline: 1px solid var(--color-message-reaction-border);
+ outline-offset: -1px;
border-radius: 21px;
align-items: center;
box-shadow: inset 0 0 5px 0 var(--color-message-reaction-shadow-inner);
@@ -33,14 +35,11 @@
&.reacted {
color: var(--color-message-reaction-text-reacted);
background-color: var(--color-message-reaction-background-reacted);
- border-color: var(--color-message-reaction-border-reacted);
- /* Make this border thicker by half a pixel,
+ outline-color: var(--color-message-reaction-border-reacted);
+ /* Make this outline thicker by half a pixel,
to make own reactions more prominent. */
- border-width: 1.5px;
- /* Reduce the padding top and bottom by half
- a pixel accordingly, to maintain the same
- pill height. */
- padding: 1px 4px 1px 3px;
+ outline-width: 1.5px;
+ outline-offset: -1.5px;
font-weight: var(--font-weight-message-reaction);
box-shadow: none;
}