@ndla/preset-panda 0.0.16 → 0.0.18

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
@@ -122,11 +122,20 @@
122
122
  margin-block-end: var(--spacing-xsmall);
123
123
  }
124
124
 
125
- .ndla-article section:not([class]) > :is(p, figure, ul, ol, dl, [data-embed-type="speech"]),.ndla-article section:not([class]) > div:not([class]) > :is(p, figure, ul, ol, dl, [data-embed-type="speech"]),.ndla-article [data-embed-type="framed-content"] > :is(p, figure, ul, ol, dl, [data-embed-type="speech"]),.ndla-article [data-embed-type="grid"] > div > :is(p, figure, ul, ol, dl, [data-embed-type="speech"]),.ndla-article [data-embed-type="grid-parallax"] > div > :is(p, figure, ul, ol, dl, [data-embed-type="speech"]),.ndla-article [data-embed-type="factbox"] > div > :is(p, figure, ul, ol, dl, [data-embed-type="speech"]),.ndla-article [data-embed-type="copyright"] > :is(p, figure, ul, ol, dl, [data-embed-type="speech"]),.ndla-article [data-embed-type="uu-disclaimer"] > :is(p, figure, ul, ol, dl, [data-embed-type="speech"]),.ndla-article details > :is(p, figure, ul, ol, dl, [data-embed-type="speech"]),.ndla-article blockquote > :is(p, figure, ul, ol, dl, [data-embed-type="speech"]) {
125
+ .ndla-article section:not([class]) > :is(figure),.ndla-article section:not([class]) > div:not([class]) > :is(figure),.ndla-article [data-embed-type="framed-content"] > :is(figure),.ndla-article [data-embed-type="grid"] > div > :is(figure),.ndla-article [data-embed-type="grid-parallax"] > div > :is(figure),.ndla-article [data-embed-type="factbox"] > div > :is(figure),.ndla-article [data-embed-type="copyright"] > :is(figure),.ndla-article [data-embed-type="uu-disclaimer"] > :is(figure),.ndla-article details > :is(figure),.ndla-article blockquote > :is(figure) {
126
+ margin-block-start: var(--spacing-xxlarge);
127
+ margin-block-end: var(--spacing-xxlarge);
128
+ }
129
+
130
+ .ndla-article section:not([class]) > :is(p, ul, ol, dl, [data-embed-type="speech"]),.ndla-article section:not([class]) > div:not([class]) > :is(p, ul, ol, dl, [data-embed-type="speech"]),.ndla-article [data-embed-type="framed-content"] > :is(p, ul, ol, dl, [data-embed-type="speech"]),.ndla-article [data-embed-type="grid"] > div > :is(p, ul, ol, dl, [data-embed-type="speech"]),.ndla-article [data-embed-type="grid-parallax"] > div > :is(p, ul, ol, dl, [data-embed-type="speech"]),.ndla-article [data-embed-type="factbox"] > div > :is(p, ul, ol, dl, [data-embed-type="speech"]),.ndla-article [data-embed-type="copyright"] > :is(p, ul, ol, dl, [data-embed-type="speech"]),.ndla-article [data-embed-type="uu-disclaimer"] > :is(p, ul, ol, dl, [data-embed-type="speech"]),.ndla-article details > :is(p, ul, ol, dl, [data-embed-type="speech"]),.ndla-article blockquote > :is(p, ul, ol, dl, [data-embed-type="speech"]) {
126
131
  margin-block-start: var(--spacing-xsmall);
127
132
  margin-block-end: var(--spacing-xsmall);
128
133
  }
129
134
 
135
+ .ndla-article section:not([class]) > :is(:first-child),.ndla-article section:not([class]) > div:not([class]) > :is(:first-child),.ndla-article [data-embed-type="framed-content"] > :is(:first-child),.ndla-article [data-embed-type="grid"] > div > :is(:first-child),.ndla-article [data-embed-type="grid-parallax"] > div > :is(:first-child),.ndla-article [data-embed-type="factbox"] > div > :is(:first-child),.ndla-article [data-embed-type="copyright"] > :is(:first-child),.ndla-article [data-embed-type="uu-disclaimer"] > :is(:first-child),.ndla-article details > :is(:first-child),.ndla-article blockquote > :is(:first-child) {
136
+ margin-block-start: var(--spacing-xxlarge);
137
+ }
138
+
130
139
  a:not([class]):not([data-unstyled]),a[class=""]:not([data-unstyled]) {
131
140
  color: var(--colors-text-link);
132
141
  text-decoration: underline;
package/es/globalCss.js CHANGED
@@ -76,9 +76,16 @@ export const globalCss = defineGlobalStyles({
76
76
  marginBlockStart: "large",
77
77
  marginBlockEnd: "xsmall"
78
78
  },
79
- '& > :is(p, figure, ul, ol, dl, [data-embed-type="speech"])': {
79
+ "& > :is(figure)": {
80
+ marginBlockStart: "xxlarge",
81
+ marginBlockEnd: "xxlarge"
82
+ },
83
+ '& > :is(p, ul, ol, dl, [data-embed-type="speech"])': {
80
84
  marginBlockStart: "xsmall",
81
85
  marginBlockEnd: "xsmall"
86
+ },
87
+ "& > :is(:first-child)": {
88
+ marginBlockStart: "xxlarge"
82
89
  }
83
90
  }
84
91
  },
package/lib/globalCss.js CHANGED
@@ -82,9 +82,16 @@ const globalCss = exports.globalCss = (0, _dev.defineGlobalStyles)({
82
82
  marginBlockStart: "large",
83
83
  marginBlockEnd: "xsmall"
84
84
  },
85
- '& > :is(p, figure, ul, ol, dl, [data-embed-type="speech"])': {
85
+ "& > :is(figure)": {
86
+ marginBlockStart: "xxlarge",
87
+ marginBlockEnd: "xxlarge"
88
+ },
89
+ '& > :is(p, ul, ol, dl, [data-embed-type="speech"])': {
86
90
  marginBlockStart: "xsmall",
87
91
  marginBlockEnd: "xsmall"
92
+ },
93
+ "& > :is(:first-child)": {
94
+ marginBlockStart: "xxlarge"
88
95
  }
89
96
  }
90
97
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ndla/preset-panda",
3
- "version": "0.0.16",
3
+ "version": "0.0.18",
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": "7770121967e96fe8d661b0f540e3397d6e2c453f"
39
+ "gitHead": "1f5266d080c8cc172af46980cea7a451cfa12b28"
40
40
  }