SASS fix and refactor

- Fix `@import` deprecation warning.
- Moved `styles/main.css` to `styles.css`.
This commit is contained in:
Foster Hangdaan 2024-11-06 19:06:56 -05:00
parent 8b984ffe6a
commit e0f959e6bf
Signed by: foster
GPG key ID: E48D7F49A852F112
4 changed files with 19 additions and 18 deletions

View file

@ -24,7 +24,7 @@ export default function (
metas.map((m, index) => (
<meta key={index} name={m.name} content={m.content} />
))}
<link rel="stylesheet" href="/styles/main.css" />
<link rel="stylesheet" href="/styles.css" />
<link
rel="icon"
type="image/png"

View file

@ -1,3 +1,5 @@
@use "../variables";
.navbar {
display: grid;
grid-template-columns: 1fr auto;
@ -19,7 +21,7 @@ .navbar {
a {
text-decoration: none;
}
@media (min-width: $bp-sm) {
@media (min-width: variables.$bp-sm) {
&:first-child {
margin-right: auto;
}

15
src/styles.scss Normal file
View file

@ -0,0 +1,15 @@
// The foundation
@use "styles/fonts";
@use "styles/normalize";
@use "styles/color-palette";
@use "styles/base";
// Pages
@use "styles/pages/resume";
@use "styles/pages/blog";
// Components
@use "styles/components/navbar";
@use "styles/components/header";
@use "styles/components/separator";
@use "styles/components/footer";

View file

@ -1,16 +0,0 @@
// The foundation
@import "styles/fonts";
@import "styles/normalize";
@import "styles/variables";
@import "styles/color-palette";
@import "styles/base";
// Pages
@import "styles/pages/resume";
@import "styles/pages/blog";
// Components
@import "styles/components/navbar";
@import "styles/components/header";
@import "styles/components/separator";
@import "styles/components/footer";