Improve style

This commit is contained in:
TheNeedful-DO 2023-11-08 17:56:30 +00:00
parent 386ff6873d
commit 8b322c6c7e
3 changed files with 8 additions and 11 deletions

View File

@ -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

View File

@ -5,6 +5,8 @@
padding: 1rem
margin: 1rem
border: .1rem solid #333333
h1
margin: 0.35em 0
a .profile
span, p

View File

@ -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)