@ilo-org/styles 0.1.2 → 0.1.4

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 (38) hide show
  1. package/build/css/components/index.css +687 -235
  2. package/build/css/components/index.css.map +1 -1
  3. package/build/css/index.css +687 -235
  4. package/build/css/index.css.map +1 -1
  5. package/build/css/monorepo.css +687 -235
  6. package/build/css/monorepo.css.map +1 -1
  7. package/build/minified/index.css +1 -1
  8. package/build/minified/index.css.map +1 -1
  9. package/build/minified/monorepo.css +1 -1
  10. package/build/minified/monorepo.css.map +1 -1
  11. package/package.json +3 -3
  12. package/scss/components/_breadcrumb.scss +25 -16
  13. package/scss/components/_card.scss +87 -9
  14. package/scss/components/_checkbox.scss +10 -14
  15. package/scss/components/_contextmenu.scss +3 -2
  16. package/scss/components/_credit.scss +37 -0
  17. package/scss/components/_datepicker.scss +12 -0
  18. package/scss/components/_dropdown.scss +23 -8
  19. package/scss/components/_fieldset.scss +13 -0
  20. package/scss/components/_footer.scss +52 -2
  21. package/scss/components/_form.scss +24 -0
  22. package/scss/components/_formgroup.scss +3 -14
  23. package/scss/components/_hero.scss +27 -0
  24. package/scss/components/_image.scss +14 -0
  25. package/scss/components/_input.scss +1 -13
  26. package/scss/components/_linklist.scss +1 -0
  27. package/scss/components/_modal.scss +9 -1
  28. package/scss/components/_navigation.scss +27 -0
  29. package/scss/components/_profile.scss +15 -28
  30. package/scss/components/_radio.scss +10 -14
  31. package/scss/components/_richtext.scss +54 -0
  32. package/scss/components/_searchfield.scss +13 -2
  33. package/scss/components/_table.scss +17 -4
  34. package/scss/components/_tableofcontents.scss +140 -1
  35. package/scss/components/_tabs.scss +15 -31
  36. package/scss/components/_textarea.scss +4 -27
  37. package/scss/components/_video.scss +42 -5
  38. package/scss/components/index.scss +1 -0
@@ -18,14 +18,14 @@
18
18
  background-size: $spacing-padding-3 $spacing-padding-3;
19
19
  @include bordervalues("inputbutton", "formelements");
20
20
  height: $spacing-padding-6;
21
- width: $spacing-padding-6;
21
+ width: calc($spacing-padding-6 - 2px);
22
22
  text-indent: -9999px;
23
23
  @include dataurlicon(
24
24
  "search",
25
25
  $color-formelements-inputbutton-default-color
26
26
  );
27
27
 
28
- &:hover {
28
+ &:focus {
29
29
  background-color: map-get(
30
30
  $color,
31
31
  "formelements",
@@ -63,4 +63,15 @@
63
63
  pointer-events: none;
64
64
  }
65
65
  }
66
+
67
+ .right-to-left & {
68
+ direction: rtl;
69
+
70
+ .ilo--searchfield--button {
71
+ border-left: $spacing-formelements-inputbutton-default-borderrtl-left
72
+ solid $color-formelements-inputbutton-default-border-left;
73
+ border-right: $spacing-formelements-inputbutton-default-borderrtl-right
74
+ solid $color-formelements-inputbutton-default-border-right;
75
+ }
76
+ }
66
77
  }
@@ -29,8 +29,6 @@
29
29
 
30
30
  &--head {
31
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
32
  box-shadow: 0px 0.8px 1.6px rgba(30, 45, 190, 0.038),
35
33
  0px 4px 8px rgba(30, 45, 190, 0.054),
36
34
  0px 10px 20px rgba(30, 45, 190, 0.08),
@@ -38,13 +36,15 @@
38
36
  left: 0;
39
37
  height: auto;
40
38
  position: sticky;
41
- top: 0;
39
+ top: -1px;
42
40
  width: 100%;
43
41
  z-index: 2;
44
42
 
45
43
  &--cell {
46
44
  background-color: $color-ux-table-content-background;
47
45
  border-left: px-to-rem(1px) solid $color-base-neutrals-lighter;
46
+ border-top: px-to-rem(2px) solid $color-base-neutrals-lighter;
47
+ border-bottom: px-to-rem(2px) solid $color-base-neutrals-lighter;
48
48
  font-family: $fonts-display;
49
49
  font-weight: 700;
50
50
  @include font-styles("body-xs");
@@ -88,8 +88,15 @@
88
88
  }
89
89
 
90
90
  &:hover {
91
- background-color: $color-ux-table-selected-background;
91
+ background-color: $color-base-blue-light;
92
+ border-bottom: px-to-rem(2px) solid $color-base-blue-medium;
93
+ color: $color-base-blue-medium;
92
94
  cursor: pointer;
95
+
96
+ &:after {
97
+ background-color: $color-base-blue-light;
98
+ background-image: url("#{colortodataurlicon("arrow", $color-base-blue-medium)}");
99
+ }
93
100
  }
94
101
 
95
102
  &[aria-sort="descending"] {
@@ -160,10 +167,16 @@
160
167
  }
161
168
 
162
169
  &--headline {
170
+ align-items: center;
171
+ display: flex;
163
172
  font-family: $fonts-display;
164
173
  font-weight: 700;
165
174
  margin-bottom: px-to-rem(7px);
166
175
  @include font-styles("headline-6");
176
+
177
+ .ilo--tooltip--wrapper {
178
+ margin-left: px-to-rem(6px);
179
+ }
167
180
  }
168
181
 
169
182
  &--description {
@@ -1,12 +1,121 @@
1
1
  @use "../tokens" as *;
2
+ @use "../animations" as *;
2
3
  @use "../functions" as *;
3
4
  @import "../mixins";
4
5
 
5
6
  .ilo--table-of-contents {
6
7
  background-color: $color-ux-tableofcontents-items-default-background;
8
+ display: none;
7
9
  min-width: 343px;
8
10
  padding: 0;
9
11
 
12
+ & > * {
13
+ opacity: 0;
14
+ }
15
+
16
+ &.show {
17
+ display: block;
18
+
19
+ &.fadein {
20
+ & > * {
21
+ opacity: 1;
22
+ transition-delay: 125ms;
23
+ @include globaltransition("opacity");
24
+ }
25
+ }
26
+ }
27
+
28
+ &--headline {
29
+ margin-bottom: px-to-rem($spacing-padding-3);
30
+ margin-top: px-to-rem(9px);
31
+ @include font-styles("base");
32
+ font-family: $fonts-display;
33
+ font-weight: 700;
34
+ }
35
+
36
+ &--wrapper {
37
+ &.show {
38
+ display: block;
39
+ height: 100vh;
40
+ left: 0;
41
+ padding: px-to-rem(26px);
42
+ position: fixed;
43
+ top: 0;
44
+ width: 100vw;
45
+ z-index: 10001;
46
+
47
+ @include breakpoint("large") {
48
+ padding: 0;
49
+ }
50
+ }
51
+ }
52
+
53
+ &--trigger {
54
+ align-items: center;
55
+ display: flex;
56
+ justify-content: center;
57
+ margin: px-to-rem($spacing-padding-3) auto;
58
+
59
+ &.hide {
60
+ display: none;
61
+ }
62
+ }
63
+
64
+ @include breakpoint("large") {
65
+ display: block;
66
+
67
+ & > * {
68
+ opacity: 1;
69
+ }
70
+
71
+ &--trigger {
72
+ display: none;
73
+ }
74
+ }
75
+
76
+ &--modal {
77
+ display: none;
78
+ position: relative;
79
+
80
+ & > * {
81
+ opacity: 0;
82
+ }
83
+
84
+ &.show {
85
+ display: block;
86
+
87
+ &.fadein {
88
+ & > * {
89
+ opacity: 1;
90
+ transition-delay: 125ms;
91
+ @include globaltransition("opacity");
92
+ }
93
+ }
94
+ }
95
+
96
+ @include breakpoint("large") {
97
+ display: none;
98
+
99
+ &.show {
100
+ display: none;
101
+ }
102
+ }
103
+
104
+ .toc--modal--close {
105
+ bottom: 0;
106
+ height: px-to-rem(40px);
107
+ right: 0;
108
+ position: absolute;
109
+ width: px-to-rem(40px);
110
+ z-index: 10004;
111
+
112
+ .ilo--icon {
113
+ left: px-to-rem(3px);
114
+ top: px-to-rem(3px);
115
+ }
116
+ }
117
+ }
118
+
10
119
  &--list,
11
120
  &--list--item {
12
121
  width: 100%;
@@ -29,6 +138,7 @@
29
138
  $spacing-ux-tableofcontents-items-padding-right
30
139
  $spacing-ux-tableofcontents-items-padding-bottom
31
140
  $spacing-ux-tableofcontents-items-padding-left;
141
+ position: relative;
32
142
  text-decoration: none;
33
143
  width: calc(
34
144
  100% - $spacing-ux-tableofcontents-padding-right -
@@ -36,6 +146,7 @@
36
146
  );
37
147
  @include dataurlicon("stemarrow", $color-ux-labels-actionable);
38
148
  @include font-styles("label-medium");
149
+ @include globaltransition("background-color, border, color");
39
150
 
40
151
  &:hover,
41
152
  &:focus {
@@ -58,14 +169,17 @@
58
169
  );
59
170
  width: 100%;
60
171
  @include dataurlicon("stemarrow", $color-ux-labels-hover);
172
+ @include globaltransition("background-color, border, color");
61
173
  }
62
174
 
63
175
  &:active {
64
176
  background-color: $color-ux-tableofcontents-items-active-background;
65
177
  border-bottom: $color-ux-tableofcontents-items-active-border
66
178
  $spacing-ux-tableofcontents-items-border-bottom solid;
179
+ border-top: $color-ux-tableofcontents-items-default-border
180
+ $spacing-ux-tableofcontents-items-border-bottom solid;
67
181
  color: $color-ux-tableofcontents-items-active-color;
68
- margin: 0;
182
+ margin: -2px 0 0 0;
69
183
  outline: none;
70
184
  padding: $spacing-ux-tableofcontents-items-padding-top
71
185
  calc(
@@ -82,6 +196,7 @@
82
196
  "stemarrow",
83
197
  $color-ux-tableofcontents-items-active-icon
84
198
  );
199
+ z-index: 5;
85
200
  }
86
201
  }
87
202
 
@@ -95,4 +210,28 @@
95
210
  }
96
211
  }
97
212
  }
213
+
214
+ .right-to-left & {
215
+ direction: rtl;
216
+
217
+ .ilo--table-of-contents--link {
218
+ background-position: 11px center;
219
+
220
+ &:hover,
221
+ &:focus {
222
+ background-position: 19px center;
223
+ }
224
+ }
225
+
226
+ &--wrapper {
227
+ direction: rtl;
228
+ }
229
+
230
+ &--modal {
231
+ .toc--modal--close {
232
+ left: 0;
233
+ right: auto;
234
+ }
235
+ }
236
+ }
98
237
  }
@@ -2,11 +2,11 @@
2
2
  @use "../functions" as *;
3
3
  @import "../mixins";
4
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
5
  .ilo--tabs {
6
+ border-bottom: px-to-rem(4px) solid $color-base-neutrals-lighter;
7
+ border-left: px-to-rem(4px) solid $color-base-neutrals-lighter;
8
+ border-right: px-to-rem(4px) solid $color-base-neutrals-lighter;
9
+
10
10
  &:not(.tabs--js) {
11
11
  .ilo--tabs--selection {
12
12
  margin-bottom: px-to-rem(24px);
@@ -37,18 +37,18 @@ Note that the styles for this component rely on CSS container queries, which cur
37
37
  }
38
38
 
39
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");
40
+ background: map-get($color, "link", "background", "default");
41
+ border-bottom: $widths-border-sm solid
42
+ map-get($color, "link", "underline", "default");
43
+ color: map-get($color, "link", "text", "default");
44
44
  outline: none;
45
45
  }
46
46
 
47
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");
48
+ background: map-get($color, "link", "background", "default");
49
+ border-bottom: $widths-border-sm solid
50
+ map-get($color, "link", "underline", "default");
51
+ color: map-get($color, "link", "text", "default");
52
52
  outline: none;
53
53
  }
54
54
  }
@@ -94,9 +94,7 @@ Note that the styles for this component rely on CSS container queries, which cur
94
94
  }
95
95
 
96
96
  &:hover,
97
- &:focus,
98
- &[aria-selected="true"]:hover,
99
- &[aria-selected="true"]:focus {
97
+ &[aria-selected="true"]:hover {
100
98
  background-color: $color-base-blue-light;
101
99
  color: $color-base-blue-medium;
102
100
  outline: none;
@@ -174,21 +172,7 @@ Note that the styles for this component rely on CSS container queries, which cur
174
172
  }
175
173
  }
176
174
 
177
- /* [aria-expanded="true"] {
178
- display: none;
175
+ .right-to-left & {
176
+ direction: rtl;
179
177
  }
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
178
  }
@@ -30,33 +30,6 @@
30
30
  @include spacingvalues("padding", "input", "formelements");
31
31
  width: map-get($spacing, "formelements", "input", "default", "width");
32
32
 
33
- &::-webkit-resizer {
34
- background-size: cover;
35
- background-repeat: no-repeat;
36
- bottom: 2px;
37
- height: 12px;
38
- right: 0;
39
- pointer-events: none;
40
- position: absolute;
41
- width: 22px;
42
- @include dataurlicon(
43
- "scalenerighttriangle",
44
- $color-formelements-input-default-border-bottom
45
- );
46
- }
47
-
48
- &:hover {
49
- background-color: map-get(
50
- $color,
51
- "formelements",
52
- "input",
53
- "hover",
54
- "background"
55
- );
56
- @include bordervalues("input", "formelements", "hover");
57
- padding-left: calc($spacing-formelements-input-default-padding-left - 1px);
58
- }
59
-
60
33
  &:focus {
61
34
  background-color: map-get(
62
35
  $color,
@@ -86,4 +59,8 @@
86
59
  );
87
60
  @include bordervalues("input", "formelements", "error");
88
61
  }
62
+
63
+ .right-to-left & {
64
+ direction: rtl;
65
+ }
89
66
  }
@@ -148,19 +148,44 @@
148
148
  .vjs-big-play-button {
149
149
  @include iconbutton(
150
150
  "play",
151
- $spacing-ux-video-buttonicon-height,
152
- $spacing-ux-video-buttonicon-width,
151
+ $spacing-ux-video-bigplaybutton-height,
152
+ $spacing-ux-video-bigplaybutton-width,
153
153
  $color-ux-video-controls-default-icon
154
154
  );
155
155
 
156
156
  &:hover {
157
157
  background-color: $color-ux-video-controls-hover-background;
158
+ @include iconbutton(
159
+ "play",
160
+ $spacing-ux-video-bigplaybutton-height,
161
+ $spacing-ux-video-bigplaybutton-width,
162
+ $color-ux-video-controls-hover-icon
163
+ );
164
+
165
+ & ~ .vjs-duration,
166
+ & ~ .ilo--video--controls--duration {
167
+ background-color: $color-ux-video-controls-hover-background;
168
+ color: $color-ux-video-controls-hover-icon;
169
+ }
170
+ }
171
+
172
+ &.vjs-paused {
158
173
  @include iconbutton(
159
174
  "play",
160
175
  $spacing-ux-video-buttonicon-height,
161
176
  $spacing-ux-video-buttonicon-width,
162
- $color-ux-video-controls-hover-icon
177
+ $color-ux-video-controls-default-icon
163
178
  );
179
+
180
+ &:hover {
181
+ background-color: $color-ux-video-controls-hover-background;
182
+ @include iconbutton(
183
+ "play",
184
+ $spacing-ux-video-buttonicon-height,
185
+ $spacing-ux-video-buttonicon-width,
186
+ $color-ux-video-controls-hover-icon
187
+ );
188
+ }
164
189
  }
165
190
  }
166
191
 
@@ -187,6 +212,7 @@
187
212
  &--duration,
188
213
  .vjs-duration {
189
214
  background-color: $color-ux-video-controls-default-background;
215
+ color: $color-ux-video-controls-default-icon;
190
216
  display: none;
191
217
  height: 100%;
192
218
  font-weight: 700;
@@ -196,6 +222,11 @@
196
222
  text-align: center;
197
223
  width: px-to-rem(80px);
198
224
 
225
+ &:hover {
226
+ background-color: $color-ux-video-controls-hover-background;
227
+ color: $color-ux-video-controls-hover-icon;
228
+ }
229
+
199
230
  @include font-styles("label-small");
200
231
 
201
232
  &.show {
@@ -407,6 +438,12 @@
407
438
  .vjs-has-started & {
408
439
  display: block;
409
440
  }
441
+
442
+ &:hover {
443
+ .vjs-volume-control {
444
+ display: block;
445
+ }
446
+ }
410
447
  }
411
448
 
412
449
  &--showvolume,
@@ -520,7 +557,7 @@
520
557
  .vjs-volume-bar {
521
558
  height: 4px;
522
559
  position: relative;
523
- width: calc(100% - 24px);
560
+ width: calc(100% - 26px);
524
561
  }
525
562
 
526
563
  .vjs-mouse-display,
@@ -547,7 +584,7 @@
547
584
  margin: 0;
548
585
  padding: 0;
549
586
  position: absolute;
550
- right: -8px;
587
+ right: -16px;
551
588
  top: 50%;
552
589
  width: 16px;
553
590
  -webkit-transform: translate(-50%, -50%);
@@ -12,6 +12,7 @@
12
12
  @use "empty";
13
13
  @use "fieldset";
14
14
  @use "file-upload";
15
+ @use "form";
15
16
  @use "formgroup";
16
17
  @use "footer";
17
18
  @use "heading";