mirror of
https://github.com/Snigdha-OS/Snigdha-OS.github.io.git
synced 2025-09-06 20:55:18 +02:00
26 lines
624 B
SCSS
26 lines
624 B
SCSS
// | -------------------------------------------------------------
|
|
// | Breakpoint
|
|
// | -------------------------------------------------------------
|
|
|
|
$breakpoints: (
|
|
"default": 0,
|
|
"small": 24em,
|
|
"medium": 48em,
|
|
"large": 75em
|
|
) !default;
|
|
|
|
@mixin breakpoint($breakpoint) {
|
|
@if map-has-key($breakpoints, $breakpoint) {
|
|
@media (min-width: map-get($breakpoints, $breakpoint)) {
|
|
@content;
|
|
}
|
|
} @else if (type_of($breakpoint) == number) {
|
|
@media (min-width: $breakpoint+"px") {
|
|
@content;
|
|
}
|
|
}
|
|
@else {
|
|
@error "Not a correct value, check _base-breakpoints for available values.";
|
|
}
|
|
}
|