@ilo-org/styles 0.0.1

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 (55) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +74 -0
  3. package/build/css/components/index.css +5924 -0
  4. package/build/css/components/index.css.map +1 -0
  5. package/build/css/index.css +6183 -0
  6. package/build/css/index.css.map +1 -0
  7. package/package.json +35 -0
  8. package/scss/_animations.scss +29 -0
  9. package/scss/_config.scss +6 -0
  10. package/scss/_functions.scss +126 -0
  11. package/scss/_mixins.scss +331 -0
  12. package/scss/_reset.scss +166 -0
  13. package/scss/_tokens.scss +5 -0
  14. package/scss/_typography.scss +72 -0
  15. package/scss/components/_accordion.scss +102 -0
  16. package/scss/components/_breadcrumb.scss +258 -0
  17. package/scss/components/_button.scss +272 -0
  18. package/scss/components/_callout.scss +151 -0
  19. package/scss/components/_card.scss +667 -0
  20. package/scss/components/_cardgroup.scss +45 -0
  21. package/scss/components/_checkbox.scss +124 -0
  22. package/scss/components/_contextmenu.scss +75 -0
  23. package/scss/components/_credit.scss +82 -0
  24. package/scss/components/_datepicker.scss +19 -0
  25. package/scss/components/_dropdown.scss +115 -0
  26. package/scss/components/_empty.scss +33 -0
  27. package/scss/components/_fieldset.scss +74 -0
  28. package/scss/components/_file-upload.scss +130 -0
  29. package/scss/components/_footer.scss +329 -0
  30. package/scss/components/_formgroup.scss +20 -0
  31. package/scss/components/_heading.scss +74 -0
  32. package/scss/components/_hero.scss +445 -0
  33. package/scss/components/_image.scss +42 -0
  34. package/scss/components/_input.scss +71 -0
  35. package/scss/components/_link.scss +6 -0
  36. package/scss/components/_linklist.scss +148 -0
  37. package/scss/components/_list.scss +79 -0
  38. package/scss/components/_loading.scss +93 -0
  39. package/scss/components/_modal.scss +84 -0
  40. package/scss/components/_notification.scss +162 -0
  41. package/scss/components/_pagination.scss +238 -0
  42. package/scss/components/_profile.scss +138 -0
  43. package/scss/components/_radio.scss +121 -0
  44. package/scss/components/_readmore.scss +53 -0
  45. package/scss/components/_richtext.scss +390 -0
  46. package/scss/components/_searchfield.scss +66 -0
  47. package/scss/components/_table.scss +177 -0
  48. package/scss/components/_tableofcontents.scss +98 -0
  49. package/scss/components/_tabs.scss +194 -0
  50. package/scss/components/_tag.scss +103 -0
  51. package/scss/components/_textarea.scss +89 -0
  52. package/scss/components/_tooltip.scss +198 -0
  53. package/scss/components/_video.scss +674 -0
  54. package/scss/components/index.scss +39 -0
  55. package/scss/index.scss +11 -0
@@ -0,0 +1,66 @@
1
+ @use "../tokens" as *;
2
+ @use "../functions" as *;
3
+ @import "../mixins";
4
+
5
+ .ilo--searchfield {
6
+ display: flex;
7
+
8
+ &--button {
9
+ background-color: map-get(
10
+ $color,
11
+ "formelements",
12
+ "inputbutton",
13
+ "default",
14
+ "background"
15
+ );
16
+ background-position: center center;
17
+ background-repeat: no-repeat;
18
+ background-size: $spacing-padding-3 $spacing-padding-3;
19
+ @include bordervalues("inputbutton", "formelements");
20
+ height: $spacing-padding-6;
21
+ width: $spacing-padding-6;
22
+ text-indent: -9999px;
23
+ @include dataurlicon(
24
+ "search",
25
+ $color-formelements-inputbutton-default-color
26
+ );
27
+
28
+ &:hover {
29
+ background-color: map-get(
30
+ $color,
31
+ "formelements",
32
+ "inputbutton",
33
+ "hover",
34
+ "background"
35
+ );
36
+ cursor: pointer;
37
+ @include dataurlicon(
38
+ "search",
39
+ $color-formelements-inputbutton-hover-color
40
+ );
41
+ }
42
+
43
+ &:active {
44
+ background-color: map-get(
45
+ $color,
46
+ "formelements",
47
+ "inputbutton",
48
+ "active",
49
+ "background"
50
+ );
51
+ @include dataurlicon(
52
+ "search",
53
+ $color-formelements-inputbutton-active-color
54
+ );
55
+ }
56
+
57
+ .haslabel & {
58
+ margin-top: px-to-rem(28px);
59
+ }
60
+
61
+ &:disabled {
62
+ opacity: 45%;
63
+ pointer-events: none;
64
+ }
65
+ }
66
+ }
@@ -0,0 +1,177 @@
1
+ @use "../tokens" as *;
2
+ @use "../functions" as *;
3
+ @import "../mixins";
4
+
5
+ .ilo--table {
6
+ background-color: $color-ux-table-background;
7
+ padding: $spacing-ux-table-padding-top $spacing-ux-table-padding-right
8
+ $spacing-ux-table-padding-bottom $spacing-ux-table-padding-left;
9
+ position: relative;
10
+
11
+ &--header {
12
+ background-color: $color-ux-table-content-background;
13
+ padding: $spacing-ux-table-content-padding-top
14
+ $spacing-ux-table-content-padding-right
15
+ $spacing-ux-table-content-padding-bottom
16
+ $spacing-ux-table-content-padding-left;
17
+ }
18
+
19
+ &--wrapper {
20
+ max-height: 380px;
21
+ overflow: scroll;
22
+ position: relative;
23
+ width: 100%;
24
+ }
25
+
26
+ &--content {
27
+ width: 100%;
28
+ }
29
+
30
+ &--head {
31
+ background-color: $color-ux-table-content-background;
32
+ border-top: px-to-rem(2px) solid $color-base-neutrals-lighter;
33
+ border-bottom: px-to-rem(2px) solid $color-base-neutrals-lighter;
34
+ box-shadow: 0px 0.8px 1.6px rgba(30, 45, 190, 0.038),
35
+ 0px 4px 8px rgba(30, 45, 190, 0.054),
36
+ 0px 10px 20px rgba(30, 45, 190, 0.08),
37
+ 0px -4px 16px rgba(30, 45, 190, 0.054);
38
+ left: 0;
39
+ height: auto;
40
+ position: sticky;
41
+ top: 0;
42
+ width: 100%;
43
+ z-index: 2;
44
+
45
+ &--cell {
46
+ background-color: $color-ux-table-content-background;
47
+ border-left: px-to-rem(1px) solid $color-base-neutrals-lighter;
48
+ font-family: $fonts-display;
49
+ font-weight: 700;
50
+ @include font-styles("body-xs");
51
+ padding: $spacing-ux-table-head-padding-top
52
+ $spacing-ux-table-head-padding-right
53
+ $spacing-ux-table-head-padding-bottom
54
+ $spacing-ux-table-head-padding-left;
55
+ pointer-events: none;
56
+ text-align: left;
57
+
58
+ &:first-of-type {
59
+ border-left: none;
60
+ }
61
+
62
+ &.sortable {
63
+ pointer-events: auto;
64
+ position: relative;
65
+
66
+ &:after {
67
+ background-color: $color-base-neutrals-lighter;
68
+ background-image: url("#{colortodataurlicon("arrow", $color-ux-labels-actionable)}");
69
+ background-position: center center;
70
+ background-repeat: no-repeat;
71
+ background-size: 75%;
72
+ content: "";
73
+ display: block;
74
+ height: px-to-rem($spacing-padding-3);
75
+ position: absolute;
76
+ right: px-to-rem(9px);
77
+ width: px-to-rem($spacing-padding-3);
78
+ top: 50%;
79
+ transform: translateY(-50%);
80
+ }
81
+
82
+ &:hover {
83
+ background-color: $color-ux-table-selected-background;
84
+ cursor: pointer;
85
+ }
86
+
87
+ &[aria-sort="descending"] {
88
+ &:after {
89
+ transform-origin: center center;
90
+ transform: translateY(-50%) rotate(180deg);
91
+ }
92
+ }
93
+ }
94
+ }
95
+ }
96
+
97
+ &--body {
98
+ background-color: $color-ux-table-cell-background;
99
+
100
+ &--row.selected {
101
+ background-color: $color-ux-table-hover-background;
102
+ }
103
+
104
+ &--cell {
105
+ border-bottom: px-to-rem(2px) solid $color-base-neutrals-lighter;
106
+ font-family: $fonts-copy;
107
+ font-weight: 400;
108
+ @include font-styles("body-xs");
109
+ outline: 0;
110
+ padding: $spacing-ux-table-cell-padding-top
111
+ $spacing-ux-table-cell-padding-right
112
+ $spacing-ux-table-cell-padding-bottom
113
+ $spacing-ux-table-cell-padding-left;
114
+ position: relative;
115
+
116
+ &:first-of-type {
117
+ border-left: none;
118
+ }
119
+
120
+ &.numeric {
121
+ text-align: right;
122
+ }
123
+
124
+ &.selected {
125
+ background-color: $color-ux-table-selected-background;
126
+ border-bottom: 2px solid $color-ux-labels-hover;
127
+ color: $color-ux-labels-hover;
128
+ }
129
+
130
+ &.column--selected {
131
+ background-color: $color-ux-table-hover-background;
132
+ }
133
+
134
+ a {
135
+ @include linkstyles();
136
+ }
137
+ }
138
+ }
139
+
140
+ &--headline {
141
+ font-family: $fonts-display;
142
+ font-weight: 700;
143
+ margin-bottom: px-to-rem(7px);
144
+ @include font-styles("headline-6");
145
+ }
146
+
147
+ &--description {
148
+ font-family: $fonts-copy;
149
+ font-weight: 400;
150
+ @include font-styles("body-xxs");
151
+
152
+ a {
153
+ @include linkstyles();
154
+ }
155
+ }
156
+
157
+ &--zebra {
158
+ .ilo--table--body--row:nth-child(odd) {
159
+ background-color: $color-ux-table-zebra-background;
160
+
161
+ &:hover,
162
+ &:focus {
163
+ background-color: $color-ux-table-hover-background;
164
+ }
165
+
166
+ .ilo--table--body--cell {
167
+ border-left: px-to-rem(1px) solid $color-base-neutrals-white;
168
+
169
+ &:hover,
170
+ &:focus,
171
+ &.selected {
172
+ background-color: $color-ux-table-selected-background;
173
+ }
174
+ }
175
+ }
176
+ }
177
+ }
@@ -0,0 +1,98 @@
1
+ @use "../tokens" as *;
2
+ @use "../functions" as *;
3
+ @import "../mixins";
4
+
5
+ .ilo--table-of-contents {
6
+ background-color: $color-ux-tableofcontents-items-default-background;
7
+ min-width: 343px;
8
+ padding: 0;
9
+
10
+ &--list,
11
+ &--list--item {
12
+ width: 100%;
13
+ }
14
+
15
+ &--link {
16
+ background-color: transparent;
17
+ background-position: calc(100% - 11px) center;
18
+ background-repeat: no-repeat;
19
+ background-size: px-to-rem(24px) px-to-rem(24px);
20
+ border-bottom: $color-ux-tableofcontents-items-default-border
21
+ $spacing-ux-tableofcontents-items-border-bottom solid;
22
+ color: $color-ux-labels-actionable;
23
+ display: block;
24
+ font-family: $fonts-display;
25
+ font-weight: 500;
26
+ margin: 0 $spacing-ux-tableofcontents-padding-right 0
27
+ $spacing-ux-tableofcontents-padding-left;
28
+ padding: $spacing-ux-tableofcontents-items-padding-top
29
+ $spacing-ux-tableofcontents-items-padding-right
30
+ $spacing-ux-tableofcontents-items-padding-bottom
31
+ $spacing-ux-tableofcontents-items-padding-left;
32
+ text-decoration: none;
33
+ width: calc(
34
+ 100% - $spacing-ux-tableofcontents-padding-right -
35
+ $spacing-ux-tableofcontents-padding-left
36
+ );
37
+ @include dataurlicon("stemarrow", $color-ux-labels-actionable);
38
+ @include font-styles("label-medium");
39
+
40
+ &:hover,
41
+ &:focus {
42
+ background-color: $color-ux-tableofcontents-items-hover-background;
43
+ border-bottom: $color-ux-tableofcontents-items-hover-border
44
+ $spacing-ux-tableofcontents-items-border-bottom solid;
45
+ background-position: calc(100% - 19px) center;
46
+ color: $color-ux-labels-hover;
47
+ margin: 0;
48
+ outline: none;
49
+ padding: $spacing-ux-tableofcontents-items-padding-top
50
+ calc(
51
+ $spacing-ux-tableofcontents-items-padding-right +
52
+ $spacing-ux-tableofcontents-padding-right
53
+ )
54
+ $spacing-ux-tableofcontents-items-padding-bottom
55
+ calc(
56
+ $spacing-ux-tableofcontents-items-padding-left +
57
+ $spacing-ux-tableofcontents-padding-left
58
+ );
59
+ width: 100%;
60
+ @include dataurlicon("stemarrow", $color-ux-labels-hover);
61
+ }
62
+
63
+ &:active {
64
+ background-color: $color-ux-tableofcontents-items-active-background;
65
+ border-bottom: $color-ux-tableofcontents-items-active-border
66
+ $spacing-ux-tableofcontents-items-border-bottom solid;
67
+ color: $color-ux-tableofcontents-items-active-color;
68
+ margin: 0;
69
+ outline: none;
70
+ padding: $spacing-ux-tableofcontents-items-padding-top
71
+ calc(
72
+ $spacing-ux-tableofcontents-items-padding-right +
73
+ $spacing-ux-tableofcontents-padding-right
74
+ )
75
+ $spacing-ux-tableofcontents-items-padding-bottom
76
+ calc(
77
+ $spacing-ux-tableofcontents-items-padding-left +
78
+ $spacing-ux-tableofcontents-padding-left
79
+ );
80
+ width: 100%;
81
+ @include dataurlicon(
82
+ "stemarrow",
83
+ $color-ux-tableofcontents-items-active-icon
84
+ );
85
+ }
86
+ }
87
+
88
+ &--list--item:last-of-type {
89
+ .ilo--table-of-contents--link {
90
+ border-bottom: none;
91
+
92
+ &:hover {
93
+ border-bottom: $color-ux-tableofcontents-items-hover-border
94
+ $spacing-ux-tableofcontents-items-border-bottom solid;
95
+ }
96
+ }
97
+ }
98
+ }
@@ -0,0 +1,194 @@
1
+ @use "../tokens" as *;
2
+ @use "../functions" as *;
3
+ @import "../mixins";
4
+
5
+ /*
6
+ Note that the styles for this component rely on CSS container queries, which currently require a polyfill. Your site template should load the polyfill in the <head> using the method described here: https://github.com/GoogleChromeLabs/container-query-polyfil
7
+ */
8
+
9
+ .ilo--tabs {
10
+ &:not(.tabs--js) {
11
+ .ilo--tabs--selection {
12
+ margin-bottom: px-to-rem(24px);
13
+
14
+ &--button {
15
+ background: map-get($color, "link", "background", "default");
16
+ border-bottom: $widths-border-sm solid
17
+ map-get($color, "link", "underline", "default");
18
+ color: map-get($color, "link", "text", "default");
19
+ font-size: inherit;
20
+ font-weight: inherit;
21
+ line-height: inherit;
22
+ text-decoration: none;
23
+
24
+ &:visited {
25
+ background: map-get($color, "link", "background", "visited");
26
+ border-bottom: $widths-border-sm solid
27
+ map-get($color, "link", "underline", "visited");
28
+ color: map-get($color, "link", "text", "visited");
29
+ }
30
+
31
+ &:hover {
32
+ background: map-get($color, "link", "background", "hover");
33
+ border-bottom: $widths-border-med solid
34
+ map-get($color, "link", "underline", "hover");
35
+ color: map-get($color, "link", "text", "hover");
36
+ text-decoration: none;
37
+ }
38
+
39
+ &:active {
40
+ background: map-get($color, "link", "background", "active");
41
+ border-bottom: $widths-border-med solid
42
+ map-get($color, "link", "underline", "active");
43
+ color: map-get($color, "link", "text", "active");
44
+ outline: none;
45
+ }
46
+
47
+ &:focus {
48
+ background: map-get($color, "link", "background", "focus");
49
+ border-bottom: $widths-border-lg solid
50
+ map-get($color, "link", "underline", "focus");
51
+ color: map-get($color, "link", "text", "focus");
52
+ outline: none;
53
+ }
54
+ }
55
+ }
56
+ }
57
+
58
+ &.tabs--js {
59
+ .ilo--tabs--selection {
60
+ --tabscount: 1;
61
+ display: block;
62
+
63
+ &--button {
64
+ align-items: center;
65
+ background-color: $color-base-neutrals-lighter;
66
+ border-bottom: px-to-rem(3px) solid $color-base-neutrals-white;
67
+ color: $color-ux-labels-actionable;
68
+ font-family: $fonts-display;
69
+ font-weight: 600;
70
+ display: flex;
71
+ height: px-to-rem(60px);
72
+ justify-content: flex-start;
73
+ padding-left: $spacing-padding-1;
74
+ padding-right: $spacing-padding-3;
75
+ text-decoration: none;
76
+ @include font-styles("label-medium");
77
+
78
+ &[aria-selected="true"] {
79
+ background-color: $color-base-neutrals-white;
80
+ border-top: px-to-rem(3px) solid $color-ux-labels-actionable;
81
+ }
82
+
83
+ &.icon {
84
+ .ilo--icon {
85
+ height: px-to-rem($spacing-padding-2);
86
+ margin-right: px-to-rem(5px);
87
+ order: 1;
88
+ width: px-to-rem($spacing-padding-2);
89
+ }
90
+
91
+ .ilo--tabs--selection--label {
92
+ order: 2;
93
+ }
94
+ }
95
+
96
+ &:hover,
97
+ &:focus,
98
+ &[aria-selected="true"]:hover,
99
+ &[aria-selected="true"]:focus {
100
+ background-color: $color-base-blue-light;
101
+ color: $color-base-blue-medium;
102
+ outline: none;
103
+
104
+ &.has--tooltip {
105
+ .ilo--tooltip--wrapper {
106
+ @include dataurlicon("info", $color-base-blue-medium);
107
+ }
108
+ }
109
+ }
110
+ }
111
+
112
+ &--label {
113
+ max-width: 50ch;
114
+ overflow: hidden;
115
+ text-overflow: ellipsis;
116
+ white-space: nowrap;
117
+ }
118
+
119
+ &--item {
120
+ display: block;
121
+ width: 100%;
122
+
123
+ &:last-of-type {
124
+ .ilo--tabs--selection--button {
125
+ border-bottom: none;
126
+ border-right: none;
127
+ }
128
+ }
129
+ }
130
+ }
131
+
132
+ .ilo--tabs--content {
133
+ padding: px-to-rem($spacing-padding-5) px-to-rem($spacing-padding-3)
134
+ px-to-rem($spacing-padding-7) px-to-rem($spacing-padding-3);
135
+
136
+ [aria-expanded="false"] {
137
+ display: none;
138
+ }
139
+
140
+ [aria-expanded="true"] {
141
+ display: block;
142
+ }
143
+ }
144
+
145
+ @include breakpoint("medium") {
146
+ .ilo--tabs--content {
147
+ padding: px-to-rem($spacing-padding-5) px-to-rem($spacing-padding-8)
148
+ px-to-rem($spacing-padding-8) px-to-rem($spacing-padding-8);
149
+ }
150
+
151
+ .ilo--tabs--selection {
152
+ display: flex;
153
+ max-width: 100%;
154
+ overflow-x: scroll;
155
+ overflow-y: hidden;
156
+
157
+ &--button {
158
+ border-bottom: none;
159
+ border-right: px-to-rem(5px) solid $color-base-neutrals-white;
160
+ }
161
+
162
+ &--item {
163
+ width: min(calc(var(--tabscount) / 1 * 100%), 25%);
164
+ }
165
+ }
166
+ }
167
+
168
+ @include breakpoint("large") {
169
+ .ilo--tabs--selection {
170
+ &--item {
171
+ width: min(calc(var(--tabscount) / 1 * 100%), 100%);
172
+ }
173
+ }
174
+ }
175
+ }
176
+
177
+ /* [aria-expanded="true"] {
178
+ display: none;
179
+ }
180
+
181
+ [aria-expanded="false"] {
182
+
183
+ }
184
+
185
+ [aria-expanded="false"] {
186
+ display: none;
187
+ }
188
+
189
+ @container (min-width: 700px) {
190
+ [aria-expanded="true"] {
191
+ display: block;
192
+ }
193
+ } */
194
+ }
@@ -0,0 +1,103 @@
1
+ @use "../tokens" as *;
2
+ @use "../functions" as *;
3
+ @use "../mixins" as *;
4
+
5
+ .ilo--tag-set {
6
+ list-style: none;
7
+
8
+ &__item {
9
+ display: inline-block;
10
+ margin: map-get($spacing, "horizontal-rule");
11
+ }
12
+ }
13
+
14
+ .ilo--tag {
15
+ @include font-styles("nav-md-sm");
16
+
17
+ background: map-get($color, "tag", "background", "default");
18
+ border: none;
19
+ color: map-get($color, "tag", "text", "default");
20
+ display: inline-block;
21
+ font-family: map-get($fonts, "display");
22
+ font-size: inherit;
23
+ font-weight: 500;
24
+ line-height: inherit;
25
+ padding: px-to-rem(10px) px-to-rem(map-get($spacing, "ui-padding-sm"));
26
+ text-decoration: none;
27
+ $self: &;
28
+
29
+ &--active {
30
+ background: map-get($color, "tag", "background", "active");
31
+ color: map-get($color, "tag", "text", "active");
32
+ outline: none;
33
+ }
34
+
35
+ &--anchor {
36
+ cursor: unset;
37
+
38
+ &.ilo--tag--active {
39
+ background: map-get($color, "tag", "background", "active");
40
+ color: map-get($color, "tag", "text", "active");
41
+ cursor: pointer;
42
+ outline: none;
43
+
44
+ &:hover {
45
+ background: map-get($color, "tag", "background", "hover");
46
+ color: map-get($color, "tag", "text", "hover");
47
+ text-decoration: none;
48
+ }
49
+
50
+ &:focus {
51
+ background: map-get($color, "tag", "background", "focus");
52
+ color: map-get($color, "tag", "text", "focus");
53
+ outline: none;
54
+ }
55
+ }
56
+ }
57
+
58
+ &--button {
59
+ @include font-styles("label-small");
60
+
61
+ cursor: pointer;
62
+ display: none;
63
+ opacity: 0;
64
+ padding-right: 36px;
65
+ position: relative;
66
+ visibility: hidden;
67
+
68
+ &.ilo--tag--active {
69
+ background: map-get($color, "tag", "background", "active");
70
+ color: map-get($color, "tag", "text", "active");
71
+ display: block;
72
+ opacity: 1;
73
+ outline: none;
74
+ visibility: visible;
75
+ }
76
+
77
+ &:hover {
78
+ background: map-get($color, "tag", "background", "hover");
79
+ color: map-get($color, "tag", "text", "hover");
80
+ text-decoration: none;
81
+ }
82
+
83
+ &:focus {
84
+ background: map-get($color, "tag", "background", "focus");
85
+ color: map-get($color, "tag", "text", "focus");
86
+ outline: none;
87
+ }
88
+
89
+ &.icon__position--right {
90
+ .ilo--icon {
91
+ @include dataurlicon("close", map-get($color, "tag", "text", "active"));
92
+
93
+ height: 100%;
94
+ max-height: 28px;
95
+ max-width: 28px;
96
+ position: absolute;
97
+ right: 5px;
98
+ top: 6px;
99
+ width: 100%;
100
+ }
101
+ }
102
+ }
103
+ }