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 &:hover
color: yellow color: yellow
p
margin: 0.4em 0
h1 h1
font-size: 7vmin font-size: 7vmin
width: 100%
text-align: center
header header
font-size: 3vmin font-size: 3vmin
@ -58,7 +59,8 @@ header
font-size: 2em font-size: 2em
> h1 > h1
padding-top: .6em padding-top: .6em
text-indent: -7.5em align-self: start
text-indent: .4em
#home-headline, .home-headline #home-headline, .home-headline

View File

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

View File

@ -12,16 +12,9 @@
.profile .profile
%h1= profile.name %h1= profile.name
%span= profile.summary %span= profile.summary
-# = link_to "", "#" .social-links{style: "margin-top: .4em;"}
.social-links
- profile.social_links.each do |social_link| - 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 = 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 %p= profile.about
- if policy(profile).destroy? - if policy(profile).destroy?
= link_to 'Edit', edit_profile_path(profile) = link_to 'Edit', edit_profile_path(profile)