Skip to content

Commit

Permalink
目立たない編集リンクのレイアウト適用
Browse files Browse the repository at this point in the history
  • Loading branch information
machida committed Feb 16, 2022
1 parent 80f4252 commit f4dfc57
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
3 changes: 2 additions & 1 deletion app/assets/stylesheets/blocks/card/_card-main-actions.sass
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
+media-breakpoint-down(sm)
margin-bottom: 0

.card-main-actions__delete
.card-main-actions__delete,
.card-main-actions__muted-action
+hover-link-reversal
+text-block(.875rem 1.4, $muted-text)
&:hover
Expand Down
7 changes: 2 additions & 5 deletions app/views/announcements/_announcement.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,10 @@
.card-footer
.card-main-actions
ul.card-main-actions__items
// 要デザイン(ここから)
- if announcement.published_at
li.card-main-actions__item
= link_to edit_announcement_path(announcement), class: 'card-main-actions__delete' do
i.fas.fa-pen#new
li.card-main-actions__item.is-sub
= link_to edit_announcement_path(announcement), class: 'card-main-actions__muted-action' do
| 内容修正
// 要デザイン(ここまで)
- else
li.card-main-actions__item
= link_to edit_announcement_path(announcement), class: 'card-main-actions__action a-button is-md is-secondary is-block', id: 'js-shortcut-edit' do
Expand Down

0 comments on commit f4dfc57

Please sign in to comment.