From 244fa3b61d25b57116581e79e8ff05591007b050 Mon Sep 17 00:00:00 2001 From: Nathaniel Sabanski Date: Sat, 30 Sep 2023 23:45:35 -0700 Subject: [PATCH 01/32] Update example.html --- example.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/example.html b/example.html index 8a483df..80bfdd6 100644 --- a/example.html +++ b/example.html @@ -2,8 +2,9 @@ 🌘 CSS Scope Inline Test Page + + - red
green
From 3ed9972f5b2b268b0f3fcdd5b122fb089ab365f6 Mon Sep 17 00:00:00 2001 From: Nathaniel Sabanski Date: Wed, 27 Nov 2024 15:45:27 -0800 Subject: [PATCH 30/32] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4a75837..c87898c 100644 --- a/README.md +++ b/README.md @@ -63,8 +63,8 @@ Use whatever you'd like, but there's a few advantages with this approach over Ta * Flat, 1 selector per line can be very short like Tailwind. See the examples. * Use just plain CSS variables in your design system. * Use the short `@media` queries for responsive design. - * Mobile First (flow: **above** breakpoint): **🟢 None** `sm` `md` `lg` `xl` `xx` 🏁 - * Desktop First (flow: **below** breakpoint): 🏁 `xs-` `sm-` `md-` `lg-` `xl-` **🟢 None** + * Mobile First (flow: **above** breakpoint): **🟢 None (xs)** `sm` `md` `lg` `xl` `xx` 🏁 + * Desktop First (flow: **below** breakpoint): 🏁 `xs-` `sm-` `md-` `lg-` `xl-` **🟢 None (xx)** * 🟢 = No breakpoint. Default. See the [Live Example](https://gnat.github.io/css-scope-inline/example.html)! * Based on [Tailwind](https://tailwindcss.com/docs/responsive-design) breakpoints. We use `xx` not `2xl` to not break CSS highlighters. * Unlike Tailwind, you can [nest your @media styles](https://developer.chrome.com/articles/css-nesting/#nesting-media)! From b75583fe2bc4af41c4f187a5bb7ef5a790ce90cd Mon Sep 17 00:00:00 2001 From: Nathaniel Sabanski Date: Thu, 28 Nov 2024 13:28:02 -0800 Subject: [PATCH 31/32] Improved Responsive Design docs. --- example.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/example.html b/example.html index 2c59d33..02fb7e7 100644 --- a/example.html +++ b/example.html @@ -74,7 +74,7 @@

🛸 Scoped style using me

me div ul li { display: inline-block; width: 110px; text-align: center; background: #444; border-radius: 5px; padding: 10px 2px; margin: 10px 10px }

Responsive Design 🔛 Resize the window!

- 🟢 = No breakpoint. Default. + 🟢 = None specified.
-
Mobile First (above breakpoint)
+
📱 Mobile First! Add styles as size increases.
  • 🟢 None
  • sm
  • md
  • lg
  • xl
  • 🏁 xx
@@ -99,7 +99,7 @@

Responsive Design 🔛 Resize the window!

@media xs- { &[n6] { background: var(--color); } } } -
Desktop First (below breakpoint)
+
💻 Desktop First! Add styles as size decreases.
  • 🏁 xs-
  • sm-
  • md-
  • lg-
  • xl-
  • 🟢 None

From 94c64bef727a6f81317f0473d379a133e9d35ef4 Mon Sep 17 00:00:00 2001 From: Nathaniel Sabanski Date: Sat, 30 Nov 2024 05:49:03 -0800 Subject: [PATCH 32/32] Added more notes to Tailwind comparison. --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c87898c..38435f5 100644 --- a/README.md +++ b/README.md @@ -47,9 +47,10 @@ Or, 🌐 CDN: `