@ongov/ontario-design-system-complete-styles 5.0.0-alpha.6 → 5.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/README.md +5 -5
- package/dist/styles/components/ontario-badge/ontario-badge.scss +11 -0
- package/dist/styles/components/ontario-card-collection/ontario-card-collection.scss +2 -1
- package/dist/styles/components/ontario-task/ontario-task.scss +110 -0
- package/dist/styles/components/ontario-task-list/ontario-task-list.scss +14 -0
- package/dist/styles/css/compiled/ontario-theme.css +105 -2
- package/dist/styles/css/compiled/ontario-theme.css.map +1 -1
- package/dist/styles/css/compiled/ontario-theme.min.css +1 -1
- package/dist/styles/scss/6-components/_all.component.scss +2 -0
- package/dist/styles/styles/theme.scss +7 -0
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
## Introduction
|
|
9
9
|
|
|
10
|
-
The Ontario Design System complete styles package can be used in place of the Ontario Design System component library packages if there is a need to still support HTML components from the [Ontario Design System distribution package](https://designsystem.ontario.ca/docs/documentation/for-developers/getting-started.html#about-the-distribution-package). This can be helpful for a SPA project that is transitioning to supporting the web components packages, or still needs to support HTML components but will utilize
|
|
10
|
+
The Ontario Design System complete styles package can be used in place of the Ontario Design System component library packages if there is a need to still support HTML components from the [Ontario Design System distribution package](https://designsystem.ontario.ca/docs/documentation/for-developers/getting-started.html#about-the-distribution-package). This can be helpful for a SPA project that is transitioning to supporting the web components packages, or still needs to support HTML components but will utilize npm to control the styles.
|
|
11
11
|
|
|
12
12
|
The complete styles package includes the [Ontario Design System global styles](https://www.npmjs.com/package/@ongov/ontario-design-system-global-styles), along with component styles, assets, fonts, favicons and scripts that will provide all the necessary styles and functionality of the Ontario Design System.
|
|
13
13
|
|
|
@@ -16,7 +16,7 @@ The complete styles package includes the [Ontario Design System global styles](h
|
|
|
16
16
|
To install the Ontario Design System complete styles package, run the following command:
|
|
17
17
|
|
|
18
18
|
```bash
|
|
19
|
-
|
|
19
|
+
npm install --save @ongov/ontario-design-system-complete-styles
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
### How to use this package
|
|
@@ -39,7 +39,7 @@ These scripts can also be ported over to your projects public assets for use.
|
|
|
39
39
|
|
|
40
40
|
You may want to move the assets mentioned above into your project so that they are available for bundling upon building your SPA application.
|
|
41
41
|
|
|
42
|
-
This can be done in a number of ways. One way is to use the [copyfiles](https://www.npmjs.com/package/copyfiles)
|
|
42
|
+
This can be done in a number of ways. One way is to use the [copyfiles](https://www.npmjs.com/package/copyfiles) npm package, which can be used with any operating system:
|
|
43
43
|
|
|
44
44
|
```bash
|
|
45
45
|
copyfiles -E -f \"node_modules/@ongov/ontario-design-system-complete-styles/dist/assets/**\" public/assets
|
|
@@ -54,12 +54,12 @@ copyfiles -E -f \"node_modules/@ongov/ontario-design-system-complete-styles/dist
|
|
|
54
54
|
Another way is to add scripts to copy the assets in your `package.json` file. For example:
|
|
55
55
|
|
|
56
56
|
```json
|
|
57
|
-
"prebuild": "
|
|
57
|
+
"prebuild": "npm run copy:assets",
|
|
58
58
|
"copy:images": "copyfiles -E -f \"node_modules/@ongov/ontario-design-system-complete-styles/dist/assets/**\" public/assets",
|
|
59
59
|
"copy:favicons": "copyfiles -E -f \"node_modules/@ongov/ontario-design-system-complete-styles/dist/favicons/**\" public/favicons",
|
|
60
60
|
"copy:fonts": "copyfiles -E -f \"node_modules/@ongov/ontario-design-system-complete-styles/dist/fonts/**\" public/fonts",
|
|
61
61
|
"copy:scripts": "copyfiles -E -f \"node_modules/@ongov/ontario-design-system-complete-styles/dist/scripts/**\" public/scripts",
|
|
62
|
-
"copy:assets": "
|
|
62
|
+
"copy:assets": "npm run copy:images && npm run copy:favicons && npm run copy:fonts && npm run copy:scripts"
|
|
63
63
|
```
|
|
64
64
|
|
|
65
65
|
## Known issues
|
|
@@ -69,3 +69,14 @@
|
|
|
69
69
|
background-color: colours.$ontario-colour-success;
|
|
70
70
|
color: colours.$ontario-colour-white;
|
|
71
71
|
}
|
|
72
|
+
|
|
73
|
+
.ontario-badge--white {
|
|
74
|
+
background-color: colours.$ontario-colour-white;
|
|
75
|
+
color: colours.$ontario-greyscale-70;
|
|
76
|
+
border: globalFunctions.px-to-rem(1) solid colours.$ontario-greyscale-70;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.ontario-badge--grey {
|
|
80
|
+
background-color: colours.$ontario-greyscale-20;
|
|
81
|
+
color: colours.$ontario-colour-black;
|
|
82
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/spacing.variables' as spacing;
|
|
3
|
+
@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/colours.variables' as colours;
|
|
4
|
+
@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/2-tools/functions/global.functions' as globalFunctions;
|
|
5
|
+
@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/breakpoints.variables' as breakpoints;
|
|
6
|
+
@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/2-tools/placeholder/focus.placeholders' as
|
|
7
|
+
placeholders;
|
|
8
|
+
@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/font-weights.variables' as fontWeights;
|
|
9
|
+
|
|
10
|
+
.ontario-task {
|
|
11
|
+
border-bottom: globalFunctions.px-to-rem(2) solid colours.$ontario-greyscale-20;
|
|
12
|
+
padding: globalFunctions.px-to-rem(19) spacing.$spacing-0;
|
|
13
|
+
list-style: none;
|
|
14
|
+
|
|
15
|
+
&__content {
|
|
16
|
+
display: flex;
|
|
17
|
+
justify-content: space-between;
|
|
18
|
+
align-items: center;
|
|
19
|
+
|
|
20
|
+
@media screen and (max-width: breakpoints.$small-breakpoint) {
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-direction: column;
|
|
23
|
+
align-items: flex-start;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&__label {
|
|
28
|
+
text-align: left;
|
|
29
|
+
margin: spacing.$spacing-0;
|
|
30
|
+
font-size: globalFunctions.px-to-rem(19);
|
|
31
|
+
font-weight: fontWeights.$ontario-font-weights-semi-bold;
|
|
32
|
+
display: inline-block;
|
|
33
|
+
|
|
34
|
+
@media screen and (max-width: breakpoints.$small-breakpoint) {
|
|
35
|
+
margin-bottom: spacing.$spacing-2;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
a {
|
|
39
|
+
text-decoration: none;
|
|
40
|
+
color: inherit;
|
|
41
|
+
|
|
42
|
+
&:hover {
|
|
43
|
+
text-decoration: underline;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&__link {
|
|
49
|
+
display: block;
|
|
50
|
+
text-decoration: underline;
|
|
51
|
+
color: colours.$ontario-colour-link;
|
|
52
|
+
font-weight: normal;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&__hint-text--true {
|
|
56
|
+
margin-bottom: spacing.$spacing-2;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.ontario-task__link:focus {
|
|
61
|
+
outline: none;
|
|
62
|
+
box-shadow: none;
|
|
63
|
+
|
|
64
|
+
.ontario-task__label {
|
|
65
|
+
@extend %ontario-focus;
|
|
66
|
+
box-shadow: 0 0 0 4px colours.$ontario-colour-focus inset;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.ontario-task:has(.ontario-task__link) {
|
|
71
|
+
&:hover {
|
|
72
|
+
background-color: colours.$ontario-greyscale-5;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
@mixin link-states {
|
|
77
|
+
&:visited .ontario-task__label {
|
|
78
|
+
color: colours.$ontario-colour-link--visited;
|
|
79
|
+
}
|
|
80
|
+
&:hover .ontario-task__label {
|
|
81
|
+
color: colours.$ontario-colour-link--hover;
|
|
82
|
+
}
|
|
83
|
+
&:active .ontario-task__label {
|
|
84
|
+
color: colours.$ontario-colour-link--active;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.ontario-task {
|
|
89
|
+
&--status-completed,
|
|
90
|
+
&--status-inprogress,
|
|
91
|
+
&--status-notstarted,
|
|
92
|
+
&--status-optional,
|
|
93
|
+
&--status-error {
|
|
94
|
+
.ontario-task__link {
|
|
95
|
+
.ontario-task__label {
|
|
96
|
+
color: colours.$ontario-colour-link;
|
|
97
|
+
text-decoration: underline;
|
|
98
|
+
}
|
|
99
|
+
@include link-states;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
ontario-hint-text::part(hint-text) {
|
|
105
|
+
margin: spacing.$spacing-0;
|
|
106
|
+
|
|
107
|
+
@media screen and (max-width: breakpoints.$small-breakpoint) {
|
|
108
|
+
margin-top: spacing.$spacing-2;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/colours.variables' as colours;
|
|
2
|
+
@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/2-tools/functions/global.functions' as globalFunctions;
|
|
3
|
+
@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/global.variables' as globalVariables;
|
|
4
|
+
@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/spacing.variables' as spacing;
|
|
5
|
+
|
|
6
|
+
.ontario-task-list {
|
|
7
|
+
border-top: globalFunctions.px-to-rem(2) solid colours.$ontario-greyscale-20;
|
|
8
|
+
padding: spacing.$spacing-0;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.ontario-task-list__item {
|
|
12
|
+
max-width: globalVariables.$full-width;
|
|
13
|
+
list-style-type: none;
|
|
14
|
+
}
|
|
@@ -3161,7 +3161,7 @@ ontario-page-alert[type=error] a:active {
|
|
|
3161
3161
|
/* -------------------------------
|
|
3162
3162
|
Focus placeholder
|
|
3163
3163
|
--------------------------------- */
|
|
3164
|
-
.ontario-accordion__button--expand-all:focus, .ontario-accordion__button:focus, .ontario-navigation a:focus, .ontario-navigation a:active, .ontario-header-button:focus, .ontario-application-navigation a:focus, .ontario-application-navigation a:active, .ontario-hint-expander__button:focus, .ontario-hint-expander__button:active, .ontario-input:focus, .ontario-input:active, .ontario-language-toggler:focus, .ontario-radios__input:focus + .ontario-radios__label:before, .ontario-search__input.ontario-input:focus, .ontario-button:focus, .ontario-button:active, .ontario-textarea:focus, .ontario-textarea:active {
|
|
3164
|
+
.ontario-accordion__button--expand-all:focus, .ontario-accordion__button:focus, .ontario-navigation a:focus, .ontario-navigation a:active, .ontario-header-button:focus, .ontario-application-navigation a:focus, .ontario-application-navigation a:active, .ontario-hint-expander__button:focus, .ontario-hint-expander__button:active, .ontario-input:focus, .ontario-input:active, .ontario-language-toggler:focus, .ontario-radios__input:focus + .ontario-radios__label:before, .ontario-search__input.ontario-input:focus, .ontario-button:focus, .ontario-button:active, .ontario-task__link:focus .ontario-task__label, .ontario-textarea:focus, .ontario-textarea:active {
|
|
3165
3165
|
box-shadow: 0 0 0 4px #009ADB;
|
|
3166
3166
|
outline: 4px solid transparent;
|
|
3167
3167
|
transition: box-shadow 0.1s ease-in-out;
|
|
@@ -3878,6 +3878,97 @@ h1 > .ontario-label--heading {
|
|
|
3878
3878
|
border: 0.125rem solid #CD0000;
|
|
3879
3879
|
}
|
|
3880
3880
|
|
|
3881
|
+
.ontario-task-list {
|
|
3882
|
+
border-top: 0.125rem solid #cccccc;
|
|
3883
|
+
padding: 0;
|
|
3884
|
+
}
|
|
3885
|
+
|
|
3886
|
+
.ontario-task-list__item {
|
|
3887
|
+
max-width: 100%;
|
|
3888
|
+
list-style-type: none;
|
|
3889
|
+
}
|
|
3890
|
+
|
|
3891
|
+
.ontario-task {
|
|
3892
|
+
border-bottom: 0.125rem solid #cccccc;
|
|
3893
|
+
padding: 1.1875rem 0;
|
|
3894
|
+
list-style: none;
|
|
3895
|
+
}
|
|
3896
|
+
.ontario-task__content {
|
|
3897
|
+
display: flex;
|
|
3898
|
+
justify-content: space-between;
|
|
3899
|
+
align-items: center;
|
|
3900
|
+
}
|
|
3901
|
+
@media screen and (max-width: 40em) {
|
|
3902
|
+
.ontario-task__content {
|
|
3903
|
+
display: flex;
|
|
3904
|
+
flex-direction: column;
|
|
3905
|
+
align-items: flex-start;
|
|
3906
|
+
}
|
|
3907
|
+
}
|
|
3908
|
+
.ontario-task__label {
|
|
3909
|
+
text-align: left;
|
|
3910
|
+
margin: 0;
|
|
3911
|
+
font-size: 1.1875rem;
|
|
3912
|
+
font-weight: 600;
|
|
3913
|
+
display: inline-block;
|
|
3914
|
+
}
|
|
3915
|
+
@media screen and (max-width: 40em) {
|
|
3916
|
+
.ontario-task__label {
|
|
3917
|
+
margin-bottom: 0.5rem;
|
|
3918
|
+
}
|
|
3919
|
+
}
|
|
3920
|
+
.ontario-task__label a {
|
|
3921
|
+
text-decoration: none;
|
|
3922
|
+
color: inherit;
|
|
3923
|
+
}
|
|
3924
|
+
.ontario-task__label a:hover {
|
|
3925
|
+
text-decoration: underline;
|
|
3926
|
+
}
|
|
3927
|
+
.ontario-task__link {
|
|
3928
|
+
display: block;
|
|
3929
|
+
text-decoration: underline;
|
|
3930
|
+
color: #0066CC;
|
|
3931
|
+
font-weight: normal;
|
|
3932
|
+
}
|
|
3933
|
+
.ontario-task__hint-text--true {
|
|
3934
|
+
margin-bottom: 0.5rem;
|
|
3935
|
+
}
|
|
3936
|
+
|
|
3937
|
+
.ontario-task__link:focus {
|
|
3938
|
+
outline: none;
|
|
3939
|
+
box-shadow: none;
|
|
3940
|
+
}
|
|
3941
|
+
.ontario-task__link:focus .ontario-task__label {
|
|
3942
|
+
box-shadow: 0 0 0 4px #009ADB inset;
|
|
3943
|
+
}
|
|
3944
|
+
|
|
3945
|
+
.ontario-task:has(.ontario-task__link):hover {
|
|
3946
|
+
background-color: rgb(242.25, 242.25, 242.25);
|
|
3947
|
+
}
|
|
3948
|
+
|
|
3949
|
+
.ontario-task--status-completed .ontario-task__link .ontario-task__label, .ontario-task--status-inprogress .ontario-task__link .ontario-task__label, .ontario-task--status-notstarted .ontario-task__link .ontario-task__label, .ontario-task--status-optional .ontario-task__link .ontario-task__label, .ontario-task--status-error .ontario-task__link .ontario-task__label {
|
|
3950
|
+
color: #0066CC;
|
|
3951
|
+
text-decoration: underline;
|
|
3952
|
+
}
|
|
3953
|
+
.ontario-task--status-completed .ontario-task__link:visited .ontario-task__label, .ontario-task--status-inprogress .ontario-task__link:visited .ontario-task__label, .ontario-task--status-notstarted .ontario-task__link:visited .ontario-task__label, .ontario-task--status-optional .ontario-task__link:visited .ontario-task__label, .ontario-task--status-error .ontario-task__link:visited .ontario-task__label {
|
|
3954
|
+
color: #551A8B;
|
|
3955
|
+
}
|
|
3956
|
+
.ontario-task--status-completed .ontario-task__link:hover .ontario-task__label, .ontario-task--status-inprogress .ontario-task__link:hover .ontario-task__label, .ontario-task--status-notstarted .ontario-task__link:hover .ontario-task__label, .ontario-task--status-optional .ontario-task__link:hover .ontario-task__label, .ontario-task--status-error .ontario-task__link:hover .ontario-task__label {
|
|
3957
|
+
color: #00478F;
|
|
3958
|
+
}
|
|
3959
|
+
.ontario-task--status-completed .ontario-task__link:active .ontario-task__label, .ontario-task--status-inprogress .ontario-task__link:active .ontario-task__label, .ontario-task--status-notstarted .ontario-task__link:active .ontario-task__label, .ontario-task--status-optional .ontario-task__link:active .ontario-task__label, .ontario-task--status-error .ontario-task__link:active .ontario-task__label {
|
|
3960
|
+
color: #002142;
|
|
3961
|
+
}
|
|
3962
|
+
|
|
3963
|
+
ontario-hint-text::part(hint-text) {
|
|
3964
|
+
margin: 0;
|
|
3965
|
+
}
|
|
3966
|
+
@media screen and (max-width: 40em) {
|
|
3967
|
+
ontario-hint-text::part(hint-text) {
|
|
3968
|
+
margin-top: 0.5rem;
|
|
3969
|
+
}
|
|
3970
|
+
}
|
|
3971
|
+
|
|
3881
3972
|
.ontario-table-container {
|
|
3882
3973
|
position: relative;
|
|
3883
3974
|
margin: 0.5rem 0 2.5rem;
|
|
@@ -9124,7 +9215,8 @@ input[type=reset].ontario-header__search-reset:focus {
|
|
|
9124
9215
|
.ontario-card-collection__container {
|
|
9125
9216
|
display: flex;
|
|
9126
9217
|
flex-wrap: wrap;
|
|
9127
|
-
gap: 2rem;
|
|
9218
|
+
column-gap: 2rem;
|
|
9219
|
+
row-gap: 0;
|
|
9128
9220
|
margin: 0;
|
|
9129
9221
|
padding: 0;
|
|
9130
9222
|
}
|
|
@@ -9773,6 +9865,17 @@ html[lang=fr] blockquote {
|
|
|
9773
9865
|
color: #FFFFFF;
|
|
9774
9866
|
}
|
|
9775
9867
|
|
|
9868
|
+
.ontario-badge--white {
|
|
9869
|
+
background-color: #FFFFFF;
|
|
9870
|
+
color: rgb(76.5, 76.5, 76.5);
|
|
9871
|
+
border: 0.0625rem solid rgb(76.5, 76.5, 76.5);
|
|
9872
|
+
}
|
|
9873
|
+
|
|
9874
|
+
.ontario-badge--grey {
|
|
9875
|
+
background-color: #cccccc;
|
|
9876
|
+
color: rgb(25.5, 25.5, 25.5);
|
|
9877
|
+
}
|
|
9878
|
+
|
|
9776
9879
|
.ontario-back-to-top,
|
|
9777
9880
|
.ontario-back-to-top--default {
|
|
9778
9881
|
position: fixed;
|