diff options
author | 2022-09-29 08:20:00 -0700 | |
---|---|---|
committer | 2022-09-29 11:20:00 -0400 | |
commit | d08093f7d4f9762c0edc71e14c796d7ea8038cda (patch) | |
tree | fae95330db4aeaf16841e16bd24c24e61c11c107 /.changeset/small-bugs-prove.md | |
parent | 10317c65feefd34a2b4b6142a4bdd1f1cc19f58e (diff) | |
download | astro-d08093f7d4f9762c0edc71e14c796d7ea8038cda.tar.gz astro-d08093f7d4f9762c0edc71e14c796d7ea8038cda.tar.zst astro-d08093f7d4f9762c0edc71e14c796d7ea8038cda.zip |
[ci] release (#4903)astro@1.4.0@astrojs/vue@1.1.0@astrojs/vercel@2.1.0@astrojs/telemetry@1.0.1@astrojs/tailwind@2.0.2@astrojs/svelte@1.0.1@astrojs/rss@1.0.2@astrojs/preact@1.1.1@astrojs/node@1.1.0@astrojs/netlify@1.1.0@astrojs/mdx@0.11.3@astrojs/markdown-remark@1.1.3@astrojs/image@0.8.1@astrojs/deno@1.1.0@astrojs/cloudflare@2.1.0
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Diffstat (limited to '.changeset/small-bugs-prove.md')
-rw-r--r-- | .changeset/small-bugs-prove.md | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/.changeset/small-bugs-prove.md b/.changeset/small-bugs-prove.md deleted file mode 100644 index 16a89271d..000000000 --- a/.changeset/small-bugs-prove.md +++ /dev/null @@ -1,34 +0,0 @@ ---- -'astro': minor ---- - -Order Astro styles last, to override imported styles - -This fixes CSS ordering so that imported styles are placed *higher* than page/component level styles. This means that if you do: - -```astro ---- -import '../styles/global.css'; ---- -<style> - body { - background: limegreen; - } -</style> -``` - -The `<style>` defined in this component will be placed *below* the imported CSS. When compiled for production this will result in something like this: - -```css -/* /src/styles/global.css */ -body { - background: blue; -} - -/* /src/pages/index.astro */ -body:where(.astro-12345) { - background: limegreen; -} -``` - -Given Astro's 0-specificity hashing, this change effectively makes it so that Astro styles "win" when they have the same specificity as global styles. |