Refactor Astro components and layouts

This commit is contained in:
Valentin Popov 2024-09-12 16:39:06 +00:00
parent 3376c53b2e
commit a93400f090
Signed by: Valentin Popov
GPG Key ID: AE3CE523DAAA8401
3 changed files with 46 additions and 45 deletions

View File

@ -2,6 +2,52 @@
---
<style lang="scss">
@import "../scss/_variables.scss";
header {
background-color: $colorBg;
border-bottom: 1px solid $colorHeader;
box-shadow: 0 5px 5px $colorBg;
left: 0;
line-height: 3.5em;
opacity: 0.975;
position: fixed;
right: 0;
top: 0;
}
nav {
margin: auto;
max-width: 60em;
padding: 0 4em;
text-align: right;
a {
color: $colorText;
padding: 0 1em;
&:visited {
color: $colorText;
}
}
}
@media (width <=684px) {
header {
box-shadow: none;
}
nav {
padding: 0 2em;
span {
display: none;
}
}
}
</style>
<header>
<nav>
<a href="/feed.xml">RSS</a>

View File

@ -1,41 +0,0 @@
header {
background-color: $colorBg;
border-bottom: 1px solid $colorHeader;
box-shadow: 0 5px 5px $colorBg;
left: 0;
line-height: 3.5em;
opacity: 0.975;
position: fixed;
right: 0;
top: 0;
}
nav {
margin: auto;
max-width: 60em;
padding: 0 4em;
text-align: right;
a {
color: $colorText;
padding: 0 1em;
&:visited {
color: $colorText;
}
}
}
@media (width <=684px) {
header {
box-shadow: none;
}
nav {
padding: 0 2em;
span {
display: none;
}
}
}

View File

@ -1,7 +1,3 @@
// Base
@import "variables";
@import "framework";
@import "print";
// Modules
@import "navbar";