Improve style
This commit is contained in:
parent
afcadd2a26
commit
049149fd28
@ -22,10 +22,11 @@ a
|
||||
&:hover
|
||||
color: yellow
|
||||
|
||||
p
|
||||
margin: 0.4em 0
|
||||
|
||||
h1
|
||||
font-size: 7vmin
|
||||
width: 100%
|
||||
text-align: center
|
||||
|
||||
header
|
||||
font-size: 3vmin
|
||||
@ -58,7 +59,8 @@ header
|
||||
font-size: 2em
|
||||
> h1
|
||||
padding-top: .6em
|
||||
text-indent: -7.5em
|
||||
align-self: start
|
||||
text-indent: .4em
|
||||
|
||||
|
||||
#home-headline, .home-headline
|
||||
|
||||
@ -5,6 +5,8 @@
|
||||
padding: 1rem
|
||||
margin: 1rem
|
||||
border: .1rem solid #333333
|
||||
h1
|
||||
margin: 0.35em 0
|
||||
|
||||
a .profile
|
||||
span, p
|
||||
|
||||
@ -12,16 +12,9 @@
|
||||
.profile
|
||||
%h1= profile.name
|
||||
%span= profile.summary
|
||||
-# = link_to "", "#"
|
||||
.social-links
|
||||
.social-links{style: "margin-top: .4em;"}
|
||||
- profile.social_links.each do |social_link|
|
||||
- if policy(social_link).destroy?
|
||||
%span.controls
|
||||
= link_to '📝', edit_social_link_path(social_link)
|
||||
= link_to '❌', social_link, method: :delete, data: { confirm: 'Are you sure?' }
|
||||
= social_link.to_icon.html_safe
|
||||
- if policy(profile).edit?
|
||||
%br= link_to '+ Add Social Link', new_social_link_path(profile_id: profile.id)
|
||||
%p= profile.about
|
||||
- if policy(profile).destroy?
|
||||
= link_to 'Edit', edit_profile_path(profile)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user