This repository has been archived on 2024-12-22. You can view files and clone it, but cannot push or open issues or pull requests.
waifulog_old/themes/hugo-theme-stack/assets/scss/breakpoints.scss

17 lines
361 B
SCSS

$breakpoints: (
sm: 640px,
md: 768px,
lg: 1024px,
xl: 1280px,
2xl: 1536px,
);
@mixin respond($breakpoint) {
@if not map-has-key($breakpoints, $breakpoint) {
@warn "'#{$breakpoint}' is not a valid breakpoint";
} @else {
@media (min-width: map-get($breakpoints, $breakpoint)) {
@content;
}
}
}