Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dist/css/base.reset.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! mCSS v1.4.1 | MIT | https://mcss.dev */
/*! mCSS | MIT | https://mcss.dev */
/*
SETTINGS MEDIA QUERIES

Expand Down
2 changes: 1 addition & 1 deletion dist/css/component.avatar.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! mCSS v1.4.1 | MIT | https://mcss.dev */
/*! mCSS | MIT | https://mcss.dev */
/*
SETTINGS MEDIA QUERIES

Expand Down
2 changes: 1 addition & 1 deletion dist/css/component.badge.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! mCSS v1.4.1 | MIT | https://mcss.dev */
/*! mCSS | MIT | https://mcss.dev */
/*
SETTINGS MEDIA QUERIES

Expand Down
2 changes: 1 addition & 1 deletion dist/css/component.banner.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! mCSS v1.4.1 | MIT | https://mcss.dev */
/*! mCSS | MIT | https://mcss.dev */
/*
SETTINGS MEDIA QUERIES

Expand Down
2 changes: 1 addition & 1 deletion dist/css/component.breadcrumbs.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! mCSS v1.4.1 | MIT | https://mcss.dev */
/*! mCSS | MIT | https://mcss.dev */
/*
SETTINGS MEDIA QUERIES

Expand Down
2 changes: 1 addition & 1 deletion dist/css/component.button.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! mCSS v1.4.1 | MIT | https://mcss.dev */
/*! mCSS | MIT | https://mcss.dev */
/*
SETTINGS MEDIA QUERIES

Expand Down
2 changes: 1 addition & 1 deletion dist/css/component.card.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! mCSS v1.4.1 | MIT | https://mcss.dev */
/*! mCSS | MIT | https://mcss.dev */
/*
SETTINGS MEDIA QUERIES

Expand Down
2 changes: 1 addition & 1 deletion dist/css/component.faq.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! mCSS v1.4.1 | MIT | https://mcss.dev */
/*! mCSS | MIT | https://mcss.dev */
/*
SETTINGS MEDIA QUERIES

Expand Down
2 changes: 1 addition & 1 deletion dist/css/component.featureItem.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! mCSS v1.4.1 | MIT | https://mcss.dev */
/*! mCSS | MIT | https://mcss.dev */
/*
SETTINGS MEDIA QUERIES

Expand Down
2 changes: 1 addition & 1 deletion dist/css/component.field.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! mCSS v1.4.1 | MIT | https://mcss.dev */
/*! mCSS | MIT | https://mcss.dev */
/*
SETTINGS MEDIA QUERIES

Expand Down
2 changes: 1 addition & 1 deletion dist/css/component.fieldRow.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! mCSS v1.4.1 | MIT | https://mcss.dev */
/*! mCSS | MIT | https://mcss.dev */
/*
SETTINGS MEDIA QUERIES

Expand Down
2 changes: 1 addition & 1 deletion dist/css/component.footer.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! mCSS v1.4.1 | MIT | https://mcss.dev */
/*! mCSS | MIT | https://mcss.dev */
/*
SETTINGS MEDIA QUERIES

Expand Down
2 changes: 1 addition & 1 deletion dist/css/component.header.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! mCSS v1.4.1 | MIT | https://mcss.dev */
/*! mCSS | MIT | https://mcss.dev */
/*
SETTINGS MEDIA QUERIES

Expand Down
2 changes: 1 addition & 1 deletion dist/css/component.hero.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! mCSS v1.4.1 | MIT | https://mcss.dev */
/*! mCSS | MIT | https://mcss.dev */
/*
SETTINGS MEDIA QUERIES

Expand Down
2 changes: 1 addition & 1 deletion dist/css/component.notice.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! mCSS v1.4.1 | MIT | https://mcss.dev */
/*! mCSS | MIT | https://mcss.dev */
/*
SETTINGS MEDIA QUERIES

Expand Down
2 changes: 1 addition & 1 deletion dist/css/component.pagination.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! mCSS v1.4.1 | MIT | https://mcss.dev */
/*! mCSS | MIT | https://mcss.dev */
/*
SETTINGS MEDIA QUERIES

Expand Down
2 changes: 1 addition & 1 deletion dist/css/component.prevNext.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! mCSS v1.4.1 | MIT | https://mcss.dev */
/*! mCSS | MIT | https://mcss.dev */
/*
SETTINGS MEDIA QUERIES

Expand Down
2 changes: 1 addition & 1 deletion dist/css/component.pricing.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! mCSS v1.4.1 | MIT | https://mcss.dev */
/*! mCSS | MIT | https://mcss.dev */
/*
SETTINGS MEDIA QUERIES

Expand Down
2 changes: 1 addition & 1 deletion dist/css/component.readProgressBar.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! mCSS v1.4.1 | MIT | https://mcss.dev */
/*! mCSS | MIT | https://mcss.dev */
/*
SETTINGS MEDIA QUERIES

Expand Down
2 changes: 1 addition & 1 deletion dist/css/component.section.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! mCSS v1.4.1 | MIT | https://mcss.dev */
/*! mCSS | MIT | https://mcss.dev */
/*
SETTINGS MEDIA QUERIES

Expand Down
2 changes: 1 addition & 1 deletion dist/css/component.socialMedia.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! mCSS v1.4.1 | MIT | https://mcss.dev */
/*! mCSS | MIT | https://mcss.dev */
/*
SETTINGS MEDIA QUERIES

Expand Down
2 changes: 1 addition & 1 deletion dist/css/component.tags.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! mCSS v1.4.1 | MIT | https://mcss.dev */
/*! mCSS | MIT | https://mcss.dev */
/*
SETTINGS MEDIA QUERIES

Expand Down
2 changes: 1 addition & 1 deletion dist/css/component.testimonial.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! mCSS v1.4.1 | MIT | https://mcss.dev */
/*! mCSS | MIT | https://mcss.dev */
/*
SETTINGS MEDIA QUERIES

Expand Down
2 changes: 1 addition & 1 deletion dist/css/component.tiles.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! mCSS v1.4.1 | MIT | https://mcss.dev */
/*! mCSS | MIT | https://mcss.dev */
/*
SETTINGS MEDIA QUERIES

Expand Down
2 changes: 1 addition & 1 deletion dist/css/component.toc.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! mCSS v1.4.1 | MIT | https://mcss.dev */
/*! mCSS | MIT | https://mcss.dev */
/*
SETTINGS MEDIA QUERIES

Expand Down
2 changes: 1 addition & 1 deletion dist/css/component.toggle.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! mCSS v1.4.1 | MIT | https://mcss.dev */
/*! mCSS | MIT | https://mcss.dev */
/*
SETTINGS MEDIA QUERIES

Expand Down
2 changes: 1 addition & 1 deletion dist/css/elements.form.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! mCSS v1.4.1 | MIT | https://mcss.dev */
/*! mCSS | MIT | https://mcss.dev */
/*
SETTINGS MEDIA QUERIES

Expand Down
2 changes: 1 addition & 1 deletion dist/css/elements.interactive.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! mCSS v1.4.1 | MIT | https://mcss.dev */
/*! mCSS | MIT | https://mcss.dev */
/*
SETTINGS MEDIA QUERIES

Expand Down
2 changes: 1 addition & 1 deletion dist/css/elements.media.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! mCSS v1.4.1 | MIT | https://mcss.dev */
/*! mCSS | MIT | https://mcss.dev */
/*
SETTINGS MEDIA QUERIES

Expand Down
2 changes: 1 addition & 1 deletion dist/css/elements.sectioning.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! mCSS v1.4.1 | MIT | https://mcss.dev */
/*! mCSS | MIT | https://mcss.dev */
/*
SETTINGS MEDIA QUERIES

Expand Down
2 changes: 1 addition & 1 deletion dist/css/elements.table.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! mCSS v1.4.1 | MIT | https://mcss.dev */
/*! mCSS | MIT | https://mcss.dev */
/*
SETTINGS MEDIA QUERIES

Expand Down
2 changes: 1 addition & 1 deletion dist/css/elements.text.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! mCSS v1.4.1 | MIT | https://mcss.dev */
/*! mCSS | MIT | https://mcss.dev */
/*
SETTINGS MEDIA QUERIES

Expand Down
2 changes: 1 addition & 1 deletion dist/css/elements.text.quotes.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! mCSS v1.4.1 | MIT | https://mcss.dev */
/*! mCSS | MIT | https://mcss.dev */
/*
SETTINGS MEDIA QUERIES

Expand Down
2 changes: 1 addition & 1 deletion dist/css/global.a11y.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! mCSS v1.4.1 | MIT | https://mcss.dev */
/*! mCSS | MIT | https://mcss.dev */
/*
SETTINGS MEDIA QUERIES

Expand Down
2 changes: 1 addition & 1 deletion dist/css/global.animation.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! mCSS v1.4.1 | MIT | https://mcss.dev */
/*! mCSS | MIT | https://mcss.dev */
/*
SETTINGS MEDIA QUERIES

Expand Down
2 changes: 1 addition & 1 deletion dist/css/global.grid.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! mCSS v1.4.1 | MIT | https://mcss.dev */
/*! mCSS | MIT | https://mcss.dev */
/*
SETTINGS MEDIA QUERIES

Expand Down
2 changes: 1 addition & 1 deletion dist/css/global.layout.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! mCSS v1.4.1 | MIT | https://mcss.dev */
/*! mCSS | MIT | https://mcss.dev */
/*
SETTINGS MEDIA QUERIES

Expand Down
2 changes: 1 addition & 1 deletion dist/css/global.prose.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! mCSS v1.4.1 | MIT | https://mcss.dev */
/*! mCSS | MIT | https://mcss.dev */
/*
SETTINGS MEDIA QUERIES

Expand Down
2 changes: 1 addition & 1 deletion dist/css/global.wrap.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! mCSS v1.4.1 | MIT | https://mcss.dev */
/*! mCSS | MIT | https://mcss.dev */
/*
SETTINGS MEDIA QUERIES

Expand Down
2 changes: 1 addition & 1 deletion dist/css/help.colors.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! mCSS v1.4.1 | MIT | https://mcss.dev */
/*! mCSS | MIT | https://mcss.dev */
/*
SETTINGS MEDIA QUERIES

Expand Down
2 changes: 1 addition & 1 deletion dist/css/help.devtools.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! mCSS v1.4.1 | MIT | https://mcss.dev */
/*! mCSS | MIT | https://mcss.dev */
/*
SETTINGS MEDIA QUERIES

Expand Down
2 changes: 1 addition & 1 deletion dist/css/help.layout.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! mCSS v1.4.1 | MIT | https://mcss.dev */
/*! mCSS | MIT | https://mcss.dev */
/*
SETTINGS MEDIA QUERIES

Expand Down
2 changes: 1 addition & 1 deletion dist/css/help.opacity.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! mCSS v1.4.1 | MIT | https://mcss.dev */
/*! mCSS | MIT | https://mcss.dev */
/*
SETTINGS MEDIA QUERIES

Expand Down
2 changes: 1 addition & 1 deletion dist/css/help.ratios.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! mCSS v1.4.1 | MIT | https://mcss.dev */
/*! mCSS | MIT | https://mcss.dev */
/*
SETTINGS MEDIA QUERIES

Expand Down
2 changes: 1 addition & 1 deletion dist/css/help.spacing.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! mCSS v1.4.1 | MIT | https://mcss.dev */
/*! mCSS | MIT | https://mcss.dev */
/*
SETTINGS MEDIA QUERIES

Expand Down
2 changes: 1 addition & 1 deletion dist/css/help.typography.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! mCSS v1.4.1 | MIT | https://mcss.dev */
/*! mCSS | MIT | https://mcss.dev */
/*
SETTINGS MEDIA QUERIES

Expand Down
2 changes: 1 addition & 1 deletion dist/css/theme.default.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! mCSS v1.4.1 | MIT | https://mcss.dev */
/*! mCSS | MIT | https://mcss.dev */
/* DEFAULT THEME */

/*
Expand Down
2 changes: 1 addition & 1 deletion dist/css/theme.default.tokens.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! mCSS v1.4.1 | MIT | https://mcss.dev */
/*! mCSS | MIT | https://mcss.dev */
/*
SETTINGS MEDIA QUERIES

Expand Down
2 changes: 1 addition & 1 deletion dist/css/theme.default.ui.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! mCSS v1.4.1 | MIT | https://mcss.dev */
/*! mCSS | MIT | https://mcss.dev */
/*
SETTINGS MEDIA QUERIES

Expand Down
2 changes: 1 addition & 1 deletion dist/css/theme.starter.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! mCSS v1.4.1 | MIT | https://mcss.dev */
/*! mCSS | MIT | https://mcss.dev */
/*
SETTINGS MEDIA QUERIES

Expand Down
2 changes: 1 addition & 1 deletion dist/css/theme.wireframe.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! mCSS v1.4.1 | MIT | https://mcss.dev */
/*! mCSS | MIT | https://mcss.dev */
/*
SETTINGS MEDIA QUERIES

Expand Down
10 changes: 6 additions & 4 deletions src/tools/build-css.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ const OUT = join(ROOT, "dist");

const pkg = JSON.parse(await readFile(join(ROOT, "package.json"), "utf8"));
const BANNER = `/*! mCSS v${pkg.version} | MIT | https://mcss.dev */\n`;
const PART_BANNER = `/*! mCSS | MIT | https://mcss.dev */\n`;

// Same semantics as the site pipeline (postcss.config.cjs + Vite's
// postcss-import): custom media resolved, mixins expanded, layers kept.
Expand All @@ -50,9 +51,7 @@ const plugins = (withImport) =>
stage: 2,
// Keep in sync with postcss.config.cjs. cascade-layers: mCSS ships
// native @layer, the polyfill would strip it. random-function: let
// native random() pass through so it doesn't freeze into a static,
// source-length-seeded value that churns dist on any edit (the
// wireframe theme's tier 1 sibling-index() math is the fallback).
// native random() pass through
features: { "cascade-layers": false, "random-function": false },
}),
].filter(Boolean);
Expand Down Expand Up @@ -180,7 +179,10 @@ for (const file of files) {
? `${settingsPrelude}\n${css}`
: `${settingsPrelude}\n@layer ${wrapLayer} {\n${css}\n}`;
const processed = await process(wrapped, join(SRC, file));
await writeFile(join(OUT, "css", file), BANNER + processed.trim() + "\n");
await writeFile(
join(OUT, "css", file),
PART_BANNER + processed.trim() + "\n",
);
indexImports.push(
importsOnly
? `@import url(./${file}); /* the default theme */`
Expand Down
Loading