@utrecht/root-css 1.1.1 → 1.2.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @utrecht/root-css
2
2
 
3
+ ## 1.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - e20f33c: Provide `.d.mts` file for `.mjs` files in CSS components.
8
+
9
+ ## 1.2.0
10
+
11
+ ### Minor Changes
12
+
13
+ - f54840f: Provide `.css` file for the `:root` selector for styling vanilla HTML.
14
+
3
15
  ## 1.1.1
4
16
 
5
17
  ### Patch Changes
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @license EUPL-1.2
3
+ * Copyright (c) 2020-2024 Frameless B.V.
4
+ * Copyright (c) 2021-2024 Gemeente Utrecht
5
+ */
6
+ :root {
7
+ -webkit-font-smoothing: auto !important;
8
+ -moz-osx-font-smoothing: auto !important;
9
+ background-color: var(--utrecht-root-background-color);
10
+ block-size: 100%;
11
+ color: var(--utrecht-root-color);
12
+ font-family: var(--utrecht-root-font-family);
13
+ -webkit-hyphens: auto;
14
+ -moz-hyphens: auto;
15
+ -ms-hyphens: auto;
16
+ hyphens: auto;
17
+ inline-size: 100%;
18
+ overflow-block: auto;
19
+ overflow-inline: auto;
20
+ position: relative;
21
+ text-rendering: optimizeLegibility;
22
+ -moz-text-size-adjust: none;
23
+ -webkit-text-size-adjust: none;
24
+ text-size-adjust: none;
25
+ word-break: break-word;
26
+ }
@@ -0,0 +1 @@
1
+ :root{-webkit-font-smoothing:auto!important;-moz-osx-font-smoothing:auto!important;background-color:var(--utrecht-root-background-color);block-size:100%;color:var(--utrecht-root-color);font-family:var(--utrecht-root-font-family);-webkit-hyphens:auto;-moz-hyphens:auto;-ms-hyphens:auto;hyphens:auto;inline-size:100%;overflow-block:auto;overflow-inline:auto;position:relative;text-rendering:optimizeLegibility;-moz-text-size-adjust:none;-webkit-text-size-adjust:none;text-size-adjust:none;word-break:break-word}
@@ -0,0 +1 @@
1
+ export default ":root{-webkit-font-smoothing:auto!important;-moz-osx-font-smoothing:auto!important;background-color:var(--utrecht-root-background-color);block-size:100%;color:var(--utrecht-root-color);font-family:var(--utrecht-root-font-family);-webkit-hyphens:auto;-moz-hyphens:auto;-ms-hyphens:auto;hyphens:auto;inline-size:100%;overflow-block:auto;overflow-inline:auto;position:relative;text-rendering:optimizeLegibility;-moz-text-size-adjust:none;-webkit-text-size-adjust:none;text-size-adjust:none;word-break:break-word}";
@@ -0,0 +1,2 @@
1
+ declare const css: string;
2
+ export default css;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.1.1",
2
+ "version": "1.2.1",
3
3
  "author": "Community for NL Design System",
4
4
  "description": "Root component for the Municipality of Utrecht based on the NL Design System architecture",
5
5
  "license": "EUPL-1.2",
@@ -12,7 +12,7 @@
12
12
  ],
13
13
  "main": "dist/index.css",
14
14
  "devDependencies": {
15
- "@utrecht/build-utils-css": "0.0.1"
15
+ "@utrecht/build-utils-css": "0.0.3"
16
16
  },
17
17
  "keywords": [
18
18
  "nl-design-system"
@@ -0,0 +1,23 @@
1
+ /**
2
+ * @license EUPL-1.2
3
+ * Copyright (c) 2020-2024 Frameless B.V.
4
+ * Copyright (c) 2021-2024 Gemeente Utrecht
5
+ */
6
+
7
+ @import "../mixin";
8
+
9
+ @mixin utrecht-html-html {
10
+ html {
11
+ @include utrecht-root;
12
+ }
13
+ }
14
+
15
+ /**
16
+ * Match `:root` instead of `html`, to avoid styling when a template
17
+ * accidentally renders an extraneous `html` element inside the `body`.
18
+ */
19
+ @mixin utrecht-html-root {
20
+ :root {
21
+ @include utrecht-root;
22
+ }
23
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @license EUPL-1.2
3
+ * Copyright (c) 2020-2024 Frameless B.V.
4
+ * Copyright (c) 2021-2024 Gemeente Utrecht
5
+ */
6
+
7
+ @import "./mixin";
8
+
9
+ @include utrecht-html-root;
File without changes