@ilo-org/styles 0.3.5 → 0.5.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.
- package/build/css/components/index.css +473 -520
- package/build/css/components/index.css.map +1 -1
- package/build/css/global.css +1 -1
- package/build/css/global.css.map +1 -1
- package/build/css/index.css +473 -520
- package/build/css/index.css.map +1 -1
- package/build/css/monorepo.css +473 -520
- package/build/css/monorepo.css.map +1 -1
- package/build/minified/index.css +1 -1
- package/build/minified/index.css.map +1 -1
- package/build/minified/monorepo.css +1 -1
- package/build/minified/monorepo.css.map +1 -1
- package/css/components/footer.css +1 -1
- package/css/components/hero.css +1 -1
- package/css/components/herocard.css +1 -0
- package/css/components/socialmedia.css +1 -0
- package/css/components/tabs.css +1 -1
- package/css/components/tooltip.css +1 -1
- package/css/global.css.map +1 -1
- package/css/index.css +1 -1
- package/css/index.css.map +1 -1
- package/css/monorepo.css +1 -1
- package/css/monorepo.css.map +1 -1
- package/package.json +3 -3
- package/scss/components/_footer.scss +0 -94
- package/scss/components/_hero.scss +180 -486
- package/scss/components/_herocard.scss +160 -0
- package/scss/components/_socialmedia.scss +154 -0
- package/scss/components/_tabs.scss +1 -0
- package/scss/components/_tooltip.scss +9 -0
- package/scss/components/index.scss +2 -0
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
@use "../tokens" as *;
|
|
2
|
+
@use "../functions" as *;
|
|
3
|
+
@import "../mixins";
|
|
4
|
+
|
|
5
|
+
.ilo--hero-card {
|
|
6
|
+
$c: &;
|
|
7
|
+
$semi-transparent: 0.6;
|
|
8
|
+
$padding-lg: 64px;
|
|
9
|
+
$padding-sm: 39px;
|
|
10
|
+
|
|
11
|
+
height: 100%;
|
|
12
|
+
position: relative;
|
|
13
|
+
padding: $padding-sm 16px;
|
|
14
|
+
|
|
15
|
+
@include breakpoint("large") {
|
|
16
|
+
padding: $padding-lg;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.right-to-left & {
|
|
20
|
+
direction: rtl;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&--title-link {
|
|
24
|
+
color: inherit;
|
|
25
|
+
text-decoration: none;
|
|
26
|
+
|
|
27
|
+
&:hover {
|
|
28
|
+
text-decoration: underline;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&__theme {
|
|
33
|
+
&__light {
|
|
34
|
+
color: map-get($color, "hero", "card", "light", "color");
|
|
35
|
+
background: map-get($color, "hero", "card", "light", "background");
|
|
36
|
+
|
|
37
|
+
@include breakpoint("large") {
|
|
38
|
+
&.ilo--hero-card__background__semi-transparent {
|
|
39
|
+
background: rgba(
|
|
40
|
+
map-get($color, "hero", "card", "light", "background"),
|
|
41
|
+
$semi-transparent
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&__dark {
|
|
48
|
+
background: map-get($color, "hero", "card", "dark", "background");
|
|
49
|
+
color: map-get($color, "hero", "card", "dark", "color");
|
|
50
|
+
|
|
51
|
+
@include breakpoint("large") {
|
|
52
|
+
&.ilo--hero-card__background__semi-transparent {
|
|
53
|
+
background: rgba(
|
|
54
|
+
map-get($color, "hero", "card", "dark", "background"),
|
|
55
|
+
$semi-transparent
|
|
56
|
+
);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
@include breakpoint("large") {
|
|
62
|
+
&__dark.ilo--hero-card__background__transparent,
|
|
63
|
+
&__light.ilo--hero-card__background__transparent {
|
|
64
|
+
color: map-get($color, "hero", "card", "dark", "color");
|
|
65
|
+
background: transparent;
|
|
66
|
+
|
|
67
|
+
* {
|
|
68
|
+
filter: drop-shadow(
|
|
69
|
+
1px 1px 12px #{map-get($color, "base", "neutrals", "dark")}
|
|
70
|
+
);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&__cornercut {
|
|
77
|
+
clip-path: polygon(
|
|
78
|
+
0 0,
|
|
79
|
+
calc(100% - $padding-lg) 0,
|
|
80
|
+
100% $padding-sm,
|
|
81
|
+
100% 100%,
|
|
82
|
+
0 100%
|
|
83
|
+
);
|
|
84
|
+
|
|
85
|
+
@include breakpoint("large") {
|
|
86
|
+
clip-path: polygon(
|
|
87
|
+
0 0,
|
|
88
|
+
calc(100% - $padding-lg) 0,
|
|
89
|
+
100% $padding-lg,
|
|
90
|
+
100% 100%,
|
|
91
|
+
0 100%
|
|
92
|
+
);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
&--datecopy {
|
|
97
|
+
@include font-styles("body-small");
|
|
98
|
+
margin-bottom: px-to-rem(28px);
|
|
99
|
+
color: map-get($color, "hero", "card", "light", "datecopy", "color");
|
|
100
|
+
|
|
101
|
+
#{$c}__theme__dark & {
|
|
102
|
+
color: map-get($color, "hero", "card", "dark", "datecopy", "color");
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
#{$c}__theme__light & {
|
|
106
|
+
color: map-get($color, "hero", "card", "light", "datecopy", "color");
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.ilo--hero-card__background__transparent &,
|
|
110
|
+
.ilo--hero-card__background__semi-transparent & {
|
|
111
|
+
color: map-get($color, "hero", "card", "dark", "eyebrow", "color");
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
&--eyebrow {
|
|
116
|
+
@include font-styles("body-small");
|
|
117
|
+
margin-bottom: px-to-rem(16px);
|
|
118
|
+
color: map-get($color, "hero", "card", "light", "eyebrow", "color");
|
|
119
|
+
|
|
120
|
+
#{$c}__theme__dark & {
|
|
121
|
+
color: map-get($color, "hero", "card", "dark", "eyebrow", "color");
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
#{$c}__theme__light & {
|
|
125
|
+
color: map-get($color, "hero", "card", "light", "eyebrow", "color");
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.ilo--hero-card__background__transparent & {
|
|
129
|
+
color: map-get($color, "hero", "card", "dark", "eyebrow", "color");
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
&--intro {
|
|
134
|
+
@include font-styles("body-small");
|
|
135
|
+
margin-bottom: px-to-rem(28px);
|
|
136
|
+
|
|
137
|
+
@include breakpoint("large") {
|
|
138
|
+
@include font-styles("base");
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
&--title {
|
|
143
|
+
@include font-styles("headline-3");
|
|
144
|
+
@include textmargin(
|
|
145
|
+
"margin-bottom",
|
|
146
|
+
40px,
|
|
147
|
+
"headline-2",
|
|
148
|
+
"display",
|
|
149
|
+
"base",
|
|
150
|
+
"copy"
|
|
151
|
+
);
|
|
152
|
+
|
|
153
|
+
font-family: $fonts-display;
|
|
154
|
+
font-weight: 700;
|
|
155
|
+
|
|
156
|
+
@include breakpoint("large") {
|
|
157
|
+
@include font-styles("headline-2");
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
@use "../tokens" as *;
|
|
2
|
+
@use "../functions" as *;
|
|
3
|
+
@import "../animations";
|
|
4
|
+
@import "../mixins";
|
|
5
|
+
|
|
6
|
+
.ilo--social-media {
|
|
7
|
+
$c: &;
|
|
8
|
+
$default-theme: "light";
|
|
9
|
+
$icon-size: map-get($spacing, "icons", "icon-height-lg");
|
|
10
|
+
|
|
11
|
+
@mixin get-icon($icon, $theme: $default-theme) {
|
|
12
|
+
@include dataurlicon(
|
|
13
|
+
$icon,
|
|
14
|
+
map-get($color, "socialmedia", $theme, "icon", "color")
|
|
15
|
+
);
|
|
16
|
+
|
|
17
|
+
&:hover {
|
|
18
|
+
@include dataurlicon(
|
|
19
|
+
$icon,
|
|
20
|
+
map-get($color, "socialmedia", $theme, "iconhover", "color")
|
|
21
|
+
);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
display: flex;
|
|
26
|
+
flex-flow: column nowrap;
|
|
27
|
+
align-items: flex-start;
|
|
28
|
+
|
|
29
|
+
&__justify__center {
|
|
30
|
+
align-items: center;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.right-to-left & {
|
|
34
|
+
.social--links {
|
|
35
|
+
flex-direction: row-reverse;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
* {
|
|
39
|
+
text-align: right;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&--headline {
|
|
44
|
+
color: map-get($color, "socialmedia", $default-theme, "headline", "color");
|
|
45
|
+
font-family: $fonts-display;
|
|
46
|
+
font-weight: map-get($type, "weights", "label");
|
|
47
|
+
@include font-styles("body-small");
|
|
48
|
+
@include textmargin("margin-bottom", 28px, "body-small", "display", 0, 0);
|
|
49
|
+
|
|
50
|
+
#{$c}__theme__dark & {
|
|
51
|
+
color: map-get($color, "socialmedia", "dark", "headline", "color");
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&--list {
|
|
56
|
+
display: inline-flex;
|
|
57
|
+
flex-flow: row wrap;
|
|
58
|
+
gap: map-get($spacing, "icons", "icon-padding-lg");
|
|
59
|
+
|
|
60
|
+
&--item {
|
|
61
|
+
display: inline-block;
|
|
62
|
+
overflow: hidden;
|
|
63
|
+
position: relative;
|
|
64
|
+
|
|
65
|
+
&--icon {
|
|
66
|
+
background-position: center;
|
|
67
|
+
background-repeat: no-repeat;
|
|
68
|
+
background-size: auto #{$icon-size};
|
|
69
|
+
text-indent: -999px;
|
|
70
|
+
border-radius: 2px;
|
|
71
|
+
display: inline-block;
|
|
72
|
+
height: px-to-rem($icon-size + 8px);
|
|
73
|
+
width: px-to-rem($icon-size + 8px);
|
|
74
|
+
transition: all 0.1s ease-in-out;
|
|
75
|
+
|
|
76
|
+
&:hover {
|
|
77
|
+
background-color: map-get(
|
|
78
|
+
$color,
|
|
79
|
+
"socialmedia",
|
|
80
|
+
$default-theme,
|
|
81
|
+
"iconhover",
|
|
82
|
+
"background"
|
|
83
|
+
);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
#{$c}__theme__dark &:hover {
|
|
87
|
+
background-color: map-get(
|
|
88
|
+
$color,
|
|
89
|
+
"socialmedia",
|
|
90
|
+
"dark",
|
|
91
|
+
"iconhover",
|
|
92
|
+
"background"
|
|
93
|
+
);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
&__facebook {
|
|
97
|
+
@include get-icon("facebook");
|
|
98
|
+
|
|
99
|
+
#{$c}__theme__dark & {
|
|
100
|
+
@include get-icon("facebook", "dark");
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
&__twitter {
|
|
105
|
+
@include get-icon("twitter");
|
|
106
|
+
|
|
107
|
+
#{$c}__theme__dark & {
|
|
108
|
+
@include get-icon("twitter", "dark");
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
&__instagram {
|
|
113
|
+
@include get-icon("instagram");
|
|
114
|
+
|
|
115
|
+
#{$c}__theme__dark & {
|
|
116
|
+
@include get-icon("instagram", "dark");
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
&__youtube {
|
|
121
|
+
@include get-icon("youtube");
|
|
122
|
+
|
|
123
|
+
#{$c}__theme__dark & {
|
|
124
|
+
@include get-icon("youtube", "dark");
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
&__linkedin {
|
|
129
|
+
@include get-icon("linkedin");
|
|
130
|
+
|
|
131
|
+
#{$c}__theme__dark & {
|
|
132
|
+
@include get-icon("linkedin", "dark");
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
&__flickr {
|
|
137
|
+
@include get-icon("flickr");
|
|
138
|
+
|
|
139
|
+
#{$c}__theme__dark & {
|
|
140
|
+
@include get-icon("flickr", "dark");
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
&__tiktok {
|
|
145
|
+
@include get-icon("tiktok");
|
|
146
|
+
|
|
147
|
+
#{$c}__theme__dark & {
|
|
148
|
+
@include get-icon("tiktok", "dark");
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
@import "../mixins";
|
|
5
5
|
|
|
6
6
|
.ilo--tooltip {
|
|
7
|
+
$c: &;
|
|
8
|
+
|
|
7
9
|
@include font-styles("body-xs");
|
|
8
10
|
background: map-get($color, "tooltip", "default", "background");
|
|
9
11
|
border: none;
|
|
@@ -35,6 +37,7 @@
|
|
|
35
37
|
&--wrapper {
|
|
36
38
|
display: inline-block;
|
|
37
39
|
position: relative;
|
|
40
|
+
cursor: pointer;
|
|
38
41
|
|
|
39
42
|
&.has-icon {
|
|
40
43
|
background-repeat: no-repeat;
|
|
@@ -43,6 +46,12 @@
|
|
|
43
46
|
min-width: px-to-rem($spacing-padding-2);
|
|
44
47
|
@include dataurlicon("info", $color-ux-labels-actionable);
|
|
45
48
|
}
|
|
49
|
+
|
|
50
|
+
&--dark {
|
|
51
|
+
&.has-icon {
|
|
52
|
+
@include dataurlicon("info", $color-tooltip-dark-icon);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
46
55
|
}
|
|
47
56
|
|
|
48
57
|
&--arrow {
|