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.
21 lines
363 B
SCSS
Vendored
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;
|
|
}
|
|
}
|