owncast/web/styles/mixins.scss

27 lines
574 B
SCSS
Raw Normal View History

@mixin flexCenter {
display: flex;
justify-content: center;
align-items: center;
}
2023-06-21 05:56:37 +02:00
@mixin screen($breakpoint) {
@if $breakpoint == desktop {
2023-06-21 05:56:37 +02:00
@media only screen and (width >= 768px) {
@content;
}
}
// tablet will also apply to mobile as there is no cut-off for min-width, however changing this now could break CSS all over the site.
@if $breakpoint == tablet {
2023-06-21 05:56:37 +02:00
@media only screen and (width <= 768px) {
@content;
}
}
2023-06-21 05:56:37 +02:00
@if $breakpoint == mobile {
2023-06-21 05:56:37 +02:00
@media only screen and (width <= 481px) {
@content;
}
}
}