@aarhus-university/au-designsystem-delphinus 1.0.1 → 1.0.2
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 +9 -0
- package/package.json +2 -2
- package/public/demo/demo-component.css +38 -0
- package/source/markup/code/bem-class-naming.pug +1 -1
- package/source/markup/code/borders.pug +81 -0
- package/source/markup/code/index.pug +1 -4
- package/source/markup/code/shadows.pug +72 -0
- package/source/markup/partials/mixins-demo/_nav-code.pug +2 -2
- package/source/style/module-demo/demo-component.scss +3 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## 1.0.2 (July 27, 2023)
|
|
2
|
+
|
|
3
|
+
### Core Delphinus Updates
|
|
4
|
+
* Adds compilation of missing css file for the [BEM documentation page](https://delphinus.au.dk/code/bem-class-naming).
|
|
5
|
+
|
|
6
|
+
### Delphinus Projects Updates
|
|
7
|
+
None
|
|
8
|
+
|
|
9
|
+
|
|
1
10
|
## 1.0.1 (July 21, 2023)
|
|
2
11
|
|
|
3
12
|
### Core Delphinus Updates
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aarhus-university/au-designsystem-delphinus",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"start": "concurrently \"npm run nodemon\" \"npm run sass\" \"npm run build\"",
|
|
7
7
|
"nodemon": "nodemon ./bin/www",
|
|
8
|
-
"sass": "sass --watch source/style.scss:public/style.css source/projects/bachelor-applications/style.scss:public/projects/bachelor-applications/style.css source/projects/brightspace/style.scss:public/projects/brightspace/style.css source/projects/course-catalogue/style.scss:public/projects/course-catalogue/style.css source/projects/medarbejdere/style.scss:public/projects/medarbejdere/style.css source/projects/mitstudie/style.scss:public/projects/mitstudie/style.css source/projects/queue-it/style.scss:public/projects/queue-it/style.css source/projects/typo3/style.scss:public/projects/typo3/style.css source/demo-style.scss:public/demo-style.css source/atoms/misc/atoms-style.scss:public/atoms/atoms-style.css source/atoms/misc/atom-iframe.scss:source/atoms/misc/atom-iframe.css
|
|
8
|
+
"sass": "sass --watch source/style.scss:public/style.css source/projects/bachelor-applications/style.scss:public/projects/bachelor-applications/style.css source/projects/brightspace/style.scss:public/projects/brightspace/style.css source/projects/course-catalogue/style.scss:public/projects/course-catalogue/style.css source/projects/medarbejdere/style.scss:public/projects/medarbejdere/style.css source/projects/mitstudie/style.scss:public/projects/mitstudie/style.css source/projects/queue-it/style.scss:public/projects/queue-it/style.css source/projects/typo3/style.scss:public/projects/typo3/style.css source/demo-style.scss:public/demo-style.css source/atoms/misc/atoms-style.scss:public/atoms/atoms-style.css source/atoms/misc/atom-iframe.scss:source/atoms/misc/atom-iframe.css source/atoms/fonts/atom-fonts.scss:public/atoms/fonts/atom-fonts.css source/atoms/colors/atom-colors.scss:public/atoms/colors/atom-colors.css source/atoms/spacing/atom-spacing.scss:public/atoms/spacing/atom-spacing.css source/style/module-demo/demo-component.scss:public/demo/demo-component.css source/figma-tokens/cssvars/figma-tokens.scss:public/figma-tokens/style.css",
|
|
9
9
|
"build": "node ./esbuild.mjs"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
.content-container > *:first-child:not(.row) {
|
|
2
|
+
margin-top: 0;
|
|
3
|
+
}
|
|
4
|
+
.content-container > *:last-child:not(.row) {
|
|
5
|
+
margin-bottom: 0;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.component {
|
|
9
|
+
padding: var(--spacing-m1);
|
|
10
|
+
background-color: var(--color-background-secondary);
|
|
11
|
+
color: var(--color-foreground);
|
|
12
|
+
}
|
|
13
|
+
.component > *:first-child:not(.row) {
|
|
14
|
+
margin-top: 0;
|
|
15
|
+
}
|
|
16
|
+
.component > *:last-child:not(.row) {
|
|
17
|
+
margin-bottom: 0;
|
|
18
|
+
}
|
|
19
|
+
.component--warning {
|
|
20
|
+
background-color: var(--color-utility-warning-background);
|
|
21
|
+
color: var(--color-utility-foreground);
|
|
22
|
+
}
|
|
23
|
+
.component__header {
|
|
24
|
+
margin-bottom: var(--spacing-m5);
|
|
25
|
+
font-size: var(--font-size-p1);
|
|
26
|
+
line-height: calc(1.1em + 0.3rem);
|
|
27
|
+
font-weight: 700;
|
|
28
|
+
}
|
|
29
|
+
.component__header--shout {
|
|
30
|
+
text-transform: uppercase;
|
|
31
|
+
}
|
|
32
|
+
.component__content {
|
|
33
|
+
font-size: var(--font-size-0);
|
|
34
|
+
line-height: calc(1.1em + 0.7rem);
|
|
35
|
+
font-weight: 400;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/*# sourceMappingURL=demo-component.css.map */
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
extends ../partials/page-templates/_layout.pug
|
|
2
|
+
include ../partials/mixins-demo/_nav-code.pug
|
|
3
|
+
include ../partials/mixins-demo/_code-documentation.pug
|
|
4
|
+
|
|
5
|
+
block append variables
|
|
6
|
+
- var sidebar = true
|
|
7
|
+
- var active_nav_item = "code"
|
|
8
|
+
- var page_title = "Code: variables for borders"
|
|
9
|
+
|
|
10
|
+
block append script
|
|
11
|
+
script(src="/js/3rdparty/prism.js")
|
|
12
|
+
|
|
13
|
+
block content
|
|
14
|
+
.page__content__block
|
|
15
|
+
h1
|
|
16
|
+
span.text--stamp Sass
|
|
17
|
+
| Variables for
|
|
18
|
+
|
|
|
19
|
+
strong borders
|
|
20
|
+
|
|
21
|
+
p Variables for styling
|
|
22
|
+
|
|
|
23
|
+
code :focus
|
|
24
|
+
|
|
|
25
|
+
| states with an outline. The outline should be styled as a border with a small offset. The outline has the same color across all themes, both in dark and normal modes.
|
|
26
|
+
|
|
27
|
+
+usage(null)
|
|
28
|
+
| border-width: $width-border;
|
|
29
|
+
|
|
|
30
|
+
| border-width: $width-border-slim;
|
|
31
|
+
|
|
|
32
|
+
| border-width: $nav-width-active-style;
|
|
33
|
+
|
|
|
34
|
+
| border-width: $width-border-utility;
|
|
35
|
+
|
|
36
|
+
h2 Examples
|
|
37
|
+
.demo-code-block
|
|
38
|
+
+codeblock("scss")
|
|
39
|
+
| input[type="text"] {
|
|
40
|
+
| border: $width-border solid color("border");
|
|
41
|
+
| }
|
|
42
|
+
+codeblock("css")
|
|
43
|
+
| input[type="text"] {
|
|
44
|
+
| border: 2px solid var(--color-border); /* #9e9e9e */
|
|
45
|
+
| }
|
|
46
|
+
|
|
47
|
+
.demo-code-block
|
|
48
|
+
+codeblock("scss")
|
|
49
|
+
| tr {
|
|
50
|
+
| border-top: $width-border-slim solid color("border");
|
|
51
|
+
| }
|
|
52
|
+
+codeblock("css")
|
|
53
|
+
| tr {
|
|
54
|
+
| border-top: 1px solid var(--color-border); /* #9e9e9e */
|
|
55
|
+
| }
|
|
56
|
+
|
|
57
|
+
.demo-code-block
|
|
58
|
+
+codeblock("scss")
|
|
59
|
+
| .nav__item--active {
|
|
60
|
+
| border-bottom-width: $nav-width-active-style;
|
|
61
|
+
| }
|
|
62
|
+
+codeblock("css")
|
|
63
|
+
| .nav__item--active {
|
|
64
|
+
| border-bottom-width: 4px;
|
|
65
|
+
| }
|
|
66
|
+
|
|
67
|
+
.demo-code-block
|
|
68
|
+
+codeblock("scss")
|
|
69
|
+
| .callout {
|
|
70
|
+
| border-left: $width-border-utility solid color("utility-attention");
|
|
71
|
+
| }
|
|
72
|
+
+codeblock("css")
|
|
73
|
+
| .callout {
|
|
74
|
+
| border-left: 6px solid var(--color-utility-attention"); /* #ffa620 */
|
|
75
|
+
| }
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
block sidebar
|
|
81
|
+
+nav-code("borders")
|
|
@@ -51,7 +51,7 @@ block content
|
|
|
51
51
|
|
|
|
52
52
|
| repository.
|
|
53
53
|
p The bolierplate-file can then be appended with more
|
|
54
|
-
|
|
|
54
|
+
|
|
|
55
55
|
code @import
|
|
56
56
|
|'s of your own creation, that can make use of our Sass mixins, functions and variables; see the menu.
|
|
57
57
|
|
|
@@ -68,9 +68,6 @@ block content
|
|
|
68
68
|
|
|
69
69
|
pre
|
|
70
70
|
code(class="language-bash") https://cdn.jsdelivr.net/npm/@aarhus-university/au-designsystem-delphinus@x.x.x/public/style.css
|
|
71
|
-
|
|
72
|
-
+notification().notification--attention.notification--constrain-width.vertical-spacing-top
|
|
73
|
-
p The documenation on the these pages are some intial documenation of the sass code base. It is not yet complete. Menu items marked with * are not written yet, but are meant to provide an overview of the most important features.
|
|
74
71
|
|
|
75
72
|
h2 Got questions?
|
|
76
73
|
ul
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
extends ../partials/page-templates/_layout.pug
|
|
2
|
+
include ../partials/mixins-demo/_nav-code.pug
|
|
3
|
+
include ../partials/mixins-demo/_code-documentation.pug
|
|
4
|
+
|
|
5
|
+
block append variables
|
|
6
|
+
- var sidebar = true
|
|
7
|
+
- var active_nav_item = "code"
|
|
8
|
+
- var page_title = "Code: variables for shadows"
|
|
9
|
+
|
|
10
|
+
block append script
|
|
11
|
+
script(src="/js/3rdparty/prism.js")
|
|
12
|
+
|
|
13
|
+
block content
|
|
14
|
+
.page__content__block
|
|
15
|
+
h1
|
|
16
|
+
span.text--stamp Sass
|
|
17
|
+
| Variables for
|
|
18
|
+
|
|
|
19
|
+
strong shadows
|
|
20
|
+
|
|
21
|
+
p Variables for setting
|
|
22
|
+
|
|
|
23
|
+
code box-shadow
|
|
24
|
+
|. The are three different styles for shadows: Front, center and back. They only differ in how far above the page the element apper to be.
|
|
25
|
+
p The frontmost shadow is intend for primary interactive elements, like buttons, and for content panels that float on top of the page, like modals. The center shadow is intended for secondary interactive elements, like selects. The backmost shadow is intend for the
|
|
26
|
+
|
|
|
27
|
+
code :active
|
|
28
|
+
|
|
|
29
|
+
| of such elements.
|
|
30
|
+
|
|
31
|
+
+usage(null)
|
|
32
|
+
| box-shadow: $shadow-style-front color("shadow");
|
|
33
|
+
|
|
|
34
|
+
| box-shadow: $shadow-style-center color("shadow");
|
|
35
|
+
|
|
|
36
|
+
| box-shadow: $shadow-style-back color("shadow");
|
|
37
|
+
|
|
38
|
+
h2 Examples
|
|
39
|
+
.demo-code-block
|
|
40
|
+
+codeblock("scss")
|
|
41
|
+
| button {
|
|
42
|
+
| box-shadow: $shadow-style-front color("shadow");
|
|
43
|
+
| }
|
|
44
|
+
+codeblock("css")
|
|
45
|
+
| button {
|
|
46
|
+
| box-shadow: 0 0.2rem 0.6rem 0 var(--color-shadow); /* rgba(0, 0, 0, 0.4) */
|
|
47
|
+
| }
|
|
48
|
+
|
|
49
|
+
.demo-code-block
|
|
50
|
+
+codeblock("scss")
|
|
51
|
+
| select {
|
|
52
|
+
| box-shadow: $shadow-style-center color("shadow");
|
|
53
|
+
| }
|
|
54
|
+
+codeblock("css")
|
|
55
|
+
| select {
|
|
56
|
+
| box-shadow: 0 0.1rem 0.3rem 0 var(--color-shadow); /* rgba(0, 0, 0, 0.4) */
|
|
57
|
+
| }
|
|
58
|
+
|
|
59
|
+
.demo-code-block
|
|
60
|
+
+codeblock("scss")
|
|
61
|
+
| button:active {
|
|
62
|
+
| box-shadow: $shadow-style-back color("shadow");
|
|
63
|
+
| }
|
|
64
|
+
+codeblock("css")
|
|
65
|
+
| button:active {
|
|
66
|
+
| box-shadow: 0 0.05rem 0.2rem 0 var(--color-shadow); /* rgba(0, 0, 0, 0.4) */
|
|
67
|
+
| }
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
block sidebar
|
|
72
|
+
+nav-code("shadows")
|
|
@@ -19,8 +19,8 @@ mixin nav-code(active_item = null)
|
|
|
19
19
|
["font-size", "font-size"],
|
|
20
20
|
["line-height", "line-height"],
|
|
21
21
|
["spacing", "spacing"],
|
|
22
|
-
["borders", "
|
|
23
|
-
["shadows", "
|
|
22
|
+
["borders", "Borders", "Sass variables"],
|
|
23
|
+
["shadows", "Shadows"],
|
|
24
24
|
["outline", "Outline"],
|
|
25
25
|
]
|
|
26
26
|
|