@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.
@@ -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-0 spacing.$spacing-7 spacing.$spacing-7 spacing.$spacing-0;
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-card__card-type--horizontal & {
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: 66.6%;
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
- justify-content: flex-start;
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% - 2rem);
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% - 1.25rem);
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: calc(100% - 0.5rem);
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.75rem);
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: calc(100% - 0.5rem);
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% - 1.25rem);
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: calc(100% - 0.5rem);
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-input-padding: 7.2rem;
18
- $ontario-search-input-padding--mobile: 6.4rem;
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-input-padding;
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-input-padding--mobile;
349
+ padding-right: $ontario-search-padding--mobile;
350
350
  }
351
351
  }
352
352