breakpoints-js
breakpoints-js copied to clipboard
Get actual breakpoints from defined BS4 css custom properties.
Is code getting actual breakpoints also from defined BS4 CSS custom properties? It seems they are only hardcoded inside script? Or I'm wrong? Of course, values of breakpoints may vary from project to project. So the definition in the script would then have to be changed. As you know, there are available CSS custom properties from which the current breakpoints values can be read:
:root {
...
--breakpoint-xs: 0;
--breakpoint-sm: 576px;
--breakpoint-md: 768px;
--breakpoint-lg: 992px;
--breakpoint-xl: 1200px;
...
}
What do you think?
Discussion o about this https://github.com/twbs/bootstrap/issues/25124#issuecomment-354547658