primeflex icon indicating copy to clipboard operation
primeflex copied to clipboard

Support more breakpoints

Open axos88 opened this issue 2 years ago • 3 comments

Is it possible to change the number of breakpoints? 4 is not too many, and different projects have different needs.

Bootstrap supports a dynamic number of breakpoints for example, that would be awesome!

axos88 avatar Dec 30 '23 16:12 axos88

+1 -- Also looking for the correct way to handle this in the latest versions of Primeflex -- the previously documented SCSS variables appear to have changed and we need to enable progressive support for larger breakpoints

agertenbach avatar Jan 31 '24 16:01 agertenbach

This works for me currently, but some proper documentation would be nice:

@import 'primeflex/core/variables';

$xxl: 1600px;
$fhd: 1920px;
$qhd: 2560px;

$breakpoints: (
  'sm': $sm,
  'md': $md,
  'lg': $lg,
  'xl': $xl,
  'xxl': $xxl,
  'fhd': $fhd,
  'qhd': $qhd
);

@import 'primeflex/primeflex.scss';

axos88 avatar Jun 06 '24 09:06 axos88

Hello, and thank you for the excellent work on PrimeFlex! I appreciate the utility and flexibility it provides.

Currently, PrimeFlex defines breakpoints as follows:

$breakpoints: ( 'sm': 576px, 'md': 768px, 'lg': 992px, 'xl': 1200px ) !default;

However, I would like to request the addition of more breakpoints, similar to what Bootstrap offers. Bootstrap includes an extra small (xs) breakpoint and an extra-extra-large (xxl) breakpoint, which provide more granularity for responsive designs.

Adding these breakpoints would make it easier to handle layouts for very small or very large screens, providing more flexibility for modern responsive design.

For example, the updated $breakpoints map could look like this:

$breakpoints: ( 'xs': 0px, 'sm': 576px, 'md': 768px, 'lg': 992px, 'xl': 1200px, 'xxl': 1400px ) !default;

This change would align PrimeFlex more closely with other popular frameworks, making migration or integration smoother for developers. It would also provide more versatility for tailoring designs across a broader range of devices.

Thank you for considering this enhancement, and I look forward to hearing your thoughts on this!

Best regards.

m4n50n avatar Jan 16 '25 09:01 m4n50n