Fomantic-UI icon indicating copy to clipboard operation
Fomantic-UI copied to clipboard

[Site] Helper classes

Open y0hami opened this issue 7 years ago • 12 comments

Create helper classes for padding, margin and may be responsive breakpoints.

Original Issue: https://github.com/Semantic-Org/Semantic-UI/issues/6195

Examples:

large top margin
small left padding
only show on mobile
only show on computer
dont show on tablet
only show on tablet and mobile

etc.

y0hami avatar Jun 11 '18 14:06 y0hami

Going to put this on hold for now until the device visibility is more thought out.

y0hami avatar Aug 17 '18 11:08 y0hami

I am using the css additions from https://github.com/Semantic-Org/Semantic-UI/issues/1114#issuecomment-201057438 which adds global support for

mobile only mobile hidden, tablet only tablet hidden computer only computer hidden large screen only large screen hidden widescreen only widescreen hidden or lower hidden

and works flawlessly so far

lubber-de avatar Oct 11 '18 20:10 lubber-de

@lubber-de That could be a starting point

y0hami avatar Oct 11 '18 21:10 y0hami

Is it still on hold ?

It could be good to have these kind of helpers directly inside the library

etshy avatar Dec 03 '18 08:12 etshy

@etshy This is on hold for now because we want to do more then just these modifiers and we also want to make it customizable as much as possible allow users to put these classes on anything and different combinations and for it to still work. This will take a lot of testing/work which is why it is on hold.

y0hami avatar Dec 03 '18 09:12 y0hami

oooh, nice.

Thanks for all that work. 👍

etshy avatar Dec 03 '18 09:12 etshy

https://github.com/Semantic-Org/Semantic-UI/issues/6195#issuecomment-465525195

P.S.: https://github.com/Semantic-Org/Semantic-UI/issues/6195#issuecomment-767167898

Something for margins/paddings would be useful. Because I hate my buttons to stick vertically like that:

image

ivantcholakov avatar Jan 25 '21 00:01 ivantcholakov

Button groups now have a spaced variant which takes care about a margin next to lower buttons https://fomantic-ui.com/elements/button.html#spaced-buttons

lubber-de avatar Dec 27 '22 16:12 lubber-de

We have mobile only row, but what if I want to display something completely different on tablet and desktop. There should be a way to say

<!-- for mobile-->
<div className="mobile only row">
   <some-dropdown/>
<div>

<!-- for tablet and above -->
<div className="mobile hidden row">
   <button-group-thing/>
<div>

TheDevelolper avatar Jul 15 '23 10:07 TheDevelolper

@TheDevelolper Look at my comment above. https://github.com/fomantic/Fomantic-UI/issues/22#issuecomment-429109342

lubber-de avatar Jul 15 '23 14:07 lubber-de

@TheDevelolper Look at my comment above. https://github.com/fomantic/Fomantic-UI/issues/22#issuecomment-429109342

Yeah I saw this but I'm using formantic via npm so not sure if it's possible to tell npm to use that branch?

I added my own mobile only class for the moment.

That branch should just be merged in. I get it formantic want to do more but this is better than nothing and it could serve as a basis for future improvements.

TheDevelolper avatar Jul 15 '23 15:07 TheDevelolper

Which Branch? My comment points to a post which contains some additional custom css which you can just copy into your own project.

lubber-de avatar Jul 15 '23 15:07 lubber-de