From f4dfc573118e453b3342a4eba600a07994c6110a Mon Sep 17 00:00:00 2001 From: teppei machida Date: Wed, 16 Feb 2022 19:04:48 +0900 Subject: [PATCH] =?UTF-8?q?=E7=9B=AE=E7=AB=8B=E3=81=9F=E3=81=AA=E3=81=84?= =?UTF-8?q?=E7=B7=A8=E9=9B=86=E3=83=AA=E3=83=B3=E3=82=AF=E3=81=AE=E3=83=AC?= =?UTF-8?q?=E3=82=A4=E3=82=A2=E3=82=A6=E3=83=88=E9=81=A9=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/assets/stylesheets/blocks/card/_card-main-actions.sass | 3 ++- app/views/announcements/_announcement.html.slim | 7 ++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/app/assets/stylesheets/blocks/card/_card-main-actions.sass b/app/assets/stylesheets/blocks/card/_card-main-actions.sass index 3b7184d1f07..25a754c3259 100644 --- a/app/assets/stylesheets/blocks/card/_card-main-actions.sass +++ b/app/assets/stylesheets/blocks/card/_card-main-actions.sass @@ -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 diff --git a/app/views/announcements/_announcement.html.slim b/app/views/announcements/_announcement.html.slim index edf5873a5f6..5ca62a06caa 100644 --- a/app/views/announcements/_announcement.html.slim +++ b/app/views/announcements/_announcement.html.slim @@ -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