@symbo.ls/scratch 2.11.429 → 2.11.438

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@symbo.ls/scratch",
3
3
  "description": "Φ / CSS framework and methodology.",
4
4
  "author": "symbo.ls",
5
- "version": "2.11.429",
5
+ "version": "2.11.438",
6
6
  "files": [
7
7
  "src",
8
8
  "dist"
@@ -30,5 +30,5 @@
30
30
  "@symbo.ls/utils": "latest",
31
31
  "color-contrast-checker": "^1.5.0"
32
32
  },
33
- "gitHead": "ff81d19b0ad978bbba24590f269a7bdbb6799798"
33
+ "gitHead": "57bac07f08cd6a88591767f41a408e0915815237"
34
34
  }
@@ -14,9 +14,11 @@ export const BREAKPOINTS = {
14
14
  }
15
15
 
16
16
  export const DEVICES = {
17
+ screenXXL: [2560, 1440],
18
+ screenXL: [2240, 1260],
17
19
  screenL: [1920, 1024],
18
20
  screenM: [1680, 1024],
19
- screenS: [1440, 978],
21
+ screenS: [1440, 720],
20
22
  tabletL: [1366, 926],
21
23
  tabletM: [1280, 768],
22
24
  tabletS: [1024, 768],
@@ -73,7 +73,7 @@ export const getMediaColor = (value, globalTheme, config) => {
73
73
  const obj = {}
74
74
  for (const mediaName in val) {
75
75
  const query = CONFIG.MEDIA[mediaName.slice(1)]
76
- const media = `@media screen and ${query}`
76
+ const media = '@media ' + (query === 'print' ? `${query}` : `screen and ${query}`)
77
77
  obj[media] = getColor(value, mediaName, config)
78
78
  }
79
79
  return obj
@@ -88,7 +88,7 @@ export const getShadow = (value, globalTheme) => {
88
88
  const obj = {}
89
89
  for (const mediaName in val) {
90
90
  const query = CONFIG.MEDIA[mediaName.slice(1)]
91
- const media = `@media screen and ${query}`
91
+ const media = '@media ' + (query === 'print' ? `${query}` : `screen and ${query}`)
92
92
  obj[media] = val.value
93
93
  }
94
94
  return obj
@@ -192,7 +192,7 @@ const recursiveTheme = val => {
192
192
  if (isObjectLike(val[param])) {
193
193
  if (symb === '@') {
194
194
  const query = CONFIG.MEDIA[param.slice(1)]
195
- const media = `@media screen and ${query}`
195
+ const media = '@media ' + (query === 'print' ? `${query}` : `screen and ${query}`)
196
196
  obj[media] = recursiveTheme(val[param])
197
197
  } else if (symb === ':') {
198
198
  obj[`&${param}`] = recursiveTheme(val[param])
@@ -44,7 +44,8 @@ export const runThroughMedia = FACTORY => {
44
44
  })
45
45
 
46
46
  const query = MEDIA[mediaName]
47
- TYPOGRAPHY.templates[`@media screen and ${query}`] = {
47
+ const media = '@media ' + (query === 'print' ? `${query}` : `screen and ${query}`)
48
+ TYPOGRAPHY.templates[media] = {
48
49
  fontSize: mediaValue.base / TYPOGRAPHY.browserDefault + unit
49
50
  }
50
51