fix: css pipeline & styling #395
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request refactors the CSS setup and organization, improves the build pipeline, and cleans up markup for better maintainability and clarity. The main changes include splitting base styles into a dedicated file, updating CSS imports to use layers, making the CSS build process environment-aware, and simplifying the post layout. Additionally, minor improvements were made to the CSS reset for consistency.
CSS organization and build pipeline improvements:
index.css
into a newbase.css
file, improving separation of concerns and maintainability. (src/styles/base.css
)index.css
to use CSS@import
with layers forreset.css
andbase.css
, replacing the previous inline layering and imports. (src/styles/index.css
)Build process enhancements:
setup-css.js
to only run the CSS minifier (postCssCsso
) in production, improving build performance during development. (src/helpers/setup-css.js
)src/styles
andsrc/components
to ensure changes are picked up during development. (src/helpers/setup-css.js
)Markup and style cleanup:
post.njk
layout by removing the header section, focusing the template on content and navigation. (src/layouts/post.njk
)reset.css
. (src/styles/reset.css
) [1] [2] [3] [4] [5]