Skip to content

Commit ab89345

Browse files
committed
fix: remove custom medias that are not supposed to be used
These caused devs to use the custom medias in a wrong manner.
1 parent 7408264 commit ab89345

File tree

2 files changed

+3
-23
lines changed

2 files changed

+3
-23
lines changed

docusaurus/docs/what-is-included/breakpoints.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Here's an example:
2828
.myPage {
2929
padding: 0 25px;
3030

31-
@media (--lte-sm) {
31+
@media (--lt-sm) {
3232
padding: 0 10px;
3333
}
3434
}

www/shared/styles/imports/custom-medias.css

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,7 @@
44
Use it like so: @media (--sm) { ... }
55
========================================================================== */
66

7-
/* Use these if you are developing for desktop first and want to target lower resolutions (including) */
8-
9-
@custom-media --lte-xxs (width <= 20em); /* 320px */
10-
@custom-media --lte-xs (width <= 30em); /* 480px */
11-
@custom-media --lte-sm (width <= 48em); /* 768px */
12-
@custom-media --lte-md (width <= 64em); /* 1024px */
13-
@custom-media --lte-lg (width <= 80em); /* 1280px */
14-
@custom-media --lte-xl (width <= 90em); /* 1440px */
15-
@custom-media --lte-xxl (width <= 120em); /* 1920px */
16-
17-
/* Use these if you are developing for desktop first and want to target lower resolutions (not including) */
7+
/* Use these if you are developing for desktop first and want to target lower resolutions */
188

199
@custom-media --lt-xxs (width < 20em); /* 320px */
2010
@custom-media --lt-xs (width < 30em); /* 480px */
@@ -24,7 +14,7 @@
2414
@custom-media --lt-xl (width < 90em); /* 1440px */
2515
@custom-media --lt-xxl (width < 120em); /* 1920px */
2616

27-
/* Use these if you are developing for mobile first and want to target higher resolutions (including) */
17+
/* Use these if you are developing for mobile first and want to target higher resolutions */
2818

2919
@custom-media --gte-xxs (width >= 0); /* 0 */
3020
@custom-media --gte-xs (width >= 30em); /* 480px */
@@ -33,13 +23,3 @@
3323
@custom-media --gte-lg (width >= 80em); /* 1280px */
3424
@custom-media --gte-xl (width >= 90em); /* 1440px */
3525
@custom-media --gte-xxl (width >= 120em); /* 1920px */
36-
37-
/* Use these if you are developing for mobile first and want to target higher resolutions (not including) */
38-
39-
@custom-media --gt-xxs (width > 0); /* 0 */
40-
@custom-media --gt-xs (width > 30em); /* 480px */
41-
@custom-media --gt-sm (width > 48em); /* 768px */
42-
@custom-media --gt-md (width > 64em); /* 1024px */
43-
@custom-media --gt-lg (width > 80em); /* 1280px */
44-
@custom-media --gt-xl (width > 90em); /* 1440px */
45-
@custom-media --gt-xxl (width > 120em); /* 1920px */

0 commit comments

Comments
 (0)