0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-11 02:59:07 +08:00
discourse/app/assets/stylesheets/lib/breakpoints.scss
Manuel Kostka 6db0f1eaea
Add container queries library (#41876)
Adds lib/container alongside the existing lib/viewport library and moves
the shared breakpoint scale into a dedicated lib/breakpoints file used
by both libraries.
2026-07-29 18:42:45 +01:00

19 lines
339 B
SCSS
Vendored

@use "sass:map";
// Shared breakpoint scale used by the viewport and container libraries
$breakpoints: (
xs: 20rem,
sm: 40rem,
md: 48rem,
lg: 64rem,
xl: 80rem,
2xl: 96rem,
);
@function get($bp) {
@if not map.has-key($breakpoints, $bp) {
@error "Invalid breakpoint: #{$bp}";
}
@return map.get($breakpoints, $bp);
}