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