Rezi / sugar-css

Other
36 stars 2 forks source link

Layers and dropdowns #1

Open zkmark opened 4 months ago

zkmark commented 4 months ago

This project seems good to me, since it is the only modern framework that uses only CSS and is very lightweight

And I was wondering if dropdowns would be added to this project? , they would be a good complement to the menus https://moderncss.dev/css-only-accessible-dropdown-navigation-menu/

On the other hand, wouldn't it be better to stop using where and have the user use layers? Layer support is almost the same as where, plus the code would be reduced a little more

layers 94.4% https://caniuse.com/css-cascade-layers

where 94.52% https://caniuse.com/mdn-css_selectors_where

And finally, I think that import @use should be used to make it compatible with other projects

Since it only occurs to me to import the sugar.css file before my sass project

Rezi commented 4 months ago
Rezi commented 1 month ago

@use is now used over @import layers are still not there but will be used in next minor version. As I see knowledge of layers becoming better