css: replace more css with tailwind-style classes.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
<%= link_to upvote_icon, post_post_votes_path(post_id: post.id, score: 1), class: "post-upvote-link inactive-link", method: :post, remote: true %>
|
||||
<% end %>
|
||||
|
||||
<span class="post-score">
|
||||
<span class="post-score inline-block text-center whitespace-nowrap align-middle min-w-4">
|
||||
<%= link_to post.score, post_votes_path(search: { post_id: post.id }, variant: :compact), rel: "nofollow" %>
|
||||
</span>
|
||||
|
||||
|
||||
@@ -1,17 +1,5 @@
|
||||
@import "../../javascript/src/styles/base/000_vars";
|
||||
|
||||
.post-votes {
|
||||
// Fix it so that the vote buttons don't move when the score changes width.
|
||||
// XXX duplicated from app/components/comment_component/comment_component.scss
|
||||
.post-score {
|
||||
display: inline-block;
|
||||
text-align: center;
|
||||
min-width: 1.25em;
|
||||
white-space: nowrap;
|
||||
vertical-align: middle;
|
||||
}
|
||||
}
|
||||
|
||||
article.post-preview {
|
||||
.post-score a {
|
||||
@include inactive-link;
|
||||
|
||||
Reference in New Issue
Block a user