@ilo-org/styles 1.10.0 → 1.10.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 (77) hide show
  1. package/css/components/accordion.css +1 -1
  2. package/css/components/audioplayer.css +1 -0
  3. package/css/components/blockquote.css +1 -1
  4. package/css/components/breadcrumb.css +1 -1
  5. package/css/components/button.css +1 -1
  6. package/css/components/callout.css +1 -1
  7. package/css/components/card.css +1 -1
  8. package/css/components/cardgroup.css +1 -1
  9. package/css/components/checkbox.css +1 -1
  10. package/css/components/container.css +1 -1
  11. package/css/components/contextmenu.css +1 -1
  12. package/css/components/datacard.css +1 -1
  13. package/css/components/datepicker.css +1 -1
  14. package/css/components/detailcard.css +1 -1
  15. package/css/components/dropdown.css +1 -1
  16. package/css/components/empty.css +1 -1
  17. package/css/components/factlistcard.css +1 -1
  18. package/css/components/featurecard.css +1 -1
  19. package/css/components/fieldset.css +1 -1
  20. package/css/components/file-upload.css +1 -1
  21. package/css/components/footer.css +1 -1
  22. package/css/components/form.css +1 -1
  23. package/css/components/formcontrol.css +1 -1
  24. package/css/components/hero.css +1 -1
  25. package/css/components/herocard.css +1 -1
  26. package/css/components/image.css +1 -1
  27. package/css/components/input.css +1 -1
  28. package/css/components/languagetoggle.css +1 -1
  29. package/css/components/link.css +1 -1
  30. package/css/components/linklist.css +1 -1
  31. package/css/components/list.css +1 -1
  32. package/css/components/loading.css +1 -1
  33. package/css/components/logogrid.css +1 -1
  34. package/css/components/modal.css +1 -1
  35. package/css/components/multilinkcard.css +1 -1
  36. package/css/components/navigation.css +1 -1
  37. package/css/components/notification.css +1 -1
  38. package/css/components/pagination.css +1 -1
  39. package/css/components/profile.css +1 -1
  40. package/css/components/promocard.css +1 -1
  41. package/css/components/radio.css +1 -1
  42. package/css/components/readmore.css +1 -1
  43. package/css/components/richtext.css +1 -1
  44. package/css/components/scorecard.css +1 -1
  45. package/css/components/searchfield.css +1 -1
  46. package/css/components/socialmedia.css +1 -1
  47. package/css/components/statcard.css +1 -1
  48. package/css/components/status.css +1 -1
  49. package/css/components/table.css +1 -1
  50. package/css/components/tableofcontents.css +1 -1
  51. package/css/components/tabs.css +1 -1
  52. package/css/components/tag.css +1 -1
  53. package/css/components/textarea.css +1 -1
  54. package/css/components/textcard.css +1 -1
  55. package/css/components/textinput.css +1 -1
  56. package/css/components/toggle.css +1 -1
  57. package/css/components/tooltip.css +1 -1
  58. package/css/components/video.css +1 -1
  59. package/css/global.css +1 -1
  60. package/css/global.css.map +1 -1
  61. package/css/index.css +3 -3
  62. package/css/index.css.map +1 -1
  63. package/css/monorepo.css +3 -3
  64. package/css/monorepo.css.map +1 -1
  65. package/package.json +2 -2
  66. package/scss/_animations.scss +22 -0
  67. package/scss/components/_audioplayer.scss +206 -0
  68. package/scss/components/_video.scss +7 -1
  69. package/scss/components/index.scss +2 -0
  70. package/scss/components/photogallery/_expandable-caption.scss +92 -0
  71. package/scss/components/photogallery/_lightbox.scss +70 -0
  72. package/scss/components/photogallery/_lightboxgallery.scss +254 -0
  73. package/scss/components/photogallery/_photogallery-controls.scss +125 -0
  74. package/scss/components/photogallery/_photogallery-thumbnails.scss +100 -0
  75. package/scss/components/photogallery/_photogallery.scss +179 -0
  76. package/scss/components/photogallery/index.scss +6 -0
  77. package/scss/theme/_foundation.scss +10 -4
@@ -0,0 +1,125 @@
1
+ @use "../../tokens" as *;
2
+ @use "../../functions" as *;
3
+ @import "../../mixins";
4
+ @import "../../config";
5
+
6
+ .ilo--photo-gallery-controls {
7
+ display: flex;
8
+ justify-content: space-between;
9
+ align-items: center;
10
+ gap: spacing(4);
11
+
12
+ &__page {
13
+ display: flex;
14
+ gap: spacing(1);
15
+ @include typography("highlight-small");
16
+ font-family: var(--ilo-fonts-copy);
17
+ color: var(--ilo-color-white);
18
+
19
+ [dir="rtl"] & {
20
+ flex-direction: row-reverse;
21
+ }
22
+ }
23
+
24
+ &__previous-set,
25
+ &__next-set {
26
+ display: flex;
27
+ gap: spacing(2);
28
+ }
29
+
30
+ &__item {
31
+ background: var(--ilo-color-gray-light);
32
+ border: none;
33
+ border-radius: 2px;
34
+ color: var(--ilo-color-blue-dark);
35
+ height: px-to-rem(40px);
36
+ width: px-to-rem(40px);
37
+ position: relative;
38
+ text-indent: -999%;
39
+ cursor: pointer;
40
+
41
+ &::before {
42
+ content: "";
43
+ position: absolute;
44
+ top: 50%;
45
+ left: 50%;
46
+ transform: translate(-50%, -50%);
47
+ height: px-to-rem(20px);
48
+ width: px-to-rem(20px);
49
+ background-repeat: no-repeat;
50
+ }
51
+
52
+ &:hover {
53
+ background: var(--ilo-color-blue-lighter);
54
+ color: var(--ilo-color-blue);
55
+ }
56
+ }
57
+
58
+ &__first {
59
+ &::before {
60
+ transform: translate(-50%, -50%) rotate(180deg);
61
+ @include icon("double_chevron_right", var(--ilo-color-blue-dark));
62
+ }
63
+
64
+ &:hover::before {
65
+ @include icon("double_chevron_right", var(--ilo-color-blue));
66
+ }
67
+
68
+ [dir="rtl"] & {
69
+ &::before {
70
+ transform: translate(-50%, -50%);
71
+ }
72
+ }
73
+ }
74
+
75
+ &__prev {
76
+ &::before {
77
+ @include icon("chevron_right", var(--ilo-color-blue-dark));
78
+ transform: translate(-50%, -50%) rotate(180deg);
79
+ }
80
+
81
+ &:hover::before {
82
+ @include icon("chevron_right", var(--ilo-color-blue));
83
+ }
84
+
85
+ [dir="rtl"] & {
86
+ &::before {
87
+ transform: translate(-50%, -50%);
88
+ }
89
+ }
90
+ }
91
+
92
+ &__next {
93
+ &::before {
94
+ @include icon("chevron_right", var(--ilo-color-blue-dark));
95
+ transform: translate(-50%, -50%);
96
+ }
97
+
98
+ &:hover::before {
99
+ @include icon("chevron_right", var(--ilo-color-blue));
100
+ }
101
+
102
+ [dir="rtl"] & {
103
+ &::before {
104
+ transform: translate(-50%, -50%) rotate(180deg);
105
+ }
106
+ }
107
+ }
108
+
109
+ &__last {
110
+ &::before {
111
+ @include icon("double_chevron_right", var(--ilo-color-blue-dark));
112
+ transform: translate(-50%, -50%);
113
+ }
114
+
115
+ &:hover::before {
116
+ @include icon("double_chevron_right", var(--ilo-color-blue));
117
+ }
118
+
119
+ [dir="rtl"] & {
120
+ &::before {
121
+ transform: translate(-50%, -50%) rotate(180deg);
122
+ }
123
+ }
124
+ }
125
+ }
@@ -0,0 +1,100 @@
1
+ @use "../../tokens" as *;
2
+ @use "../../functions" as *;
3
+ @import "../../mixins";
4
+ @import "../../config";
5
+
6
+ .ilo--photo-gallery-thumbnails {
7
+ --ilo-photo_gallery-thumbnails-width: 90px;
8
+
9
+ @include breakpoint("md") {
10
+ --ilo-photo_gallery-thumbnails-width: 142px;
11
+ }
12
+
13
+ width: 100%;
14
+ display: flex;
15
+ justify-content: space-between;
16
+ gap: spacing(2);
17
+ overflow: hidden;
18
+ flex-wrap: nowrap;
19
+
20
+ &__carousel {
21
+ overflow: hidden;
22
+ }
23
+
24
+ &__container {
25
+ display: flex;
26
+ gap: spacing(2);
27
+ }
28
+
29
+ &__slide {
30
+ display: flex;
31
+ }
32
+
33
+ &__thumbnail {
34
+ width: var(--ilo-photo_gallery-thumbnails-width);
35
+ position: relative;
36
+ border: none;
37
+ cursor: pointer;
38
+ background-color: var(--ilo-color-gray-light);
39
+ display: flex;
40
+ justify-content: center;
41
+ align-items: center;
42
+
43
+ &--selected,
44
+ &:hover {
45
+ z-index: 2;
46
+
47
+ &::after {
48
+ content: "";
49
+ position: absolute;
50
+ inset: 0;
51
+ background: linear-gradient(
52
+ 0deg,
53
+ rgba(30, 45, 190, 0.4) 0%,
54
+ rgba(30, 45, 190, 0.4) 100%
55
+ );
56
+ pointer-events: none;
57
+ border-bottom: px-to-rem(4) solid var(--ilo-color-blue);
58
+ }
59
+ }
60
+ }
61
+
62
+ img {
63
+ width: var(--ilo-photo_gallery-thumbnails-width);
64
+ aspect-ratio: 16 / 9;
65
+ object-fit: contain;
66
+ }
67
+
68
+ &__see-all {
69
+ flex-shrink: 0;
70
+ width: var(--ilo-photo_gallery-thumbnails-width);
71
+ aspect-ratio: 16 / 9;
72
+ background-color: var(--ilo-color-blue-dark);
73
+ border: none;
74
+ outline: none;
75
+ display: flex;
76
+ justify-content: center;
77
+ align-items: center;
78
+ cursor: pointer;
79
+
80
+ &-label {
81
+ @include typography("highlight-small-bold");
82
+ color: var(--ilo-color-blue-dark);
83
+ text-align: center;
84
+ background-color: var(--ilo-color-gray-light);
85
+ padding: spacing(2) spacing(4) spacing(1) spacing(4);
86
+ border-radius: var(--ilo-border-radius);
87
+ }
88
+
89
+ &:hover,
90
+ &:focus {
91
+ background-color: var(--ilo-color-blue-ramp);
92
+ }
93
+
94
+ &:hover &-label,
95
+ &:focus &-label {
96
+ background-color: var(--ilo-color-blue-lighter);
97
+ color: var(--ilo-color-blue);
98
+ }
99
+ }
100
+ }
@@ -0,0 +1,179 @@
1
+ @use "../../tokens" as *;
2
+ @use "../../functions" as *;
3
+ @import "../../mixins";
4
+ @import "../../config";
5
+
6
+ .ilo--photo-gallery {
7
+ --ilo-photo_gallery-target-height: 210px;
8
+ background-color: var(--ilo-color-white);
9
+ display: flex;
10
+ flex-direction: column;
11
+ gap: spacing(4);
12
+
13
+ @include breakpoint("md") {
14
+ --ilo-photo_gallery-target-height: 420px;
15
+ }
16
+
17
+ &__core {
18
+ margin: auto;
19
+ position: relative;
20
+
21
+ &__viewport {
22
+ overflow: hidden;
23
+ width: 100%;
24
+ }
25
+
26
+ &__container {
27
+ display: flex;
28
+ touch-action: pan-y pinch-zoom;
29
+ margin-left: calc(spacing(5) * -1);
30
+ }
31
+
32
+ &__slide {
33
+ transform: translate3d(0, 0, 0);
34
+ flex: 0 0 100%;
35
+ min-width: 0;
36
+ padding-left: spacing(5);
37
+ }
38
+
39
+ &__image {
40
+ .ilo--image--wrapper {
41
+ position: relative;
42
+
43
+ &::after {
44
+ content: "";
45
+ position: absolute;
46
+ bottom: 0;
47
+ left: 0;
48
+ right: 0;
49
+ height: 35%;
50
+ background: linear-gradient(
51
+ 0deg,
52
+ rgba(45, 45, 45, 0.6) 0%,
53
+ rgba(45, 45, 45, 0) 24.88%
54
+ )
55
+ transparent;
56
+ pointer-events: none;
57
+ z-index: 1;
58
+ }
59
+ }
60
+
61
+ .ilo--image--credit {
62
+ z-index: 2;
63
+ }
64
+
65
+ img {
66
+ width: 100%;
67
+ object-fit: contain;
68
+ height: inherit;
69
+ background-color: var(--ilo-color-gray-light);
70
+ height: var(--ilo-photo_gallery-target-height);
71
+ position: relative;
72
+ }
73
+
74
+ &--contain {
75
+ img {
76
+ object-fit: contain;
77
+ }
78
+ }
79
+
80
+ &--cover {
81
+ img {
82
+ object-fit: cover;
83
+ }
84
+ }
85
+
86
+ &--fill {
87
+ img {
88
+ object-fit: fill;
89
+ }
90
+ }
91
+ }
92
+
93
+ &__controls {
94
+ display: none;
95
+ position: absolute;
96
+ z-index: 2;
97
+ right: spacing(4);
98
+ bottom: px-to-rem(10px);
99
+ visibility: hidden;
100
+ opacity: 0;
101
+ transition:
102
+ opacity 0.2s ease-in-out,
103
+ visibility 0.2s ease-in-out;
104
+
105
+ [dir="rtl"] & {
106
+ right: auto;
107
+ left: spacing(4);
108
+ }
109
+
110
+ @include breakpoint("md") {
111
+ display: flex;
112
+ }
113
+ }
114
+
115
+ &:hover &__controls {
116
+ visibility: visible;
117
+ opacity: 1;
118
+ }
119
+
120
+ &__zoom {
121
+ position: absolute;
122
+ top: 0;
123
+ right: 0;
124
+ z-index: 2;
125
+ background: var(--ilo-color-gray-light);
126
+ border: none;
127
+ width: px-to-rem(40px);
128
+ height: px-to-rem(40px);
129
+ display: flex;
130
+ align-items: center;
131
+ justify-content: center;
132
+ color: var(--ilo-color-blue-dark);
133
+ cursor: pointer;
134
+ border-radius: var(--ilo-border-radius);
135
+
136
+ &:hover {
137
+ background: var(--ilo-color-blue-lighter);
138
+ color: var(--ilo-color-blue);
139
+ }
140
+
141
+ &:focus {
142
+ outline: 2px solid var(--ilo-color-blue);
143
+ outline-offset: 2px;
144
+ }
145
+ }
146
+ }
147
+
148
+ &__caption {
149
+ @include typography("body-small");
150
+ color: var(--ilo-color-gray-accessible);
151
+ padding-left: spacing(4);
152
+ position: relative;
153
+ overflow: hidden;
154
+ text-overflow: ellipsis;
155
+ white-space: nowrap;
156
+
157
+ [dir="rtl"] & {
158
+ padding-left: 0;
159
+ padding-right: spacing(4);
160
+ text-align: right;
161
+ }
162
+
163
+ &::before {
164
+ content: "";
165
+ position: absolute;
166
+ left: 0;
167
+ top: 50%;
168
+ transform: translateY(-50%);
169
+ width: px-to-rem(3px);
170
+ height: 100%;
171
+ background-color: var(--ilo-color-gray-base);
172
+
173
+ [dir="rtl"] & {
174
+ left: auto;
175
+ right: 0;
176
+ }
177
+ }
178
+ }
179
+ }
@@ -0,0 +1,6 @@
1
+ @use "photogallery";
2
+ @use "photogallery-controls";
3
+ @use "photogallery-thumbnails";
4
+ @use "lightbox";
5
+ @use "lightboxgallery";
6
+ @use "expandable-caption";
@@ -34,6 +34,12 @@
34
34
  --ilo-color-turquoise: rgba(5, 210, 210, 1);
35
35
  --ilo-color-purple: rgba(150, 10, 85, 1);
36
36
 
37
+ /* New colors */
38
+ --ilo-color-brand-800: rgba(35, 0, 80, 1);
39
+ --ilo-color-brand-600: rgba(30, 45, 190, 1);
40
+ --ilo-color-brand-100: rgba(235, 245, 253, 1);
41
+ --ilo-color-yellow-500: rgba(250, 180, 40, 1);
42
+
37
43
  --ilo-color-notification-type-error: var(--ilo-color-red);
38
44
  --ilo-color-notification-type-info: var(--ilo-color-blue);
39
45
  --ilo-color-notification-type-success: var(--ilo-color-green);
@@ -95,10 +101,10 @@
95
101
  /**
96
102
  * Letter spacing
97
103
  */
98
- --ilo-letter-spacing-xsm: -3.5%;
99
- --ilo-letter-spacing-sm: -2%;
100
- --ilo-letter-spacing-md: 0;
101
- --ilo-letter-spacing-lg: 2%;
104
+ --ilo-letter-spacing-xsm: -0.035em;
105
+ --ilo-letter-spacing-sm: -0.02em;
106
+ --ilo-letter-spacing-md: 0em;
107
+ --ilo-letter-spacing-lg: 0.02em;
102
108
 
103
109
  /**
104
110
  * Spacing