Skip to content

Commit 64e63aa

Browse files
adamstankiewiczmonteri
authored and
monteri
committed
fix: use min-width in custom-media breakpoint definitions (openedx#2098)
1 parent f24460f commit 64e63aa

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed
+7-7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/**
22
* IMPORTANT: This file is the result of assembling design tokens
33
* Do not edit directly
4-
* Generated on Fri, 24 Feb 2023 11:38:50 GMT
4+
* Generated on Sun, 26 Feb 2023 16:21:31 GMT
55
*/
66

7-
@custom-media --pgn-size-breakpoint-xs (max-width: 0);
8-
@custom-media --pgn-size-breakpoint-sm (max-width: 576px);
9-
@custom-media --pgn-size-breakpoint-md (max-width: 768px);
10-
@custom-media --pgn-size-breakpoint-lg (max-width: 992px);
11-
@custom-media --pgn-size-breakpoint-xl (max-width: 1200px);
12-
@custom-media --pgn-size-breakpoint-xxl (max-width: 1400px);
7+
@custom-media --pgn-size-breakpoint-xs (min-width: 0);
8+
@custom-media --pgn-size-breakpoint-sm (min-width: 576px);
9+
@custom-media --pgn-size-breakpoint-md (min-width: 768px);
10+
@custom-media --pgn-size-breakpoint-lg (min-width: 992px);
11+
@custom-media --pgn-size-breakpoint-xl (min-width: 1200px);
12+
@custom-media --pgn-size-breakpoint-xxl (min-width: 1400px);

scss/core/css/utility-classes.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* IMPORTANT: This file is the result of assembling design tokens
33
* Do not edit directly
4-
* Generated on Fri, 24 Feb 2023 12:30:21 GMT
4+
* Generated on Sun, 26 Feb 2023 16:21:31 GMT
55
*/
66

77
.bg-dark {

scss/core/css/variables.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* IMPORTANT: This file is the result of assembling design tokens
33
* Do not edit directly
4-
* Generated on Fri, 24 Feb 2023 12:30:21 GMT
4+
* Generated on Sun, 26 Feb 2023 16:21:31 GMT
55
*/
66

77
:root {

tokens/style-dictionary.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ StyleDictionary.registerFormat({
174174
let customMediaVariables = '';
175175

176176
Object.values(breakpoint).forEach(item => {
177-
customMediaVariables += `@custom-media --${item.name} (max-width: ${item.value}); \n`;
177+
customMediaVariables += `@custom-media --${item.name} (min-width: ${item.value});\n`;
178178
});
179179

180180
return fileHeader({ file }) + customMediaVariables;

0 commit comments

Comments
 (0)