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/viewport.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

21 lines
363 B
SCSS
Vendored

@use "breakpoints";
$breakpoints: breakpoints.$breakpoints;
@mixin from($bp) {
@media (width >= #{breakpoints.get($bp)}) {
@content;
}
}
@mixin until($bp) {
@media (width < #{breakpoints.get($bp)}) {
@content;
}
}
@mixin between($from, $until) {
@media (#{breakpoints.get($from)} <= width < #{breakpoints.get($until)}) {
@content;
}
}