Merge pull request #1734 from basecamp/reactions-polish
Reactions polish
This commit is contained in:
@@ -176,8 +176,8 @@
|
||||
}
|
||||
|
||||
.reaction__popup {
|
||||
--panel-border-radius: 1.2em;
|
||||
--panel-padding: 0.5ch;
|
||||
--panel-border-radius: 1em;
|
||||
--panel-padding: var(--block-space-half) var(--inline-space);
|
||||
--offset: calc(-1 * var(--panel-padding));
|
||||
|
||||
inset: var(--offset) auto auto var(--offset);
|
||||
@@ -187,12 +187,17 @@
|
||||
|
||||
.reaction__emoji-list {
|
||||
display: grid;
|
||||
gap: var(--inline-space-half);
|
||||
grid-template-columns: repeat(10, 1fr);
|
||||
|
||||
.btn {
|
||||
--btn-size: 1.5rem;
|
||||
@media (max-width: 630px) {
|
||||
grid-template-columns: repeat(6, 1fr);
|
||||
}
|
||||
|
||||
font-size: 1rem;
|
||||
.btn {
|
||||
--btn-size: calc(1.3rem * 1.3);
|
||||
|
||||
font-size: 1.3rem;
|
||||
position: relative;
|
||||
|
||||
/* Make sure the focus ring sits on top of adjacent buttons */
|
||||
@@ -203,7 +208,7 @@
|
||||
}
|
||||
|
||||
&:hover {
|
||||
scale: 1.5;
|
||||
scale: 1.3;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<dialog class="reaction__popup popup panel fill-white shadow" data-dialog-target="dialog">
|
||||
<div class="reaction__emoji-list">
|
||||
<% EmojiHelper::REACTIONS.each do |character, title| %>
|
||||
<%= tag.button character, title: title, class: "reaction__emoji-btn btn btn--circle borderless", type: "button", data: { action: "reaction-emoji#insertEmoji dialog#close", emoji: character } %>
|
||||
<%= tag.button character, title: title, class: "reaction__emoji-btn btn btn--circle borderless hide-focus-ring", type: "button", data: { action: "reaction-emoji#insertEmoji dialog#close", emoji: character } %>
|
||||
<% end %>
|
||||
</div>
|
||||
</dialog>
|
||||
|
||||
Reference in New Issue
Block a user