2025-01-04 12:59:45 -08:00
|
|
|
@mixin flex-center {
|
2022-07-14 20:36:47 -07:00
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
}
|
2022-10-22 10:45:54 +02:00
|
|
|
|
2025-01-04 12:59:45 -08:00
|
|
|
@mixin screen($breakpoint) {
|
|
|
|
@if $breakpoint == desktop {
|
2023-06-20 20:56:37 -07:00
|
|
|
@media only screen and (width >= 768px) {
|
2022-10-22 10:45:54 +02:00
|
|
|
@content;
|
|
|
|
}
|
|
|
|
}
|
2023-04-26 23:31:23 +01:00
|
|
|
|
|
|
|
// 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.
|
2022-12-29 19:14:12 +01:00
|
|
|
@if $breakpoint == tablet {
|
2023-06-20 20:56:37 -07:00
|
|
|
@media only screen and (width <= 768px) {
|
2022-12-29 19:14:12 +01:00
|
|
|
@content;
|
|
|
|
}
|
|
|
|
}
|
2023-06-20 20:56:37 -07:00
|
|
|
|
2022-10-22 10:45:54 +02:00
|
|
|
@if $breakpoint == mobile {
|
2023-06-20 20:56:37 -07:00
|
|
|
@media only screen and (width <= 481px) {
|
2022-10-22 10:45:54 +02:00
|
|
|
@content;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|