illright / attractions

A pretty cool UI kit for Svelte
https://illright.github.io/attractions
MIT License
1.03k stars 37 forks source link

CSS media breakpoints support? #358

Open divStar opened 1 year ago

divStar commented 1 year ago

Hi there,

I would like to know if there is any kind of CSS media breakpoints support.

My current case: I have chips for a particular view selection and I would like to hide the text labels if the screen width becomes smaller than a certain amount of pixels.

grafik

=>

grafik

In the latter screenshot I'd like to hide the text in the chip.

Should I code it by my own? I know e.g. Tailwind CSS supports this and from what I remember there are other frameworks in general, which are "media breakpoints"-aware.

illright commented 1 year ago

Yeah, you'll have to code these yourself. Attractions does ship with some media queries to adapt the components to screen sizes, but custom adaptation logic will have to be coded in manually