mirror of
https://github.com/discourse/discourse.git
synced 2026-08-11 02:59:07 +08:00
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.
19 lines
339 B
SCSS
Vendored
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);
|
|
}
|