@ndla/preset-panda 0.0.29 → 0.0.30

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
@@ -82,25 +82,25 @@
82
82
  .ndla-article h3 {
83
83
  font-family: var(--fonts-sans);
84
84
  font-weight: var(--font-weights-bold);
85
- font-size: var(--font-sizes-xlarge);
86
- line-height: var(--line-heights-xlarge);
85
+ font-size: var(--font-sizes-large);
86
+ line-height: var(--line-heights-large);
87
87
  }
88
88
 
89
89
  .ndla-article h3:where([lang='zh'], [lang='zh-Hans'], [lang='zh-Hant']):not([data-pinyin]) {
90
- font-size: calc(var(--font-sizes-xlarge) * 1.11);
91
- line-height: calc(var(--line-heights-xlarge) * 1.11);
90
+ font-size: calc(var(--font-sizes-large) * 1.11);
91
+ line-height: calc(var(--line-heights-large) * 1.11);
92
92
  }
93
93
 
94
94
  .ndla-article h4,.ndla-article h5,.ndla-article h6 {
95
95
  font-family: var(--fonts-sans);
96
96
  font-weight: var(--font-weights-bold);
97
- font-size: var(--font-sizes-large);
98
- line-height: var(--line-heights-large);
97
+ font-size: var(--font-sizes-medium);
98
+ line-height: var(--line-heights-small);
99
99
  }
100
100
 
101
101
  .ndla-article h4:where([lang='zh'], [lang='zh-Hans'], [lang='zh-Hant']):not([data-pinyin]),.ndla-article h5:where([lang='zh'], [lang='zh-Hans'], [lang='zh-Hant']):not([data-pinyin]),.ndla-article h6:where([lang='zh'], [lang='zh-Hans'], [lang='zh-Hant']):not([data-pinyin]) {
102
- font-size: calc(var(--font-sizes-large) * 1.11);
103
- line-height: calc(var(--line-heights-large) * 1.11);
102
+ font-size: calc(var(--font-sizes-medium) * 1.11);
103
+ line-height: calc(var(--line-heights-small) * 1.11);
104
104
  }
105
105
 
106
106
  .ndla-article p[data-align="center"] {
@@ -117,17 +117,17 @@
117
117
  }
118
118
 
119
119
  .ndla-article section:not([class]) > :is(h2, [data-embed-type="copy-heading"]),.ndla-article section:not([class]) > div:not([class]) > :is(h2, [data-embed-type="copy-heading"]),.ndla-article [data-embed-type="framed-content"] > :is(h2, [data-embed-type="copy-heading"]),.ndla-article [data-embed-type="grid"] > div > :is(h2, [data-embed-type="copy-heading"]),.ndla-article [data-embed-type="grid-parallax"] > div > :is(h2, [data-embed-type="copy-heading"]),.ndla-article [data-embed-type="factbox"] > div > :is(h2, [data-embed-type="copy-heading"]),.ndla-article [data-embed-type="copyright"] > :is(h2, [data-embed-type="copy-heading"]),.ndla-article [data-embed-type="uu-disclaimer"] > :is(h2, [data-embed-type="copy-heading"]),.ndla-article details > :is(h2, [data-embed-type="copy-heading"]),.ndla-article blockquote > :is(h2, [data-embed-type="copy-heading"]) {
120
- margin-block-start: var(--spacing-xxlarge);
121
- margin-block-end: var(--spacing-medium);
120
+ margin-block-start: var(--spacing-xlarge);
121
+ margin-block-end: var(--spacing-small);
122
122
  }
123
123
 
124
124
  .ndla-article section:not([class]) > h3,.ndla-article section:not([class]) > div:not([class]) > h3,.ndla-article [data-embed-type="framed-content"] > h3,.ndla-article [data-embed-type="grid"] > div > h3,.ndla-article [data-embed-type="grid-parallax"] > div > h3,.ndla-article [data-embed-type="factbox"] > div > h3,.ndla-article [data-embed-type="copyright"] > h3,.ndla-article [data-embed-type="uu-disclaimer"] > h3,.ndla-article details > h3,.ndla-article blockquote > h3 {
125
- margin-block-start: var(--spacing-xlarge);
126
- margin-block-end: var(--spacing-small);
125
+ margin-block-start: var(--spacing-large);
126
+ margin-block-end: var(--spacing-xsmall);
127
127
  }
128
128
 
129
129
  .ndla-article section:not([class]) > :is(h4, h5, h6),.ndla-article section:not([class]) > div:not([class]) > :is(h4, h5, h6),.ndla-article [data-embed-type="framed-content"] > :is(h4, h5, h6),.ndla-article [data-embed-type="grid"] > div > :is(h4, h5, h6),.ndla-article [data-embed-type="grid-parallax"] > div > :is(h4, h5, h6),.ndla-article [data-embed-type="factbox"] > div > :is(h4, h5, h6),.ndla-article [data-embed-type="copyright"] > :is(h4, h5, h6),.ndla-article [data-embed-type="uu-disclaimer"] > :is(h4, h5, h6),.ndla-article details > :is(h4, h5, h6),.ndla-article blockquote > :is(h4, h5, h6) {
130
- margin-block-start: var(--spacing-large);
130
+ margin-block-start: var(--spacing-medium);
131
131
  margin-block-end: var(--spacing-xsmall);
132
132
  }
133
133
 
@@ -166,6 +166,10 @@
166
166
  text-decoration: underline;
167
167
  }
168
168
 
169
+ a:not([class]):not([data-unstyled]):visited,a[class=""]:not([data-unstyled]):visited {
170
+ color: var(--colors-text-link-visited);
171
+ }
172
+
169
173
  a:not([class]):not([data-unstyled]):is(:hover, [data-hover]),a[class=""]:not([data-unstyled]):is(:hover, [data-hover]) {
170
174
  text-decoration: none;
171
175
  }
@@ -519,7 +523,8 @@
519
523
  --colors-text-strong: var(--colors-primary);
520
524
  --colors-text-action: var(--colors-purple-800);
521
525
  --colors-text-on-action: var(--colors-white);
522
- --colors-text-link: var(--colors-purple-900);
526
+ --colors-text-link: var(--colors-blue-800);
527
+ --colors-text-link-visited: var(--colors-purple-900);
523
528
  --colors-text-error: var(--colors-pink-800);
524
529
  --colors-text-disabled: var(--colors-grey-400);
525
530
  --colors-icon-default: var(--colors-grey-950);
@@ -560,7 +565,7 @@
560
565
  --colors-surface-action-hover: var(--colors-purple-900);
561
566
  --colors-surface-action-active: var(--colors-purple-950);
562
567
  --colors-surface-action-selected: var(--colors-purple-800);
563
- --colors-surface-action-my-ndla: var(--colors-yellow-50);
568
+ --colors-surface-action-my-ndla: var(--colors-yellow-300);
564
569
  --colors-surface-action-my-ndla-hover: var(--colors-yellow-500);
565
570
  --colors-surface-action-my-ndla-current: var(--colors-yellow-700);
566
571
  --colors-surface-action-subtle: var(--colors-purple-50);
package/es/globalCss.js CHANGED
@@ -50,10 +50,10 @@ export const globalCss = defineGlobalStyles({
50
50
  textStyle: "heading.small"
51
51
  },
52
52
  h3: {
53
- textStyle: "title.large"
53
+ textStyle: "title.medium"
54
54
  },
55
55
  "h4, h5, h6": {
56
- textStyle: "title.medium"
56
+ textStyle: "title.small"
57
57
  },
58
58
  '& p[data-align="center"]': {
59
59
  textAlign: "center"
@@ -71,17 +71,17 @@ export const globalCss = defineGlobalStyles({
71
71
  // Article content is usually wrapped in a section. The rest of the elements in this list contains other elements, and should add margin to them no matter where they are placed in the DOM.
72
72
  '& section:not([class]), section:not([class]) > div:not([class]), [data-embed-type="framed-content"], [data-embed-type="grid"] > div, [data-embed-type="grid-parallax"] > div, [data-embed-type="factbox"] > div, [data-embed-type="copyright"], [data-embed-type="uu-disclaimer"], details, blockquote': {
73
73
  '& > :is(h2, [data-embed-type="copy-heading"])': {
74
- marginBlockStart: "xxlarge",
75
- marginBlockEnd: "medium"
76
- },
77
- "& > h3": {
78
74
  marginBlockStart: "xlarge",
79
75
  marginBlockEnd: "small"
80
76
  },
81
- "& > :is(h4, h5, h6)": {
77
+ "& > h3": {
82
78
  marginBlockStart: "large",
83
79
  marginBlockEnd: "xsmall"
84
80
  },
81
+ "& > :is(h4, h5, h6)": {
82
+ marginBlockStart: "medium",
83
+ marginBlockEnd: "xsmall"
84
+ },
85
85
  "& > :is(figure)": {
86
86
  marginBlockStart: "xxlarge",
87
87
  marginBlockEnd: "xxlarge"
@@ -117,6 +117,9 @@ export const globalCss = defineGlobalStyles({
117
117
  textDecoration: "underline",
118
118
  _hover: {
119
119
  textDecoration: "none"
120
+ },
121
+ _visited: {
122
+ color: "text.linkVisited"
120
123
  }
121
124
  }
122
125
  });
@@ -201,6 +201,9 @@ export const semanticTokens = defineSemanticTokens({
201
201
  value: "{colors.white}"
202
202
  },
203
203
  link: {
204
+ value: "{colors.blue.800}"
205
+ },
206
+ linkVisited: {
204
207
  value: "{colors.purple.900}"
205
208
  },
206
209
  error: {
@@ -346,7 +349,7 @@ export const semanticTokens = defineSemanticTokens({
346
349
  },
347
350
  myNdla: {
348
351
  DEFAULT: {
349
- value: "{colors.yellow.50}"
352
+ value: "{colors.yellow.300}"
350
353
  },
351
354
  hover: {
352
355
  value: "{colors.yellow.500}"
package/lib/globalCss.js CHANGED
@@ -56,10 +56,10 @@ const globalCss = exports.globalCss = (0, _dev.defineGlobalStyles)({
56
56
  textStyle: "heading.small"
57
57
  },
58
58
  h3: {
59
- textStyle: "title.large"
59
+ textStyle: "title.medium"
60
60
  },
61
61
  "h4, h5, h6": {
62
- textStyle: "title.medium"
62
+ textStyle: "title.small"
63
63
  },
64
64
  '& p[data-align="center"]': {
65
65
  textAlign: "center"
@@ -77,17 +77,17 @@ const globalCss = exports.globalCss = (0, _dev.defineGlobalStyles)({
77
77
  // Article content is usually wrapped in a section. The rest of the elements in this list contains other elements, and should add margin to them no matter where they are placed in the DOM.
78
78
  '& section:not([class]), section:not([class]) > div:not([class]), [data-embed-type="framed-content"], [data-embed-type="grid"] > div, [data-embed-type="grid-parallax"] > div, [data-embed-type="factbox"] > div, [data-embed-type="copyright"], [data-embed-type="uu-disclaimer"], details, blockquote': {
79
79
  '& > :is(h2, [data-embed-type="copy-heading"])': {
80
- marginBlockStart: "xxlarge",
81
- marginBlockEnd: "medium"
82
- },
83
- "& > h3": {
84
80
  marginBlockStart: "xlarge",
85
81
  marginBlockEnd: "small"
86
82
  },
87
- "& > :is(h4, h5, h6)": {
83
+ "& > h3": {
88
84
  marginBlockStart: "large",
89
85
  marginBlockEnd: "xsmall"
90
86
  },
87
+ "& > :is(h4, h5, h6)": {
88
+ marginBlockStart: "medium",
89
+ marginBlockEnd: "xsmall"
90
+ },
91
91
  "& > :is(figure)": {
92
92
  marginBlockStart: "xxlarge",
93
93
  marginBlockEnd: "xxlarge"
@@ -123,6 +123,9 @@ const globalCss = exports.globalCss = (0, _dev.defineGlobalStyles)({
123
123
  textDecoration: "underline",
124
124
  _hover: {
125
125
  textDecoration: "none"
126
+ },
127
+ _visited: {
128
+ color: "text.linkVisited"
126
129
  }
127
130
  }
128
131
  });
@@ -201,6 +201,9 @@ export declare const semanticTokens: {
201
201
  link: {
202
202
  value: string;
203
203
  };
204
+ linkVisited: {
205
+ value: string;
206
+ };
204
207
  error: {
205
208
  value: string;
206
209
  };
@@ -207,6 +207,9 @@ const semanticTokens = exports.semanticTokens = (0, _dev.defineSemanticTokens)({
207
207
  value: "{colors.white}"
208
208
  },
209
209
  link: {
210
+ value: "{colors.blue.800}"
211
+ },
212
+ linkVisited: {
210
213
  value: "{colors.purple.900}"
211
214
  },
212
215
  error: {
@@ -352,7 +355,7 @@ const semanticTokens = exports.semanticTokens = (0, _dev.defineSemanticTokens)({
352
355
  },
353
356
  myNdla: {
354
357
  DEFAULT: {
355
- value: "{colors.yellow.50}"
358
+ value: "{colors.yellow.300}"
356
359
  },
357
360
  hover: {
358
361
  value: "{colors.yellow.500}"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ndla/preset-panda",
3
- "version": "0.0.29",
3
+ "version": "0.0.30",
4
4
  "description": "Panda preset for NDLA.",
5
5
  "license": "GPL-3.0",
6
6
  "main": "lib/index.js",
@@ -37,5 +37,5 @@
37
37
  "publishConfig": {
38
38
  "access": "public"
39
39
  },
40
- "gitHead": "d97a2f9c0e8bc60c499000bb27c8fe4441740381"
40
+ "gitHead": "92e263c72d707da94f33fb1aae9ea8e586b29b6e"
41
41
  }