WIP: improve header spacing

This commit is contained in:
Sami Samhuri 2023-02-14 00:59:39 -08:00
parent 450603d05e
commit 7d7a7b5caf
No known key found for this signature in database
GPG key ID: 4B4195422742FC16
3 changed files with 2 additions and 17 deletions

View file

@ -49,8 +49,6 @@ Have a look at my [work history](/cv).
- GitHub: [samsonjs][gh]
- [Stack Overflow][so]
- Mastodon: [@sjs@techhub.social][mastodon]
- Twitter: [@_sjs][twttr]
- Instagram: [@samsonjs][ig]
- Email: [sami@samhuri.net][email]
[gh]: https://github.com/samsonjs

View file

@ -140,7 +140,7 @@ hr {
header.primary {
background-color: #151515;
color: #f7f7f7;
padding: 0.4rem 2.5rem;
padding: 0.8rem 2.5rem;
border-bottom: solid 1px #888888;
box-shadow: 0 0 12px 2px #222;
}
@ -187,7 +187,6 @@ header.primary h4 a:hover {
}
header.primary nav {
padding-top: 0.5rem;
clear: left;
}
@ -195,8 +194,6 @@ header.primary nav {
header.primary nav {
float: right;
clear: none;
padding-top: 0.65rem;
height: 1rem;
}
}
@ -207,7 +204,7 @@ header.primary nav a:visited {
header.primary nav ul {
margin: 0;
padding: 0;
padding: 0.5rem 0;
}
header.primary nav ul li {
@ -230,18 +227,10 @@ header.primary nav ul li i.fa {
padding: 0.2rem;
}
header.primary nav ul li.email i.fa-envelope {
color: #e6e6e6;
}
header.primary nav ul li.rss i.fa-rss {
color: #e66b19;
}
header.primary nav ul li.twitter i.fa-twitter {
color: #539aec;
}
header.primary nav ul li.mastodon i.fa-mastodon {
color: #5e4fe5;
}

View file

@ -48,10 +48,8 @@ enum Template {
.li(.a(.href(context.url(for: "about")), "About")),
.li(.a(.href(context.url(for: "posts")), "Archive")),
.li(.a(.href(context.url(for: "projects")), "Projects")),
.li(.class("twitter"), .a(.href("https://twitter.com/_sjs"), .i(.class("fab fa-twitter")))),
.li(.class("mastodon"), .a(.attribute(named: "rel", value: "me"), .href("https://techhub.social/@sjs"), .i(.class("fab fa-mastodon")))),
.li(.class("github"), .a(.href("https://github.com/samsonjs"), .i(.class("fab fa-github")))),
.li(.class("email"), .a(.href("mailto:\(context.site.email)"), .i(.class("fa fa-envelope")))),
.li(.class("rss"), .a(.href(context.url(for: "feed.xml")), .i(.class("fa fa-rss"))))
)
),