@ongov/ontario-design-system-complete-styles 4.3.0-alpha.2 → 4.3.0-alpha.3
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/fonts/open-sans-700--italic/open-sans-700--italic.ttf +0 -0
- package/dist/styles/components/ontario-badge/ontario-badge.scss +71 -0
- package/dist/styles/scss/1-variables/_global.variables.scss +2 -0
- package/dist/styles/scss/3-generics/_typography.generics.scss +12 -4
- package/dist/styles/scss/6-components/_all.component.scss +1 -0
- package/dist/styles/scss/6-components/_form.component.scss +1 -0
- package/dist/styles/scss/6-components/_labels.component.scss +1 -0
- package/dist/styles/scss/7-overrides/_visibility.overrides.scss +9 -7
- package/package.json +5 -5
|
Binary file
|
|
@@ -0,0 +1,71 @@
|
|
|
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/1-variables/typography.variables' as typography;
|
|
3
|
+
@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/spacing.variables' as spacing;
|
|
4
|
+
@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/font-weights.variables' as fontWeights;
|
|
5
|
+
@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/1-variables/font-sizes.variables' as fontSizes;
|
|
6
|
+
@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/2-tools/functions/global.functions' as globalFunctions;
|
|
7
|
+
|
|
8
|
+
.ontario-badge__container {
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
gap: spacing.$spacing-7;
|
|
12
|
+
align-items: flex-start;
|
|
13
|
+
padding: spacing.$spacing-5 spacing.$spacing-4;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.ontario-badge__label {
|
|
17
|
+
display: block;
|
|
18
|
+
text-align: left;
|
|
19
|
+
font-weight: fontWeights.$ontario-font-weights-semi-bold;
|
|
20
|
+
margin-bottom: spacing.$spacing-3;
|
|
21
|
+
font-size: fontSizes.$ontario-font-size-small;
|
|
22
|
+
color: colours.$ontario-greyscale-70;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.ontario-badge {
|
|
26
|
+
display: inline-block;
|
|
27
|
+
background-color: colours.$ontario-colour-information-light;
|
|
28
|
+
color: colours.$ontario-greyscale-70;
|
|
29
|
+
padding: spacing.$spacing-1 spacing.$spacing-2;
|
|
30
|
+
font-family: typography.$ontario-font-raleway-modified;
|
|
31
|
+
font-size: fontSizes.$ontario-font-size-standard-body-text;
|
|
32
|
+
font-weight: fontWeights.$ontario-font-weights-bold;
|
|
33
|
+
line-height: globalFunctions.px-to-rem(25);
|
|
34
|
+
letter-spacing: 0.03rem;
|
|
35
|
+
text-transform: uppercase;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.ontario-badge--default-light {
|
|
39
|
+
background-color: colours.$ontario-colour-information-light;
|
|
40
|
+
color: colours.$ontario-greyscale-70;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.ontario-badge--default-heavy {
|
|
44
|
+
background-color: colours.$ontario-colour-information;
|
|
45
|
+
color: colours.$ontario-colour-white;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.ontario-badge--neutral-light {
|
|
49
|
+
background-color: colours.$ontario-greyscale-5;
|
|
50
|
+
color: colours.$ontario-greyscale-70;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.ontario-badge--neutral-heavy {
|
|
54
|
+
background-color: colours.$ontario-colour-black;
|
|
55
|
+
color: colours.$ontario-colour-white;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.ontario-badge--alert-heavy {
|
|
59
|
+
background-color: colours.$ontario-colour-alert;
|
|
60
|
+
color: colours.$ontario-colour-white;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.ontario-badge--warning-heavy {
|
|
64
|
+
background-color: colours.$ontario-colour-warning;
|
|
65
|
+
color: colours.$ontario-colour-black;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.ontario-badge--success-heavy {
|
|
69
|
+
background-color: colours.$ontario-colour-success;
|
|
70
|
+
color: colours.$ontario-colour-white;
|
|
71
|
+
}
|
|
@@ -13,6 +13,8 @@ $global-radius: variables.$ontario-global-tokens-radius;
|
|
|
13
13
|
// This value represents 1 pixel based on a base rem value of 16px
|
|
14
14
|
$pixel: variables.$ontario-global-tokens-pixel-value;
|
|
15
15
|
|
|
16
|
+
$breakpoint-transition-value: variables.$ontario-global-tokens-breakpoint-transition-value;
|
|
17
|
+
|
|
16
18
|
// This value represents a large max value
|
|
17
19
|
$max-value: variables.$ontario-global-tokens-max-value;
|
|
18
20
|
|
|
@@ -74,13 +74,21 @@
|
|
|
74
74
|
font-family: 'Open Sans';
|
|
75
75
|
font-weight: fontWeights.$ontario-font-weights-bold;
|
|
76
76
|
font-display: swap;
|
|
77
|
-
src:
|
|
78
|
-
|
|
79
|
-
src: assetHelperFunctions.getFontUrl('open-sans-700/open-sans-700.eot?#iefix') format('embedded-opentype'),
|
|
77
|
+
src: assetHelperFunctions.getFontUrl('open-sans-700/open-sans-700.eot'),
|
|
78
|
+
assetHelperFunctions.getFontUrl('open-sans-700/open-sans-700.eot?#iefix') format('embedded-opentype'),
|
|
80
79
|
assetHelperFunctions.getFontUrl('open-sans-700/open-sans-700.woff2') format('woff2'),
|
|
81
80
|
assetHelperFunctions.getFontUrl('open-sans-700/open-sans-700.woff') format('woff'),
|
|
82
81
|
assetHelperFunctions.getFontUrl('open-sans-700/open-sans-700.ttf') format('truetype'),
|
|
83
|
-
assetHelperFunctions.getFontUrl('open-sans-700/open-sans-700.svg');
|
|
82
|
+
assetHelperFunctions.getFontUrl('open-sans-700/open-sans-700.svg'), local('Open Sans Bold'), local('Open-Sans-700');
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
@font-face {
|
|
86
|
+
font-family: 'Open Sans';
|
|
87
|
+
font-weight: fontWeights.$ontario-font-weights-bold;
|
|
88
|
+
font-style: italic;
|
|
89
|
+
font-display: swap;
|
|
90
|
+
src: assetHelperFunctions.getFontUrl('open-sans-700--italic/open-sans-700--italic.ttf') format('truetype'),
|
|
91
|
+
local('Open Sans Bold Italic'), local('Open-Sans-bold-italic');
|
|
84
92
|
}
|
|
85
93
|
|
|
86
94
|
@font-face {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
@forward "./../../components/ontario-accordion/ontario-accordion.scss";
|
|
2
2
|
@forward "./../../components/ontario-aside/ontario-aside.scss";
|
|
3
3
|
@forward "./../../components/ontario-back-to-top/ontario-back-to-top.scss";
|
|
4
|
+
@forward "./../../components/ontario-badge/ontario-badge.scss";
|
|
4
5
|
@forward "./../../components/ontario-blockquote/ontario-blockquote.scss";
|
|
5
6
|
@forward "./../../components/ontario-button/ontario-button.scss";
|
|
6
7
|
@forward "./../../components/ontario-callout/ontario-callout.scss";
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
visibility: hidden !important;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
@media screen and (max-width: (breakpoints.$small-breakpoint - globalVariables.$
|
|
18
|
+
@media screen and (max-width: (breakpoints.$small-breakpoint - globalVariables.$breakpoint-transition-value)) {
|
|
19
19
|
.ontario-hide-for-small-only {
|
|
20
20
|
display: none !important;
|
|
21
21
|
}
|
|
@@ -33,19 +33,20 @@
|
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
@media screen and (max-width: (breakpoints.$small-breakpoint - globalVariables.$
|
|
36
|
+
@media screen and (max-width: (breakpoints.$small-breakpoint - globalVariables.$breakpoint-transition-value)) {
|
|
37
37
|
.ontario-show-for-medium {
|
|
38
38
|
display: none !important;
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
@media screen and (min-width: breakpoints.$small-breakpoint) and (max-width: (breakpoints.$medium-breakpoint - globalVariables.$
|
|
42
|
+
@media screen and (min-width: breakpoints.$small-breakpoint) and (max-width: (breakpoints.$medium-breakpoint - globalVariables.$breakpoint-transition-value)) {
|
|
43
43
|
.ontario-hide-for-medium-only {
|
|
44
44
|
display: none !important;
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
@media screen and (max-width: (breakpoints.$small-breakpoint - globalVariables.$
|
|
48
|
+
@media screen and (max-width: (breakpoints.$small-breakpoint - globalVariables.$breakpoint-transition-value)),
|
|
49
|
+
screen and (min-width: breakpoints.$medium-breakpoint) {
|
|
49
50
|
.ontario-show-for-medium-only {
|
|
50
51
|
display: none !important;
|
|
51
52
|
}
|
|
@@ -57,19 +58,20 @@
|
|
|
57
58
|
}
|
|
58
59
|
}
|
|
59
60
|
|
|
60
|
-
@media screen and (max-width: (breakpoints.$medium-breakpoint - globalVariables.$
|
|
61
|
+
@media screen and (max-width: (breakpoints.$medium-breakpoint - globalVariables.$breakpoint-transition-value)) {
|
|
61
62
|
.ontario-show-for-large {
|
|
62
63
|
display: none !important;
|
|
63
64
|
}
|
|
64
65
|
}
|
|
65
66
|
|
|
66
|
-
@media screen and (min-width: breakpoints.$medium-breakpoint) and (max-width: (breakpoints.$large-breakpoint - globalVariables.$
|
|
67
|
+
@media screen and (min-width: breakpoints.$medium-breakpoint) and (max-width: (breakpoints.$large-breakpoint - globalVariables.$breakpoint-transition-value)) {
|
|
67
68
|
.ontario-hide-for-large-only {
|
|
68
69
|
display: none !important;
|
|
69
70
|
}
|
|
70
71
|
}
|
|
71
72
|
|
|
72
|
-
@media screen and (max-width: (breakpoints.$medium-breakpoint - globalVariables.$
|
|
73
|
+
@media screen and (max-width: (breakpoints.$medium-breakpoint - globalVariables.$breakpoint-transition-value)),
|
|
74
|
+
screen and (min-width: breakpoints.$large-breakpoint) {
|
|
73
75
|
.ontario-show-for-large-only {
|
|
74
76
|
display: none !important;
|
|
75
77
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ongov/ontario-design-system-complete-styles",
|
|
3
|
-
"version": "4.3.0-alpha.
|
|
3
|
+
"version": "4.3.0-alpha.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Complete styles package for the Ontario Design System containing all SASS and CSS for use independently of the Component Library.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"docs:copy:readme": "ts-node ../../scripts/documentation-helper.ts -f README.md -p \"---\ntitle: Complete Styles\n---\n\" -df ../app-web-components-documentation/docs/06-readme-complete-styles.md"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@ongov/ontario-design-system-component-library": "4.3.0-alpha.
|
|
24
|
-
"@ongov/ontario-design-system-design-tokens": "4.3.0-alpha.
|
|
25
|
-
"@ongov/ontario-design-system-global-styles": "4.3.0-alpha.
|
|
23
|
+
"@ongov/ontario-design-system-component-library": "4.3.0-alpha.3",
|
|
24
|
+
"@ongov/ontario-design-system-design-tokens": "4.3.0-alpha.3",
|
|
25
|
+
"@ongov/ontario-design-system-global-styles": "4.3.0-alpha.3",
|
|
26
26
|
"gulp-flatten": "^0.4.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
}
|
|
49
49
|
],
|
|
50
50
|
"sass": "dist/styles/scss/theme.scss",
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "b0c72f79336ac9777f3adb14e8555bb3aa6a0379"
|
|
52
52
|
}
|