@utrecht/component-library-css 1.0.0-alpha.98 → 1.0.0
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 +8 -0
- package/README.md +5 -3
- package/dist/html.css +1427 -1437
- package/dist/index.css +5559 -3121
- package/html-component.md +5 -3
- package/package.json +5 -5
- package/project.json +18 -0
- package/src/html.scss +1 -25
- package/src/index.scss +12 -7
- package/dist/bem.css +0 -1782
- package/dist/root-theme.css +0 -629
- package/src/bem.scss +0 -60
- package/src/root-theme.scss +0 -9
package/html-component.md
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
|
+
<!-- @license CC0-1.0 -->
|
|
2
|
+
|
|
1
3
|
# HTML Components
|
|
2
4
|
|
|
3
|
-
HTML components contain a small subset of the CSS components, for components that occur in regular HTML pages with semantic HTML. You can apply the `utrecht-html
|
|
5
|
+
HTML components contain a small subset of the CSS components, for components that occur in regular HTML pages with semantic HTML. You can apply the `utrecht-html` class name to your page, and any semantic HTML will be styled automatically. This can be helpful to style HTML content from a CMS, for example.
|
|
4
6
|
|
|
5
7
|
```shell
|
|
6
|
-
npm install --save-dev @utrecht/component-library-css
|
|
8
|
+
npm install --save-dev --save-exact @utrecht/component-library-css
|
|
7
9
|
```
|
|
8
10
|
|
|
9
11
|
Include the CSS in your HTML page like so:
|
|
10
12
|
|
|
11
13
|
```html
|
|
12
14
|
<!DOCTYPE html>
|
|
13
|
-
<html lang="en" class="utrecht-html
|
|
15
|
+
<html lang="en" class="utrecht-html">
|
|
14
16
|
<head>
|
|
15
17
|
<title>Example page</title>
|
|
16
18
|
<link rel="stylesheet" href="node_modules/@utrecht/component-library-css/dist/html.css" />
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.0.0
|
|
2
|
+
"version": "1.0.0",
|
|
3
3
|
"author": "Community for NL Design System",
|
|
4
4
|
"description": "Component library bundle for the Municipality of Utrecht based on the NL Design System architecture",
|
|
5
5
|
"license": "EUPL-1.2",
|
|
@@ -16,15 +16,15 @@
|
|
|
16
16
|
"url": "git@github.com:nl-design-system/utrecht.git"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"
|
|
20
|
-
"node-sass-package-importer": "5.3.2",
|
|
19
|
+
"node-sass-package-importer": "5.3.3",
|
|
21
20
|
"rimraf": "3.0.2",
|
|
22
|
-
"sass": "1.
|
|
21
|
+
"sass": "1.66.1"
|
|
23
22
|
},
|
|
24
23
|
"scripts": {
|
|
25
24
|
"prebuild": "npm run clean",
|
|
26
25
|
"build": "sass src/:dist/ --load-path=../../node_modules/ --no-source-map",
|
|
27
26
|
"clean": "rimraf dist/"
|
|
28
27
|
},
|
|
29
|
-
"
|
|
28
|
+
"main": "dist/index.css",
|
|
29
|
+
"gitHead": "4f92db51ca884f96ae613f0dca78aa9d4cd52740"
|
|
30
30
|
}
|
package/project.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
3
|
+
"root": "{workspaceRoot}/packages/component-library-css",
|
|
4
|
+
"sourceRoot": "{projectRoot}",
|
|
5
|
+
"projectType": "library",
|
|
6
|
+
"targets": {
|
|
7
|
+
"build": {
|
|
8
|
+
"executor": "@nrwl/workspace:run-commands",
|
|
9
|
+
"outputs": ["{projectRoot}/dist"],
|
|
10
|
+
"options": {
|
|
11
|
+
"command": "npm run build",
|
|
12
|
+
"cwd": "packages/component-library-css",
|
|
13
|
+
"outputPath": "packages/component-library-css/dist"
|
|
14
|
+
},
|
|
15
|
+
"dependsOn": ["^build"]
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
package/src/html.scss
CHANGED
|
@@ -5,28 +5,4 @@
|
|
|
5
5
|
|
|
6
6
|
/* Collection of all semantic HTML styles in the component library */
|
|
7
7
|
|
|
8
|
-
@import "../../../components/
|
|
9
|
-
@import "../../../components/article/html";
|
|
10
|
-
@import "../../../components/blockquote/html";
|
|
11
|
-
@import "../../../components/button/html";
|
|
12
|
-
@import "../../../components/checkbox/html";
|
|
13
|
-
@import "../../../components/emphasis/html";
|
|
14
|
-
@import "../../../components/form-fieldset/html";
|
|
15
|
-
@import "../../../components/form-label/html";
|
|
16
|
-
@import "../../../components/heading-1/html";
|
|
17
|
-
@import "../../../components/heading-2/html";
|
|
18
|
-
@import "../../../components/heading-3/html";
|
|
19
|
-
@import "../../../components/heading-4/html";
|
|
20
|
-
@import "../../../components/heading-5/html";
|
|
21
|
-
@import "../../../components/heading-6/html";
|
|
22
|
-
@import "../../../components/html-content/html";
|
|
23
|
-
@import "../../../components/link/html";
|
|
24
|
-
@import "../../../components/ordered-list/html";
|
|
25
|
-
@import "../../../components/paragraph/html";
|
|
26
|
-
@import "../../../components/radio-button/html";
|
|
27
|
-
@import "../../../components/select/html";
|
|
28
|
-
@import "../../../components/separator/html";
|
|
29
|
-
@import "../../../components/table/html";
|
|
30
|
-
@import "../../../components/textarea/html";
|
|
31
|
-
@import "../../../components/textbox/html";
|
|
32
|
-
@import "../../../components/unordered-list/html";
|
|
8
|
+
@import "../../../components/html-content/css";
|
package/src/index.scss
CHANGED
|
@@ -3,12 +3,17 @@
|
|
|
3
3
|
* Copyright (c) 2021 Gemeente Utrecht
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
/* Collection of
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
*
|
|
6
|
+
/* Collection of all BEM class names in the component library */
|
|
7
|
+
|
|
8
|
+
/*
|
|
9
|
+
* TODO: Once every component is a separate npm package, these imports should
|
|
10
|
+
* be updated to use a package reference instead of a relative path.
|
|
11
|
+
*
|
|
12
|
+
* For example:
|
|
13
|
+
* @import "../../blockquote/index";
|
|
14
|
+
*
|
|
15
|
+
* Will become:
|
|
16
|
+
* @import "@utrecht/blockquote/index";
|
|
10
17
|
*/
|
|
11
18
|
|
|
12
|
-
@import "
|
|
13
|
-
@import "./html";
|
|
14
|
-
@import "./root-theme";
|
|
19
|
+
@import "../../../components/index";
|