Improve post delete style
This commit is contained in:
parent
3f4d2aa44f
commit
5f3ed30d21
@ -8,7 +8,7 @@
|
|||||||
ol.microposts
|
ol.microposts
|
||||||
padding: 0
|
padding: 0
|
||||||
.micropost
|
.micropost
|
||||||
.display-name, .timestamp
|
.display-name, .timestamp, .delete
|
||||||
font-family: "Press Start 2P", "Anton", Impact, fantasy, sans-serif
|
font-family: "Press Start 2P", "Anton", Impact, fantasy, sans-serif
|
||||||
font-size: .4em
|
font-size: .4em
|
||||||
margin: 1em
|
margin: 1em
|
||||||
@ -18,3 +18,13 @@ ol.microposts
|
|||||||
font-family: sans
|
font-family: sans
|
||||||
font-size: .8em
|
font-size: .8em
|
||||||
text-shadow: none
|
text-shadow: none
|
||||||
|
.delete
|
||||||
|
&.emoji
|
||||||
|
font-size: .6em
|
||||||
|
a
|
||||||
|
text-shadow: -1px 1px #e1b027, 1px -1px #00ddff
|
||||||
|
&.text a
|
||||||
|
color: #cc0000
|
||||||
|
text-shadow: -1px 1px #e1b027, 1px -1px #00ddff
|
||||||
|
// a
|
||||||
|
color: #111111
|
||||||
|
|||||||
@ -3,5 +3,6 @@
|
|||||||
%span.display-name= link_to micropost.micropostable.display_name, micropost.micropostable
|
%span.display-name= link_to micropost.micropostable.display_name, micropost.micropostable
|
||||||
%span.timestamp #{time_ago_in_words(micropost.created_at)} ago.
|
%span.timestamp #{time_ago_in_words(micropost.created_at)} ago.
|
||||||
- if policy(micropost).destroy?
|
- if policy(micropost).destroy?
|
||||||
%span= link_to "❌", micropost, method: :delete, data: { confirm: 'Are you sure?' }
|
%span.delete.emoji= link_to "❌", micropost, method: :delete, data: { confirm: 'Delete Post. Are you sure?' }
|
||||||
|
%span.delete.text= link_to "Delete", micropost, method: :delete, data: { confirm: 'Delete Post. Are you sure?' }
|
||||||
%span.content= micropost.content
|
%span.content= micropost.content
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user