@ongov/ontario-design-system-complete-styles 5.0.0-alpha.3 → 5.0.0-alpha.5
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/styles/components/ontario-card/ontario-card.scss +8 -3
- package/dist/styles/components/ontario-card-collection/ontario-card-collection.scss +8 -24
- package/dist/styles/components/ontario-header/ontario-header.scss +4 -4
- package/dist/styles/css/compiled/ontario-theme.css +10142 -0
- package/dist/styles/css/compiled/ontario-theme.min.css +1 -0
- package/package.json +3 -3
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
.ontario-card {
|
|
14
14
|
box-shadow: 0rem 0.1875rem 0.5rem 0.0625rem rgba(0, 0, 0, 0.4);
|
|
15
15
|
border-radius: globalVariables.$global-radius;
|
|
16
|
-
margin: spacing.$spacing-
|
|
16
|
+
margin-bottom: spacing.$spacing-7;
|
|
17
17
|
padding: spacing.$spacing-0;
|
|
18
18
|
/*
|
|
19
19
|
* Required for cards to stay the same height regardless of content size.
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
transition: all 0.3s ease-in-out;
|
|
25
25
|
position: relative;
|
|
26
26
|
cursor: pointer;
|
|
27
|
+
background: colours.$ontario-colour-white;
|
|
27
28
|
|
|
28
29
|
&:hover {
|
|
29
30
|
box-shadow: 0rem 0.375rem 0.75rem 0.125rem rgba(0, 0, 0, 0.35);
|
|
@@ -108,7 +109,11 @@
|
|
|
108
109
|
|
|
109
110
|
.ontario-card--image-true & {
|
|
110
111
|
border-radius: 0;
|
|
111
|
-
@at-root .ontario-
|
|
112
|
+
@at-root .ontario-card__image-right & {
|
|
113
|
+
border-radius: globalVariables.$global-radius 0 0 0;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
@at-root .ontario-card__image-left & {
|
|
112
117
|
border-radius: 0 globalVariables.$global-radius 0 0;
|
|
113
118
|
}
|
|
114
119
|
}
|
|
@@ -186,7 +191,7 @@ $ontario-card-heading-colours: (
|
|
|
186
191
|
|
|
187
192
|
.ontario-card__text-container {
|
|
188
193
|
.ontario-card__card-type--horizontal & {
|
|
189
|
-
width:
|
|
194
|
+
width: math.percentage(math.div(2, 3));
|
|
190
195
|
}
|
|
191
196
|
|
|
192
197
|
.ontario-card__image-size-one-fourth & {
|
|
@@ -5,51 +5,35 @@
|
|
|
5
5
|
.ontario-card-collection__container {
|
|
6
6
|
display: flex;
|
|
7
7
|
flex-wrap: wrap;
|
|
8
|
-
|
|
8
|
+
gap: spacing.$spacing-6;
|
|
9
9
|
margin: spacing.$spacing-0;
|
|
10
10
|
padding: spacing.$spacing-0;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
.ontario-card-collecton--cards-per-row-4 ::slotted(ontario-card) {
|
|
14
|
-
width: calc(25% -
|
|
15
|
-
|
|
16
|
-
&:nth-child(4n) {
|
|
17
|
-
margin-right: spacing.$spacing-0;
|
|
18
|
-
}
|
|
14
|
+
width: calc(25% - 1.5rem);
|
|
19
15
|
|
|
20
16
|
@media screen and (max-width: breakpoints.$medium-breakpoint) {
|
|
21
|
-
width: calc(50% -
|
|
22
|
-
|
|
23
|
-
&:nth-child(2n) {
|
|
24
|
-
margin-right: spacing.$spacing-0;
|
|
25
|
-
}
|
|
17
|
+
width: calc(50% - 1rem);
|
|
26
18
|
}
|
|
27
19
|
|
|
28
20
|
@media screen and (max-width: breakpoints.$small-breakpoint) {
|
|
29
|
-
width:
|
|
21
|
+
width: 100%;
|
|
30
22
|
}
|
|
31
23
|
}
|
|
32
24
|
|
|
33
25
|
.ontario-card-collecton--cards-per-row-3 ::slotted(ontario-card) {
|
|
34
|
-
width: calc(33.3% - 1.
|
|
35
|
-
|
|
36
|
-
&:nth-child(3n) {
|
|
37
|
-
margin-right: spacing.$spacing-0;
|
|
38
|
-
}
|
|
26
|
+
width: calc(33.3% - 1.33rem);
|
|
39
27
|
|
|
40
28
|
@media screen and (max-width: breakpoints.$small-breakpoint) {
|
|
41
|
-
width:
|
|
29
|
+
width: 100%;
|
|
42
30
|
}
|
|
43
31
|
}
|
|
44
32
|
|
|
45
33
|
.ontario-card-collecton--cards-per-row-2 ::slotted(ontario-card) {
|
|
46
|
-
width: calc(50% -
|
|
47
|
-
|
|
48
|
-
&:nth-child(2n) {
|
|
49
|
-
margin-right: spacing.$spacing-0;
|
|
50
|
-
}
|
|
34
|
+
width: calc(50% - 1rem);
|
|
51
35
|
|
|
52
36
|
@media screen and (max-width: breakpoints.$small-breakpoint) {
|
|
53
|
-
width:
|
|
37
|
+
width: 100%;
|
|
54
38
|
}
|
|
55
39
|
}
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/6-components/_text-inputs.component.scss';
|
|
15
15
|
@use '@ongov/ontario-design-system-global-styles/dist/styles/scss/7-overrides/_visibility.overrides.scss';
|
|
16
16
|
|
|
17
|
-
$ontario-search-
|
|
18
|
-
$ontario-search-
|
|
17
|
+
$ontario-search-padding: 7.2rem;
|
|
18
|
+
$ontario-search-padding--mobile: 6.4rem;
|
|
19
19
|
|
|
20
20
|
$ontario-header-logo-width: 180px;
|
|
21
21
|
$ontario-header-logo-width--mobile: 45px;
|
|
@@ -304,7 +304,7 @@ $ontario-navigation-container-min-width: 290px;
|
|
|
304
304
|
margin-bottom: spacing.$spacing-0;
|
|
305
305
|
height: globalVariables.$standard-input-height;
|
|
306
306
|
padding-left: spacing.$spacing-3;
|
|
307
|
-
padding-right: $ontario-search-
|
|
307
|
+
padding-right: $ontario-search-padding;
|
|
308
308
|
|
|
309
309
|
&:invalid + input[type='reset'] {
|
|
310
310
|
display: none;
|
|
@@ -346,7 +346,7 @@ $ontario-navigation-container-min-width: 290px;
|
|
|
346
346
|
|
|
347
347
|
@media screen and (min-width: breakpoints.$small-breakpoint) and (max-width: breakpoints.$medium-breakpoint) {
|
|
348
348
|
padding-left: spacing.$spacing-4;
|
|
349
|
-
padding-right: $ontario-search-
|
|
349
|
+
padding-right: $ontario-search-padding--mobile;
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
352
|
|