@ilo-org/styles 0.6.0 → 0.7.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.
Files changed (41) hide show
  1. package/build/css/components/index.css +759 -1095
  2. package/build/css/components/index.css.map +1 -1
  3. package/build/css/global.css +1 -1
  4. package/build/css/index.css +759 -1095
  5. package/build/css/index.css.map +1 -1
  6. package/build/css/monorepo.css +759 -1095
  7. package/build/css/monorepo.css.map +1 -1
  8. package/build/minified/index.css +1 -1
  9. package/build/minified/index.css.map +1 -1
  10. package/build/minified/monorepo.css +1 -1
  11. package/build/minified/monorepo.css.map +1 -1
  12. package/css/components/card.css +1 -1
  13. package/css/components/cardgroup.css +1 -1
  14. package/css/components/datacard.css +1 -0
  15. package/css/components/detailcard.css +1 -0
  16. package/css/components/factlistcard.css +1 -0
  17. package/css/components/featurecard.css +1 -0
  18. package/css/components/herocard.css +1 -1
  19. package/css/components/multilinkcard.css +1 -0
  20. package/css/components/promocard.css +1 -0
  21. package/css/components/statcard.css +1 -0
  22. package/css/components/textcard.css +1 -0
  23. package/css/global.css.map +1 -1
  24. package/css/index.css +1 -1
  25. package/css/index.css.map +1 -1
  26. package/css/monorepo.css +1 -1
  27. package/css/monorepo.css.map +1 -1
  28. package/package.json +1 -1
  29. package/scss/_mixins.scss +19 -20
  30. package/scss/components/_card.scss +79 -1377
  31. package/scss/components/_cardgroup.scss +26 -26
  32. package/scss/components/_datacard.scss +90 -0
  33. package/scss/components/_detailcard.scss +150 -0
  34. package/scss/components/_factlistcard.scss +110 -0
  35. package/scss/components/_featurecard.scss +218 -0
  36. package/scss/components/_herocard.scss +3 -19
  37. package/scss/components/_multilinkcard.scss +189 -0
  38. package/scss/components/_promocard.scss +157 -0
  39. package/scss/components/_statcard.scss +76 -0
  40. package/scss/components/_textcard.scss +135 -0
  41. package/scss/components/index.scss +8 -0
@@ -0,0 +1,189 @@
1
+ @use "../tokens" as *;
2
+ @use "../functions" as *;
3
+ @use "../animations" as *;
4
+ @import "../mixins";
5
+
6
+ .ilo--card {
7
+ $self: &;
8
+
9
+ &__type {
10
+ &__multilink {
11
+ // Defaults to standard size
12
+ --max-width: #{px-to-rem(536px)};
13
+
14
+ padding: px-to-rem(24px);
15
+
16
+ #{$self}--image--wrapper {
17
+ display: none;
18
+ }
19
+
20
+ #{$self}--content {
21
+ #{$self}--image--wrapper {
22
+ display: block;
23
+ }
24
+ }
25
+
26
+ @include breakpoint("medium") {
27
+ padding: px-to-rem(40px);
28
+ }
29
+
30
+ @include breakpoint("large") {
31
+ padding: px-to-rem(56px) px-to-rem(48px);
32
+ }
33
+
34
+ #{$self}--title {
35
+ @include font-styles("headline-5");
36
+ @include textmargin(
37
+ "margin-bottom",
38
+ 24px,
39
+ "headline-5",
40
+ "display",
41
+ 0,
42
+ 0
43
+ );
44
+ color: $brand-ilo-grey-charcoal;
45
+
46
+ @include breakpoint("medium") {
47
+ @include font-styles("headline-4");
48
+ @include textmargin(
49
+ "margin-bottom",
50
+ 24px,
51
+ "headline-4",
52
+ "display",
53
+ 0,
54
+ 0
55
+ );
56
+ }
57
+ }
58
+
59
+ #{$self}--intro {
60
+ @include font-styles("body-small");
61
+ @include textmargin("margin-bottom", 40px, "body-small", "copy", 0, 0);
62
+ color: $brand-ilo-grey-charcoal;
63
+
64
+ @include breakpoint("medium") {
65
+ @include font-styles("base");
66
+ @include textmargin("margin-bottom", 40px, "base", "copy", 0, 0);
67
+ }
68
+ }
69
+
70
+ &#{$self}__size {
71
+ &__standard {
72
+ --max-width: #{px-to-rem(536px)};
73
+
74
+ padding: px-to-rem(48px) px-to-rem(40px);
75
+
76
+ @include breakpoint("medium") {
77
+ padding: px-to-rem(48px) px-to-rem(40px);
78
+ }
79
+
80
+ @include breakpoint("large") {
81
+ padding: px-to-rem(48px) px-to-rem(40px);
82
+ }
83
+ }
84
+
85
+ &__narrow {
86
+ --max-width: #{px-to-rem(375px)};
87
+
88
+ padding: px-to-rem(40px) px-to-rem(24px) px-to-rem(48px);
89
+
90
+ @include breakpoint("medium") {
91
+ padding: px-to-rem(40px) px-to-rem(24px) px-to-rem(48px);
92
+ }
93
+
94
+ @include breakpoint("large") {
95
+ padding: px-to-rem(40px) px-to-rem(24px) px-to-rem(48px);
96
+ }
97
+
98
+ #{$self}--image--wrapper {
99
+ display: none;
100
+ }
101
+
102
+ #{$self}--content {
103
+ #{$self}--image--wrapper {
104
+ display: block;
105
+ margin-bottom: px-to-rem(24px);
106
+ }
107
+ }
108
+
109
+ #{$self}--title {
110
+ @include breakpoint("medium") {
111
+ @include font-styles("headline-5");
112
+ @include textmargin(
113
+ "margin-bottom",
114
+ 24px,
115
+ "headline-5",
116
+ "display",
117
+ 0,
118
+ 0
119
+ );
120
+ }
121
+ }
122
+
123
+ #{$self}--intro {
124
+ @include breakpoint("medium") {
125
+ @include font-styles("body-small");
126
+ @include textmargin(
127
+ "margin-bottom",
128
+ 40px,
129
+ "body-small",
130
+ "copy",
131
+ 0,
132
+ 0
133
+ );
134
+ }
135
+ }
136
+ }
137
+
138
+ &__wide,
139
+ &__fluid {
140
+ --max-width: #{px-to-rem(1104px)};
141
+
142
+ padding: px-to-rem(40px) px-to-rem(24px) px-to-rem(48px);
143
+
144
+ @include breakpoint("medium") {
145
+ padding: px-to-rem(56px) px-to-rem(48px);
146
+
147
+ &#{$self}__align__right {
148
+ #{$self}--wrap {
149
+ flex-direction: row-reverse;
150
+
151
+ .right-to-left & {
152
+ flex-direction: row;
153
+ }
154
+ }
155
+ }
156
+
157
+ #{$self}--wrap {
158
+ display: flex;
159
+ column-gap: px-to-rem(32px);
160
+
161
+ .right-to-left & {
162
+ flex-direction: row-reverse;
163
+ }
164
+ }
165
+
166
+ #{$self}--image--wrapper {
167
+ display: block;
168
+ width: 50%;
169
+ }
170
+
171
+ #{$self}--content {
172
+ width: 50%;
173
+
174
+ #{$self}--image--wrapper {
175
+ display: none;
176
+ }
177
+ }
178
+ }
179
+ }
180
+ }
181
+
182
+ .ilo--link-list {
183
+ margin-top: px-to-rem(35px);
184
+ position: relative;
185
+ z-index: 3;
186
+ }
187
+ }
188
+ }
189
+ }
@@ -0,0 +1,157 @@
1
+ @use "../tokens" as *;
2
+ @use "../functions" as *;
3
+ @use "../animations" as *;
4
+ @import "../mixins";
5
+
6
+ .ilo--card {
7
+ $self: &;
8
+
9
+ &__type {
10
+ &__promo {
11
+ --max-width: #{px-to-rem(343px)};
12
+
13
+ padding: px-to-rem(40px) px-to-rem(24px);
14
+ width: 100%;
15
+
16
+ @include breakpoint("medium") {
17
+ padding: px-to-rem(48px);
18
+ }
19
+
20
+ @include breakpoint("large") {
21
+ padding: px-to-rem(64px) px-to-rem(72px);
22
+ }
23
+
24
+ &#{$self}__size {
25
+ &__standard {
26
+ --max-width: #{px-to-rem(634px)};
27
+
28
+ padding: px-to-rem(48px);
29
+
30
+ @include breakpoint("medium") {
31
+ padding: px-to-rem(48px) px-to-rem(48px) px-to-rem(64px);
32
+ }
33
+
34
+ @include breakpoint("large") {
35
+ padding: px-to-rem(48px) px-to-rem(48px) px-to-rem(64px);
36
+ }
37
+
38
+ &#{$self}__cornercut {
39
+ @include cornercut(87px, 48px);
40
+ }
41
+ }
42
+
43
+ &__wide,
44
+ &__fluid {
45
+ --max-width: #{px-to-rem(920px)};
46
+
47
+ padding: px-to-rem(64px) px-to-rem(72px);
48
+
49
+ @include breakpoint("medium") {
50
+ padding: px-to-rem(64px) px-to-rem(72px);
51
+ }
52
+
53
+ @include breakpoint("large") {
54
+ padding: px-to-rem(64px) px-to-rem(72px);
55
+ }
56
+
57
+ &#{$self}__cornercut {
58
+ @include cornercut(116px, 64px);
59
+ }
60
+ }
61
+
62
+ &__narrow {
63
+ --max-width: #{px-to-rem(343px)};
64
+
65
+ padding: px-to-rem(40px) px-to-rem(24px);
66
+
67
+ @include breakpoint("medium") {
68
+ padding: px-to-rem(40px) px-to-rem(24px);
69
+ }
70
+
71
+ @include breakpoint("large") {
72
+ padding: px-to-rem(40px) px-to-rem(24px);
73
+ }
74
+
75
+ &#{$self}__cornercut {
76
+ @include cornercut(72px, 40px);
77
+ }
78
+
79
+ #{$self}--title {
80
+ @include font-styles("headline-4");
81
+ @include textmargin(
82
+ "margin-bottom",
83
+ 24px,
84
+ "headline-4",
85
+ "display",
86
+ "body-small",
87
+ "copy"
88
+ );
89
+
90
+ @include breakpoint("medium") {
91
+ @include font-styles("headline-3");
92
+ @include textmargin(
93
+ "margin-bottom",
94
+ 24px,
95
+ "headline-3",
96
+ "display",
97
+ "body-small",
98
+ "copy"
99
+ );
100
+ }
101
+ }
102
+
103
+ #{$self}--intro {
104
+ @include font-styles("body-small");
105
+ @include textmargin(
106
+ "margin-bottom",
107
+ 40px,
108
+ "body-small",
109
+ "copy",
110
+ 0,
111
+ 0
112
+ );
113
+ }
114
+ }
115
+ }
116
+
117
+ &#{$self}__theme__light:not(:hover) #{$self}--title {
118
+ color: $brand-ilo-grey-charcoal;
119
+ @include globaltransition("color");
120
+ }
121
+
122
+ #{$self}--title {
123
+ @include font-styles("headline-4");
124
+ @include textmargin(
125
+ "margin-bottom",
126
+ 24px,
127
+ "headline-4",
128
+ "display",
129
+ "body-small",
130
+ "copy"
131
+ );
132
+
133
+ @include breakpoint("medium") {
134
+ @include font-styles("headline-3");
135
+ @include textmargin(
136
+ "margin-bottom",
137
+ 32px,
138
+ "headline-3",
139
+ "display",
140
+ "base",
141
+ "copy"
142
+ );
143
+ }
144
+ }
145
+
146
+ #{$self}--intro {
147
+ @include font-styles("body-small");
148
+ @include textmargin("margin-bottom", 40px, "body-small", "copy", 0, 0);
149
+
150
+ @include breakpoint("medium") {
151
+ @include font-styles("base");
152
+ @include textmargin("margin-bottom", 40px, "base", "copy", 0, 0);
153
+ }
154
+ }
155
+ }
156
+ }
157
+ }
@@ -0,0 +1,76 @@
1
+ @use "../tokens" as *;
2
+ @use "../functions" as *;
3
+ @use "../animations" as *;
4
+ @import "../mixins";
5
+
6
+ .ilo--card {
7
+ $self: &;
8
+
9
+ &__type {
10
+ &__stat {
11
+ --max-width: #{px-to-rem(343px)};
12
+
13
+ border-bottom: px-to-rem(3px) solid $brand-ilo-purple;
14
+ padding: px-to-rem(24px) px-to-rem(40px) px-to-rem(22px);
15
+ position: relative;
16
+ width: 100%;
17
+
18
+ @include cornercut(72px, 40px);
19
+
20
+ &#{$self}__color {
21
+ &__blue {
22
+ background: $brand-ilo-light-blue;
23
+ }
24
+
25
+ &__yellow {
26
+ background: $brand-ilo-yellow;
27
+ }
28
+
29
+ &__green {
30
+ background: $brand-ilo-green;
31
+ }
32
+
33
+ &__turquoise {
34
+ background: $brand-ilo-turquoise;
35
+ }
36
+ }
37
+
38
+ #{$self}--content {
39
+ display: flex;
40
+ flex-wrap: wrap;
41
+ height: 100%;
42
+
43
+ .right-to-left & {
44
+ flex-direction: row-reverse;
45
+ }
46
+ }
47
+
48
+ #{$self}--title {
49
+ color: $brand-ilo-dark-blue;
50
+ @include font-styles("headline-3");
51
+ @include textmargin(
52
+ "margin-bottom",
53
+ 24px,
54
+ "headline-3",
55
+ "display",
56
+ 0,
57
+ 0
58
+ );
59
+ width: 100%;
60
+ }
61
+
62
+ #{$self}--intro {
63
+ color: $brand-ilo-dark-blue;
64
+ font-family: $fonts-display;
65
+ @include font-styles("base");
66
+ @include textmargin("margin-bottom", 35px, "nav-md-sm", "copy", 0, 0);
67
+ width: 100%;
68
+ }
69
+
70
+ .ilo--link {
71
+ @include font-styles("image-credit");
72
+ align-self: flex-end;
73
+ }
74
+ }
75
+ }
76
+ }
@@ -0,0 +1,135 @@
1
+ @use "../tokens" as *;
2
+ @use "../functions" as *;
3
+ @use "../animations" as *;
4
+ @import "../mixins";
5
+
6
+ .ilo--card {
7
+ $self: &;
8
+
9
+ &__type {
10
+ &__text {
11
+ --max-width: #{px-to-rem(301px)};
12
+
13
+ border-bottom: px-to-rem(3px) solid $brand-ilo-grey-ui;
14
+ padding: px-to-rem(24px) px-to-rem(40px);
15
+
16
+ @include cornercut(73px, 40px);
17
+
18
+ [class$="profile--contents--light"] * {
19
+ color: $color-base-neutrals-dark;
20
+ }
21
+
22
+ [class$="profile--contents--dark"] * {
23
+ color: $color-base-neutrals-white;
24
+ }
25
+
26
+ &:hover,
27
+ &:focus,
28
+ &:focus-within {
29
+ @include card-drop-shadow;
30
+
31
+ [class*="profile--contents"] * {
32
+ color: $color-base-blue-medium;
33
+ }
34
+ }
35
+
36
+ @include breakpoint("medium") {
37
+ padding: px-to-rem(32px) px-to-rem(40px);
38
+ }
39
+
40
+ &#{$self}__size {
41
+ &__wide,
42
+ &__fluid {
43
+ --max-width: #{px-to-rem(523px)};
44
+
45
+ padding: px-to-rem(32px) px-to-rem(40px);
46
+
47
+ @include breakpoint("medium") {
48
+ padding: px-to-rem(32px) px-to-rem(40px);
49
+ }
50
+ }
51
+
52
+ &__narrow {
53
+ --max-width: #{px-to-rem(301px)};
54
+
55
+ padding: px-to-rem(24px) px-to-rem(40px);
56
+
57
+ @include breakpoint("medium") {
58
+ padding: px-to-rem(24px) px-to-rem(40px);
59
+ }
60
+
61
+ #{$self}--title {
62
+ @include font-styles("headline-6");
63
+ @include textmargin(
64
+ "margin-bottom",
65
+ 40px,
66
+ "headline-6",
67
+ "display",
68
+ "base",
69
+ "copy"
70
+ );
71
+ }
72
+ }
73
+ }
74
+
75
+ &#{$self}__dark {
76
+ border-bottom: px-to-rem(3px) solid $color-base-red-medium;
77
+ }
78
+
79
+ #{$self}--eyebrow {
80
+ @include textmargin(
81
+ "margin-bottom",
82
+ 24px,
83
+ "base",
84
+ "copy",
85
+ "headline-5",
86
+ "display"
87
+ );
88
+ }
89
+
90
+ #{$self}--title {
91
+ @include font-styles("headline-6");
92
+ @include textmargin(
93
+ "margin-bottom",
94
+ 40px,
95
+ "headline-6",
96
+ "display",
97
+ "base",
98
+ "copy"
99
+ );
100
+
101
+ @include breakpoint("medium") {
102
+ @include font-styles("headline-5");
103
+ @include textmargin(
104
+ "margin-bottom",
105
+ 40px,
106
+ "headline-5",
107
+ "display",
108
+ "base",
109
+ "copy"
110
+ );
111
+ }
112
+ }
113
+
114
+ #{$self}--date {
115
+ display: block;
116
+ @include textmargin("margin-bottom", 32px, "base", "copy", 0, 0);
117
+ }
118
+
119
+ #{$self}--content {
120
+ display: flex;
121
+ flex-direction: column;
122
+ position: relative;
123
+
124
+ > * {
125
+ justify-self: flex-start;
126
+ }
127
+
128
+ > *:last-child {
129
+ justify-self: flex-end;
130
+ margin-bottom: 0;
131
+ }
132
+ }
133
+ }
134
+ }
135
+ }
@@ -3,6 +3,14 @@
3
3
  @use "button";
4
4
  @use "callout";
5
5
  @use "card";
6
+ @use "featurecard";
7
+ @use "textcard";
8
+ @use "detailcard";
9
+ @use "promocard";
10
+ @use "multilinkcard";
11
+ @use "datacard";
12
+ @use "statcard";
13
+ @use "factlistcard";
6
14
  @use "cardgroup";
7
15
  @use "checkbox";
8
16
  @use "contextmenu";