@ndla/preset-panda 0.0.8 → 0.0.9

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/dist/styles.css CHANGED
@@ -60,7 +60,7 @@
60
60
  line-height: var(--line-heights-3xlarge);
61
61
  }
62
62
 
63
- h1:where([lang='zh'], h1[lang='zh-Hans'], h1[lang='zh-Hant']):not([data-pinyin]) {
63
+ h1:where([lang='zh'], [lang='zh-Hans'], [lang='zh-Hant']):not([data-pinyin]) {
64
64
  font-size: calc(var(--font-sizes-3xlarge) * 1.11);
65
65
  line-height: calc(var(--line-heights-3xlarge) * 1.11);
66
66
  }
@@ -72,7 +72,7 @@
72
72
  line-height: var(--line-heights-xxlarge);
73
73
  }
74
74
 
75
- h2:where([lang='zh'], h2[lang='zh-Hans'], h2[lang='zh-Hant']):not([data-pinyin]) {
75
+ h2:where([lang='zh'], [lang='zh-Hans'], [lang='zh-Hant']):not([data-pinyin]) {
76
76
  font-size: calc(var(--font-sizes-xxlarge) * 1.11);
77
77
  line-height: calc(var(--line-heights-xxlarge) * 1.11);
78
78
  }
@@ -84,7 +84,7 @@
84
84
  line-height: var(--line-heights-xlarge);
85
85
  }
86
86
 
87
- h3:where([lang='zh'], h3[lang='zh-Hans'], h3[lang='zh-Hant']):not([data-pinyin]) {
87
+ h3:where([lang='zh'], [lang='zh-Hans'], [lang='zh-Hant']):not([data-pinyin]) {
88
88
  font-size: calc(var(--font-sizes-xlarge) * 1.11);
89
89
  line-height: calc(var(--line-heights-xlarge) * 1.11);
90
90
  }
@@ -96,7 +96,7 @@
96
96
  line-height: var(--line-heights-large);
97
97
  }
98
98
 
99
- h4:where([lang='zh'], h4[lang='zh-Hans'], h4[lang='zh-Hant']):not([data-pinyin]),h5:where([lang='zh'], h5[lang='zh-Hans'], h5[lang='zh-Hant']):not([data-pinyin]),h6:where([lang='zh'], h6[lang='zh-Hans'], h6[lang='zh-Hant']):not([data-pinyin]) {
99
+ h4:where([lang='zh'], [lang='zh-Hans'], [lang='zh-Hant']):not([data-pinyin]),h5:where([lang='zh'], [lang='zh-Hans'], [lang='zh-Hant']):not([data-pinyin]),h6:where([lang='zh'], [lang='zh-Hans'], [lang='zh-Hant']):not([data-pinyin]) {
100
100
  font-size: calc(var(--font-sizes-large) * 1.11);
101
101
  line-height: calc(var(--line-heights-large) * 1.11);
102
102
  }
@@ -108,7 +108,7 @@
108
108
  line-height: var(--line-heights-small);
109
109
  }
110
110
 
111
- p:where([lang='zh'], p[lang='zh-Hans'], p[lang='zh-Hant']):not([data-pinyin]) {
111
+ p:where([lang='zh'], [lang='zh-Hans'], [lang='zh-Hant']):not([data-pinyin]) {
112
112
  font-size: calc(var(--font-sizes-small) * 1.11);
113
113
  line-height: calc(var(--line-heights-small) * 1.11);
114
114
  }
package/es/conditions.js CHANGED
@@ -7,6 +7,6 @@
7
7
  */
8
8
 
9
9
  export const conditions = {
10
- chinese: "&:where([lang='zh'], &[lang='zh-Hans'], &[lang='zh-Hant']):not([data-pinyin])",
10
+ chinese: "&:where([lang='zh'], [lang='zh-Hans'], [lang='zh-Hant']):not([data-pinyin])",
11
11
  ariaInvalid: "&:has([aria-invalid='true']), &[aria-invalid='true']"
12
12
  };
package/lib/conditions.js CHANGED
@@ -13,6 +13,6 @@ exports.conditions = void 0;
13
13
  */
14
14
 
15
15
  const conditions = exports.conditions = {
16
- chinese: "&:where([lang='zh'], &[lang='zh-Hans'], &[lang='zh-Hant']):not([data-pinyin])",
16
+ chinese: "&:where([lang='zh'], [lang='zh-Hans'], [lang='zh-Hant']):not([data-pinyin])",
17
17
  ariaInvalid: "&:has([aria-invalid='true']), &[aria-invalid='true']"
18
18
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ndla/preset-panda",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "description": "Panda preset for NDLA.",
5
5
  "license": "GPL-3.0",
6
6
  "main": "lib/index.js",
@@ -36,5 +36,5 @@
36
36
  "publishConfig": {
37
37
  "access": "public"
38
38
  },
39
- "gitHead": "4ac0e49e0801e6ec6dae57ea37b5af9ab9b882e7"
39
+ "gitHead": "8c3254246b993068a867ab9ec9594347d5ebf439"
40
40
  }