@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
@@ -36,7 +36,7 @@
36
36
  }
37
37
 
38
38
  &.endsection {
39
- border-bottom: px-to-rem($borders-base) solid $color-base-neutrals-white;
39
+ border-bottom: px-to-rem(3px) solid $color-base-neutrals-white;
40
40
 
41
41
  .ilo--context-menu--link {
42
42
  border-bottom: none;
@@ -50,10 +50,11 @@
50
50
  display: inline-block;
51
51
  font-family: $fonts-copy;
52
52
  font-weight: map-get($type, "weights", "section");
53
- padding: px-to-rem($spacing-padding-2) 0;
53
+ padding: px-to-rem($spacing-padding-2) px-to-rem($spacing-padding-1);
54
54
  text-decoration: none;
55
55
  width: 100%;
56
56
  @include font-styles("body-xxs");
57
+ letter-spacing: -0.1px;
57
58
 
58
59
  &:visited {
59
60
  color: map-get($color, "link", "text", "default");
@@ -79,4 +79,41 @@
79
79
  }
80
80
  }
81
81
  }
82
+
83
+ .right-to-left & {
84
+ &:after {
85
+ background-position: top left;
86
+ left: auto;
87
+ right: 100%;
88
+ transform: scaleX(-1);
89
+ }
90
+
91
+ @include breakpoint("large", true) {
92
+ &--label {
93
+ left: auto;
94
+ right: 0;
95
+
96
+ &:after {
97
+ background-position: top right;
98
+ @include dataurlicon(
99
+ "equilateraltriangle",
100
+ $color-base-neutrals-dark
101
+ );
102
+ left: auto;
103
+ right: calc(#{px-to-rem(map-get($spacing, "padding-1-5"))} / 2);
104
+ }
105
+ }
106
+
107
+ &:before {
108
+ background-position: 4px center;
109
+ left: auto;
110
+ right: 0;
111
+ }
112
+
113
+ &:after {
114
+ left: auto;
115
+ right: px-to-rem(29px);
116
+ }
117
+ }
118
+ }
82
119
  }
@@ -16,4 +16,16 @@
16
16
  }
17
17
  }
18
18
  }
19
+
20
+ .right-to-left & {
21
+ direction: rtl;
22
+ }
23
+ }
24
+
25
+ .right-to-left
26
+ .ilo--datepicker--range
27
+ > .ilo--fieldset:nth-of-type(1)
28
+ .ilo--input {
29
+ border-left: none;
30
+ border-right: 0.1071811361rem solid rgb(184, 196, 204);
19
31
  }
@@ -16,12 +16,10 @@
16
16
  @include bordervalues("input", "formelements");
17
17
  border-radius: 0;
18
18
  box-sizing: content-box;
19
- font-family: $fonts-display;
19
+ font-family: $fonts-copy;
20
20
  font-weight: map-get($type, "weights", "section");
21
21
  @include font-styles("label-medium");
22
- height: px-to-rem(
23
- map-get($spacing, "formelements", "input", "default", "height")
24
- );
22
+ height: px-to-rem(45px);
25
23
  @include spacingvalues("margin", "input", "formelements");
26
24
  outline: none;
27
25
  overflow: hidden;
@@ -33,9 +31,9 @@
33
31
  white-space: nowrap;
34
32
  width: calc(100% - 78px);
35
33
 
36
- background-position: calc(100% - 14px) center;
34
+ background-position: calc(100% - 14px) center, 100% center;
37
35
  background-repeat: no-repeat;
38
- background-size: 24px 24px, 72px 100%;
36
+ background-size: 24px 24px, 102px 100%;
39
37
  background-image: url("#{colortodataurlicon("arrow", $color-ux-labels-actionable)}"),
40
38
  linear-gradient(
41
39
  to right,
@@ -43,8 +41,8 @@
43
41
  transparent calc(50% - 0.81px),
44
42
  $color-formelements-input-default-border-left calc(50% - 0.8px),
45
43
  $color-formelements-input-default-border-left calc(50% + 0.8px),
46
- transparent calc(50% + 0.81px),
47
- transparent 100%
44
+ rgba(237, 240, 242, 1) calc(50% + 0.81px),
45
+ rgba(237, 240, 242, 1) 100%
48
46
  );
49
47
 
50
48
  option {
@@ -95,6 +93,23 @@
95
93
  );
96
94
  }
97
95
 
96
+ &:active {
97
+ background-position: calc(100% - 14px) center, 100% center;
98
+ background-repeat: no-repeat;
99
+ background-size: 24px 24px, 102px 100%;
100
+ background-image: url("#{colortodataurlicon("arrow", $color-ux-labels-actionable)}"),
101
+ linear-gradient(
102
+ to right,
103
+ transparent 0%,
104
+ transparent calc(50% - 0.81px),
105
+ $color-formelements-input-default-border-left calc(50% - 0.8px),
106
+ $color-formelements-input-default-border-left calc(50% + 0.8px),
107
+ rgba(237, 240, 242, 1) calc(50% + 0.81px),
108
+ rgba(237, 240, 242, 1) 100%
109
+ );
110
+ @include bordervalues("input", "formelements");
111
+ }
112
+
98
113
  &:disabled {
99
114
  opacity: 45%;
100
115
  pointer-events: none;
@@ -18,6 +18,7 @@
18
18
  }
19
19
 
20
20
  &--helper {
21
+ color: $color-base-neutrals-medium;
21
22
  font-family: $fonts-copy;
22
23
  @include font-styles("body-xxs");
23
24
  @include textmargin(
@@ -71,4 +72,16 @@
71
72
  margin-left: 8px;
72
73
  margin-top: 3px;
73
74
  }
75
+
76
+ .right-to-left & {
77
+ direction: rtl;
78
+
79
+ .ilo--fieldset--label {
80
+ float: right;
81
+ }
82
+
83
+ &.ilo--choice-group .ilo--fieldset--legend {
84
+ float: right;
85
+ }
86
+ }
74
87
  }
@@ -34,7 +34,9 @@
34
34
  }
35
35
 
36
36
  &--logo {
37
+ min-width: 200px;
37
38
  max-width: 100%;
39
+ width: 35%;
38
40
  }
39
41
 
40
42
  &--secondary {
@@ -294,7 +296,7 @@
294
296
  }
295
297
 
296
298
  &--logo {
297
- width: 100%;
299
+ width: 25%;
298
300
  }
299
301
 
300
302
  &--secondary {
@@ -341,7 +343,8 @@
341
343
  }
342
344
 
343
345
  &--logo {
344
- width: 100%;
346
+ min-width: 133px;
347
+ width: 48%;
345
348
  }
346
349
 
347
350
  .connect {
@@ -388,10 +391,37 @@
388
391
  flex-direction: row-reverse;
389
392
  }
390
393
 
394
+ .social--links--item:first-of-type {
395
+ margin-right: 0;
396
+ }
397
+
391
398
  .social--links--link {
392
399
  text-indent: 999em;
393
400
  }
394
401
 
402
+ .legal,
403
+ .secondarylinks {
404
+ display: block;
405
+ }
406
+
407
+ .secondarylinks {
408
+ &--list {
409
+ display: flex;
410
+ flex-direction: row-reverse;
411
+ }
412
+ }
413
+
414
+ .secondarylinks--list--item:not(first-child) {
415
+ &:before {
416
+ content: none;
417
+ }
418
+
419
+ &:after {
420
+ content: " | ";
421
+ padding-right: px-to-rem(2px);
422
+ }
423
+ }
424
+
395
425
  &--main {
396
426
  &:after {
397
427
  bottom: 0;
@@ -409,6 +439,26 @@
409
439
  "links site-info"
410
440
  "connect site-info";
411
441
  }
442
+
443
+ .legal,
444
+ .secondarylinks {
445
+ float: right;
446
+ }
447
+
448
+ .secondarylinks {
449
+ margin-left: px-to-rem(126px);
450
+ margin-right: px-to-rem(4px);
451
+
452
+ &--list {
453
+ display: flex;
454
+ flex-direction: row-reverse;
455
+ }
456
+ }
457
+
458
+ .anchorlink {
459
+ left: 16px;
460
+ right: auto;
461
+ }
412
462
  }
413
463
 
414
464
  @include breakpoint("large") {
@@ -0,0 +1,24 @@
1
+ @use "../tokens" as *;
2
+ @use "../functions" as *;
3
+ @import "../mixins";
4
+
5
+ .ilo--formgroup {
6
+ &--legend {
7
+ display: block;
8
+ font-family: $fonts-display;
9
+ font-weight: map-get($type, "weights", "label");
10
+ @include font-styles("legend");
11
+ @include textmargin(
12
+ "margin-bottom",
13
+ map-get($spacing, "padding-5"),
14
+ "legend",
15
+ "display",
16
+ "label-small",
17
+ "display"
18
+ );
19
+ }
20
+
21
+ .right-to-left & {
22
+ direction: rtl;
23
+ }
24
+ }
@@ -2,19 +2,8 @@
2
2
  @use "../functions" as *;
3
3
  @import "../mixins";
4
4
 
5
- .ilo--formgroup {
6
- &--legend {
7
- display: block;
8
- font-family: $fonts-display;
9
- font-weight: map-get($type, "weights", "label");
10
- @include font-styles("legend");
11
- @include textmargin(
12
- "margin-bottom",
13
- map-get($spacing, "padding-5"),
14
- "legend",
15
- "display",
16
- "label-small",
17
- "display"
18
- );
5
+ .ilo--form {
6
+ .right-to-left & {
7
+ direction: rtl;
19
8
  }
20
9
  }
@@ -4,8 +4,28 @@
4
4
 
5
5
  .ilo--hero {
6
6
  background: map-get($color, "ux", "pagination", "default", "background");
7
+ display: block;
8
+ width: 100%;
7
9
 
8
10
  &--home {
11
+ .ilo--image {
12
+ &::before {
13
+ background: linear-gradient(
14
+ 360deg,
15
+ rgba($brand-ilo-black, 0.3) 0%,
16
+ rgba($brand-ilo-black, 0) 24.88%
17
+ ),
18
+ transparent;
19
+ content: "";
20
+ height: 100%;
21
+ left: 0;
22
+ position: absolute;
23
+ top: 0;
24
+ width: 100%;
25
+ z-index: 2;
26
+ }
27
+ }
28
+
9
29
  @include breakpoint("large") {
10
30
  position: relative;
11
31
  }
@@ -15,6 +35,9 @@
15
35
  position: relative;
16
36
 
17
37
  @include breakpoint("large") {
38
+ margin-bottom: 80px;
39
+ padding-top: 170px;
40
+
18
41
  .ilo--image {
19
42
  height: calc(100% - 80px);
20
43
  left: 0;
@@ -39,6 +62,10 @@
39
62
  width: 100%;
40
63
  }
41
64
  }
65
+
66
+ .ilo--hero-card {
67
+ top: 80px;
68
+ }
42
69
  }
43
70
  }
44
71
 
@@ -39,4 +39,18 @@
39
39
  bottom: -#{px-to-rem(map-get($spacing, "padding-0-5"))};
40
40
  }
41
41
  }
42
+
43
+ .right-to-left & {
44
+ .ilo--image--caption {
45
+ border-left: none;
46
+ border-right: 3px solid #b8c4cc;
47
+ padding-left: 0;
48
+ padding-right: px-to-rem(map-get($spacing, "padding-1"));
49
+ }
50
+
51
+ .ilo--credit {
52
+ left: auto;
53
+ right: 0;
54
+ }
55
+ }
42
56
  }
@@ -15,7 +15,7 @@
15
15
  );
16
16
  @include bordervalues("input", "formelements");
17
17
  box-sizing: border-box;
18
- font-family: $fonts-display;
18
+ font-family: $fonts-copy;
19
19
  font-weight: map-get($type, "weights", "section");
20
20
  @include font-styles("label-medium");
21
21
  height: px-to-rem(
@@ -26,18 +26,6 @@
26
26
  @include spacingvalues("padding", "input", "formelements");
27
27
  width: map-get($spacing, "formelements", "input", "default", "width");
28
28
 
29
- &:hover {
30
- background-color: map-get(
31
- $color,
32
- "formelements",
33
- "input",
34
- "hover",
35
- "background"
36
- );
37
- @include bordervalues("input", "formelements", "hover");
38
- padding-left: calc($spacing-formelements-input-default-padding-left - 1px);
39
- }
40
-
41
29
  &:focus {
42
30
  background-color: map-get(
43
31
  $color,
@@ -78,6 +78,7 @@
78
78
  @include font-styles("body-small");
79
79
  @include textmargin("padding-bottom", 25px, "body-small", "display", 0, 0);
80
80
  @include textmargin("padding-top", 25px, "body-small", "display", 0, 0);
81
+ padding-right: px-to-rem($spacing-padding-4);
81
82
  text-decoration: none;
82
83
  @include dataurlicon("arrowright", $color-link-text-default);
83
84
 
@@ -27,7 +27,8 @@
27
27
  .ilo--modal--wrapper {
28
28
  & > * {
29
29
  opacity: 1;
30
- transition: opacity 1.5s ease-out 125ms;
30
+ transition-delay: 125ms;
31
+ @include globaltransition("opacity");
31
32
  }
32
33
  }
33
34
  }
@@ -57,10 +58,17 @@
57
58
  }
58
59
 
59
60
  .modal--close {
61
+ height: px-to-rem(40px);
60
62
  right: 0;
61
63
  position: absolute;
62
64
  top: 0;
65
+ width: px-to-rem(40px);
63
66
  z-index: 10004;
67
+
68
+ .ilo--icon {
69
+ left: px-to-rem(3px);
70
+ top: px-to-rem(3px);
71
+ }
64
72
  }
65
73
 
66
74
  @include breakpoint("medium") {
@@ -22,16 +22,19 @@
22
22
 
23
23
  &--menu {
24
24
  @include dataurlicon("burger", $brand-ilo-white);
25
+ align-self: center;
25
26
  background-color: transparent;
26
27
  background-position: center;
27
28
  background-repeat: no-repeat;
28
29
  background-size: 32px;
29
30
  border: none;
30
31
  cursor: pointer;
32
+ height: 32px;
31
33
  overflow: hidden;
32
34
  position: relative;
33
35
  text-indent: -999%;
34
36
  transition: all 150ms ease-out;
37
+ width: 32px;
35
38
 
36
39
  &:hover,
37
40
  &:focus {
@@ -87,6 +90,10 @@
87
90
  &-link {
88
91
  display: block;
89
92
  padding: 16px 0;
93
+
94
+ @include breakpoint("large") {
95
+ padding: 0 0 24px;
96
+ }
90
97
  }
91
98
  }
92
99
 
@@ -443,6 +450,17 @@
443
450
  }
444
451
  }
445
452
 
453
+ &--search {
454
+ .ilo--searchfield {
455
+ max-width: 618px;
456
+ width: 100%;
457
+ }
458
+
459
+ .ilo--fieldset {
460
+ width: 100%;
461
+ }
462
+ }
463
+
446
464
  @include breakpoint("large") {
447
465
  display: none;
448
466
  }
@@ -726,6 +744,15 @@
726
744
  justify-content: center;
727
745
  padding: 80px 20px;
728
746
  }
747
+
748
+ .ilo--searchfield {
749
+ max-width: 618px;
750
+ width: 100%;
751
+ }
752
+
753
+ .ilo--fieldset {
754
+ width: 100%;
755
+ }
729
756
  }
730
757
 
731
758
  .ilo--search {
@@ -1,4 +1,5 @@
1
1
  @use "../tokens" as *;
2
+ @use "../functions" as *;
2
3
  @import "../mixins";
3
4
 
4
5
  .ilo--profile {
@@ -41,36 +42,41 @@
41
42
  font-family: $fonts-display;
42
43
  font-weight: map-get($type, "weights", "label");
43
44
  margin-left: 11px;
44
- @include font-styles("body-xs");
45
+ @include font-styles("body-small");
45
46
  }
46
47
 
47
48
  &--role {
48
49
  display: block;
49
50
  font-family: $fonts-copy;
50
51
  margin-left: 11px;
51
- @include font-styles("body-xss");
52
+ @include font-styles("body-xs");
52
53
  }
53
54
 
54
55
  &--description {
55
56
  clear: both;
56
57
  font-family: $fonts-copy;
57
58
  padding-top: 22px;
58
- @include font-styles("body-xss");
59
+ @include font-styles("body-xs");
59
60
  }
60
61
 
61
62
  &--link {
63
+ align-items: center;
62
64
  clear: both;
63
65
  color: map-get($color, "link", "text", "default");
64
- display: block;
66
+ display: inline-flex;
65
67
  font-family: $fonts-display;
66
68
  font-weight: map-get($type, "weights", "section");
69
+ height: px-to-rem(56px);
67
70
  text-decoration: none;
68
- @include font-styles("body-xs");
71
+ @include font-styles("body-small");
69
72
 
70
73
  span {
74
+ align-items: center;
71
75
  background-position: calc(100% - 10px) center;
72
76
  background-repeat: no-repeat;
73
77
  background-size: 24px 24px;
78
+ display: inline-flex;
79
+ height: 24px;
74
80
  padding-right: 32px;
75
81
  @include dataurlicon("arrowright", $color-link-text-default);
76
82
  }
@@ -95,6 +101,7 @@
95
101
 
96
102
  &:hover,
97
103
  &:focus {
104
+ background-color: $color-base-blue-light;
98
105
  color: map-get($color, "link", "text", "hover");
99
106
  outline: none;
100
107
 
@@ -105,34 +112,14 @@
105
112
  }
106
113
 
107
114
  .ilo--profile--description + .ilo--profile--link {
108
- margin-top: 28px;
115
+ margin-top: px-to-rem(8px);
109
116
  }
110
117
 
111
118
  .ilo--profile--role + .ilo--profile--link {
112
- margin-top: 22px;
119
+ margin-top: px-to-rem(2px);
113
120
  }
114
121
 
115
122
  .ilo--profile--name + .ilo--profile--link {
116
- margin-top: 38px;
117
- }
118
-
119
- @include breakpoint("medium") {
120
- &--name {
121
- @include font-styles("body-small");
122
- }
123
-
124
- &--role {
125
- font-family: $fonts-copy;
126
- @include font-styles("body-xs");
127
- }
128
-
129
- &--description {
130
- font-family: $fonts-copy;
131
- @include font-styles("body-xs");
132
- }
133
-
134
- &--link {
135
- @include font-styles("body-small");
136
- }
123
+ margin-top: px-to-rem(18px);
137
124
  }
138
125
  }
@@ -50,20 +50,6 @@
50
50
  }
51
51
  }
52
52
 
53
- &:hover {
54
- cursor: pointer;
55
-
56
- &:after {
57
- background-color: $color-base-yellow;
58
- }
59
-
60
- &:checked {
61
- &:before {
62
- border-color: $color-base-blue-dark;
63
- }
64
- }
65
- }
66
-
67
53
  &:focus {
68
54
  &:after {
69
55
  background-color: $color-base-yellow;
@@ -108,6 +94,7 @@
108
94
 
109
95
  .ilo--fieldset--label {
110
96
  font-weight: 400;
97
+ margin-bottom: 0;
111
98
  margin-left: px-to-rem($spacing-padding-1);
112
99
  margin-top: 2px;
113
100
  order: 2;
@@ -118,4 +105,13 @@
118
105
  order: 3;
119
106
  width: 100%;
120
107
  }
108
+
109
+ .right-to-left & {
110
+ direction: rtl;
111
+
112
+ .ilo--fieldset--label {
113
+ margin-left: 0;
114
+ margin-right: px-to-rem($spacing-padding-1);
115
+ }
116
+ }
121
117
  }
@@ -387,4 +387,58 @@
387
387
  }
388
388
  }
389
389
  }
390
+
391
+ .right-to-left & {
392
+ direction: rtl;
393
+
394
+ figcaption {
395
+ border-left: none;
396
+ border-right: 3px solid #b8c4cc;
397
+ padding-left: 0;
398
+ padding-right: px-to-rem(map-get($spacing, "padding-1"));
399
+ }
400
+
401
+ ul,
402
+ ol {
403
+ li {
404
+ &::before {
405
+ left: auto;
406
+ right: px-to-rem(-12px);
407
+ @include dataurlicon("listarrowreverse");
408
+ }
409
+ margin-left: 0;
410
+ margin-right: px-to-rem(12px);
411
+ padding-left: 0;
412
+ padding-right: px-to-rem(12px);
413
+ }
414
+ }
415
+
416
+ blockquote {
417
+ background-position: -1px -1px;
418
+ padding: px-to-rem(54px) px-to-rem(map-get($spacing, "padding-4"))
419
+ px-to-rem(34px) 0;
420
+ @include dataurlicon("trianglereverse", $color-ux-background-default);
421
+
422
+ p {
423
+ padding: 0 0 0 px-to-rem(map-get($spacing, "padding-6"));
424
+
425
+ &:after {
426
+ left: 0;
427
+ right: auto;
428
+ transform: scaleX(1);
429
+ }
430
+ }
431
+
432
+ &:before {
433
+ left: auto;
434
+ right: 0;
435
+ transform: scaleX(-1);
436
+ }
437
+
438
+ @include breakpoint("medium") {
439
+ padding: px-to-rem(62px) px-to-rem(map-get($spacing, "padding-6"))
440
+ px-to-rem(map-get($spacing, "padding-6")) 0;
441
+ }
442
+ }
443
+ }
390
444
  }