Tweak comment history button on mobile
This commit is contained in:
@@ -110,7 +110,7 @@
|
||||
|
||||
@media (max-width: 639px) {
|
||||
--btn-size: 3em;
|
||||
--icon-size: 70%;
|
||||
--icon-size: 75%;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -119,7 +119,7 @@
|
||||
.btn--circle-mobile {
|
||||
--btn-size: 3em;
|
||||
--btn-padding: 0;
|
||||
--icon-size: 70%;
|
||||
--icon-size: 75%;
|
||||
|
||||
aspect-ratio: 1;
|
||||
inline-size: var(--btn-size);
|
||||
|
||||
@@ -74,10 +74,6 @@
|
||||
.comments--system-expanded .comment-by-system & {
|
||||
--stripe-color: color-mix(in srgb, var(--card-color) 10%, var(--color-canvas));
|
||||
}
|
||||
|
||||
.comment__history {
|
||||
background-color: var(--stripe-color);
|
||||
}
|
||||
}
|
||||
|
||||
.reactions {
|
||||
@@ -136,11 +132,29 @@
|
||||
background-color: var(--color-ink-lightest);
|
||||
}
|
||||
|
||||
.comment__permalink-title {
|
||||
color: currentColor;
|
||||
opacity: 0.66;
|
||||
text-decoration: none;
|
||||
text-transform: capitalize;
|
||||
|
||||
@media (max-width: 639px) {
|
||||
line-height: 1.5lh;
|
||||
}
|
||||
}
|
||||
|
||||
.comment__history {
|
||||
background-color: var(--color-ink-lightest);
|
||||
background-color: transparent;
|
||||
display: none;
|
||||
inset: calc(var(--comment-padding-inline) / 2.5) calc(var(--comment-padding-inline) / 1.5) auto auto; margin-inline-end: calc(var(--comment-padding-inline) / -2.5);
|
||||
inset: var(--comment-padding-block) var(--comment-padding-block) auto auto;
|
||||
translate: 2px -2px; /* Align baseline with time stamp */
|
||||
position: absolute;
|
||||
|
||||
@media (any-hover: hover) {
|
||||
&:hover {
|
||||
background-color: var(--stripe-color);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.comment-by-system {
|
||||
@@ -158,7 +172,7 @@
|
||||
display: contents;
|
||||
|
||||
.comment__history {
|
||||
display: grid;
|
||||
display: inline-flex;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
<%= link_to comment.creator.name, comment.creator, class: "txt-ink btn btn--plain fill-transparent", data: { turbo_frame: "_top" } %>
|
||||
</strong>
|
||||
|
||||
<%= link_to comment, class: "txt-undecorated txt-ink translucent txt-normal txt-capitalize", data: { turbo_frame: "_top" } do %>
|
||||
<%= link_to comment, class: "comment__permalink-title", data: { turbo_frame: "_top" } do %>
|
||||
<%= local_datetime_tag comment.created_at, style: :agoorweekday %>,
|
||||
<%= local_datetime_tag comment.created_at, style: :time %>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user