Skip to content

Commit fc35c2d

Browse files
susnuxbackportbot[bot]
authored andcommitted
fix(css): correct boundaries of breaking points
We mixed the logic of breaking points (when to break), this makes it consistent: Mobile breaking point is 1024px, so it is applied to width < 1024 and starting with 1024 its "normal". So we consistently have: width < 512px: small mobile 512 <= width < 1024px: mobile width >= 1024px: normal Signed-off-by: Ferdinand Thiessen <[email protected]>
1 parent d286fef commit fc35c2d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/css/apps.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
@use 'sass:math';
88
@use 'functions';
99

10-
@media screen and (max-width: variables.$breakpoint-mobile) {
10+
@media screen and (width < #{variables.$breakpoint-mobile}) {
1111
// Make the body full width on mobile
1212
:root {
1313
--body-container-margin: 0px !important;
@@ -715,7 +715,7 @@ body[dir='rtl'] {
715715
}
716716
}
717717

718-
@media only screen and (max-width: variables.$breakpoint-mobile) {
718+
@media only screen and (width < #{variables.$breakpoint-mobile}) {
719719
#content {
720720
border-start-start-radius: var(--border-radius-large);
721721
border-start-end-radius: var(--border-radius-large);

0 commit comments

Comments
 (0)