@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.
- package/LICENSE +201 -0
- package/README.md +74 -0
- package/build/css/components/index.css +5924 -0
- package/build/css/components/index.css.map +1 -0
- package/build/css/index.css +6183 -0
- package/build/css/index.css.map +1 -0
- package/package.json +35 -0
- package/scss/_animations.scss +29 -0
- package/scss/_config.scss +6 -0
- package/scss/_functions.scss +126 -0
- package/scss/_mixins.scss +331 -0
- package/scss/_reset.scss +166 -0
- package/scss/_tokens.scss +5 -0
- package/scss/_typography.scss +72 -0
- package/scss/components/_accordion.scss +102 -0
- package/scss/components/_breadcrumb.scss +258 -0
- package/scss/components/_button.scss +272 -0
- package/scss/components/_callout.scss +151 -0
- package/scss/components/_card.scss +667 -0
- package/scss/components/_cardgroup.scss +45 -0
- package/scss/components/_checkbox.scss +124 -0
- package/scss/components/_contextmenu.scss +75 -0
- package/scss/components/_credit.scss +82 -0
- package/scss/components/_datepicker.scss +19 -0
- package/scss/components/_dropdown.scss +115 -0
- package/scss/components/_empty.scss +33 -0
- package/scss/components/_fieldset.scss +74 -0
- package/scss/components/_file-upload.scss +130 -0
- package/scss/components/_footer.scss +329 -0
- package/scss/components/_formgroup.scss +20 -0
- package/scss/components/_heading.scss +74 -0
- package/scss/components/_hero.scss +445 -0
- package/scss/components/_image.scss +42 -0
- package/scss/components/_input.scss +71 -0
- package/scss/components/_link.scss +6 -0
- package/scss/components/_linklist.scss +148 -0
- package/scss/components/_list.scss +79 -0
- package/scss/components/_loading.scss +93 -0
- package/scss/components/_modal.scss +84 -0
- package/scss/components/_notification.scss +162 -0
- package/scss/components/_pagination.scss +238 -0
- package/scss/components/_profile.scss +138 -0
- package/scss/components/_radio.scss +121 -0
- package/scss/components/_readmore.scss +53 -0
- package/scss/components/_richtext.scss +390 -0
- package/scss/components/_searchfield.scss +66 -0
- package/scss/components/_table.scss +177 -0
- package/scss/components/_tableofcontents.scss +98 -0
- package/scss/components/_tabs.scss +194 -0
- package/scss/components/_tag.scss +103 -0
- package/scss/components/_textarea.scss +89 -0
- package/scss/components/_tooltip.scss +198 -0
- package/scss/components/_video.scss +674 -0
- package/scss/components/index.scss +39 -0
- package/scss/index.scss +11 -0
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
@use "../tokens" as *;
|
|
2
|
+
@use "../functions" as *;
|
|
3
|
+
@import "../mixins";
|
|
4
|
+
|
|
5
|
+
.ilo--textarea {
|
|
6
|
+
-webkit-appearance: none;
|
|
7
|
+
-moz-appearance: none;
|
|
8
|
+
appearance: none;
|
|
9
|
+
background-color: map-get(
|
|
10
|
+
$color,
|
|
11
|
+
"formelements",
|
|
12
|
+
"input",
|
|
13
|
+
"default",
|
|
14
|
+
"background"
|
|
15
|
+
);
|
|
16
|
+
@include bordervalues("input", "formelements");
|
|
17
|
+
box-sizing: border-box;
|
|
18
|
+
font-family: $fonts-display;
|
|
19
|
+
font-weight: map-get($type, "weights", "section");
|
|
20
|
+
@include font-styles("label-medium");
|
|
21
|
+
height: px-to-rem(
|
|
22
|
+
map-get($spacing, "formelements", "input", "default", "height")
|
|
23
|
+
);
|
|
24
|
+
@include spacingvalues("margin", "input", "formelements");
|
|
25
|
+
max-width: map-get($spacing, "formelements", "input", "default", "width");
|
|
26
|
+
min-height: px-to-rem($spacing-padding-15);
|
|
27
|
+
min-width: map-get($spacing, "formelements", "input", "default", "width");
|
|
28
|
+
outline: none;
|
|
29
|
+
position: relative;
|
|
30
|
+
@include spacingvalues("padding", "input", "formelements");
|
|
31
|
+
width: map-get($spacing, "formelements", "input", "default", "width");
|
|
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
|
+
&:focus {
|
|
61
|
+
background-color: map-get(
|
|
62
|
+
$color,
|
|
63
|
+
"formelements",
|
|
64
|
+
"input",
|
|
65
|
+
"focus",
|
|
66
|
+
"background"
|
|
67
|
+
);
|
|
68
|
+
@include bordervalues("input", "formelements", "focus");
|
|
69
|
+
padding-left: calc($spacing-formelements-input-default-padding-left - 1px);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&:disabled {
|
|
73
|
+
opacity: 45%;
|
|
74
|
+
pointer-events: none;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&:invalid,
|
|
78
|
+
&.error,
|
|
79
|
+
.error & {
|
|
80
|
+
background-color: map-get(
|
|
81
|
+
$color,
|
|
82
|
+
"formelements",
|
|
83
|
+
"input",
|
|
84
|
+
"error",
|
|
85
|
+
"background"
|
|
86
|
+
);
|
|
87
|
+
@include bordervalues("input", "formelements", "error");
|
|
88
|
+
}
|
|
89
|
+
}
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
@use "../tokens" as *;
|
|
2
|
+
@use "../functions" as *;
|
|
3
|
+
@import "../mixins";
|
|
4
|
+
|
|
5
|
+
.ilo--tooltip {
|
|
6
|
+
@include font-styles("body-xs");
|
|
7
|
+
background: map-get($color, "tooltip", "default", "background");
|
|
8
|
+
border: none;
|
|
9
|
+
border-radius: px-to-rem(2px);
|
|
10
|
+
display: inline-block;
|
|
11
|
+
filter: drop-shadow(
|
|
12
|
+
0 px-to-rem(0.8px) px-to-rem(1.6px)
|
|
13
|
+
rgba(map-get($color, "tooltip", "default", "dropshadow"), 0.038)
|
|
14
|
+
)
|
|
15
|
+
drop-shadow(
|
|
16
|
+
0 px-to-rem(2.7) px-to-rem(5.4px)
|
|
17
|
+
rgba(map-get($color, "tooltip", "default", "dropshadow"), 0.054)
|
|
18
|
+
)
|
|
19
|
+
drop-shadow(
|
|
20
|
+
0 px-to-rem(12px) px-to-rem(24px)
|
|
21
|
+
rgba(map-get($color, "tooltip", "default", "dropshadow"), 0.12)
|
|
22
|
+
);
|
|
23
|
+
color: map-get($color, "tooltip", "default", "text");
|
|
24
|
+
opacity: 0;
|
|
25
|
+
padding: map-get($spacing, "ui-padding");
|
|
26
|
+
position: absolute;
|
|
27
|
+
transition: opacity 0.15s ease-in-out;
|
|
28
|
+
visibility: hidden;
|
|
29
|
+
width: auto;
|
|
30
|
+
|
|
31
|
+
&--visible {
|
|
32
|
+
opacity: 1;
|
|
33
|
+
visibility: visible;
|
|
34
|
+
z-index: 2;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&--wrapper {
|
|
38
|
+
display: inline-block;
|
|
39
|
+
position: relative;
|
|
40
|
+
|
|
41
|
+
&.has-icon {
|
|
42
|
+
background-repeat: no-repeat;
|
|
43
|
+
background-size: cover;
|
|
44
|
+
height: px-to-rem($spacing-padding-2);
|
|
45
|
+
min-width: px-to-rem($spacing-padding-2);
|
|
46
|
+
@include dataurlicon("info", $color-ux-labels-actionable);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&--arrow {
|
|
51
|
+
border-color: transparent;
|
|
52
|
+
border-right-color: transparent;
|
|
53
|
+
border-style: solid;
|
|
54
|
+
border-width: 0;
|
|
55
|
+
height: 0;
|
|
56
|
+
margin-top: -#{map-get($spacing, "tooltip", "tooltip-arrow-width")};
|
|
57
|
+
position: absolute;
|
|
58
|
+
width: 0;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&--alignment-top {
|
|
62
|
+
left: 0;
|
|
63
|
+
top: calc(-100% + map-get($spacing, "tooltip", "tooltip-arrow-height"));
|
|
64
|
+
|
|
65
|
+
.ilo--tooltip--arrow {
|
|
66
|
+
border-top-color: map-get($color, "tooltip", "default", "background");
|
|
67
|
+
border-width: map-get($spacing, "tooltip", "tooltip-arrow-height")
|
|
68
|
+
map-get($spacing, "tooltip", "tooltip-arrow-width") 0
|
|
69
|
+
map-get($spacing, "tooltip", "tooltip-arrow-width");
|
|
70
|
+
bottom: -#{map-get($spacing, "tooltip", "tooltip-arrow-height")};
|
|
71
|
+
left: 50%;
|
|
72
|
+
margin-left: -#{map-get($spacing, "tooltip", "tooltip-arrow-width")};
|
|
73
|
+
top: auto;
|
|
74
|
+
|
|
75
|
+
&--placement-negative {
|
|
76
|
+
left: 10%;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
&--placement-positive {
|
|
80
|
+
left: auto;
|
|
81
|
+
right: 10%;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&--placement-center {
|
|
85
|
+
left: 50%;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&--alignment-right {
|
|
91
|
+
left: calc(100% + map-get($spacing, "padding-4"));
|
|
92
|
+
top: calc(50% - map-get($spacing, "tooltip", "tooltip-arrow-width"));
|
|
93
|
+
|
|
94
|
+
.ilo--tooltip--arrow {
|
|
95
|
+
border-right-color: map-get($color, "tooltip", "default", "background");
|
|
96
|
+
border-width: map-get($spacing, "tooltip", "tooltip-arrow-width")
|
|
97
|
+
map-get($spacing, "tooltip", "tooltip-arrow-height")
|
|
98
|
+
map-get($spacing, "tooltip", "tooltip-arrow-width") 0;
|
|
99
|
+
left: 0;
|
|
100
|
+
margin-left: -#{map-get($spacing, "tooltip", "tooltip-arrow-height")};
|
|
101
|
+
top: 50%;
|
|
102
|
+
|
|
103
|
+
&--placement-negative {
|
|
104
|
+
margin-top: 0;
|
|
105
|
+
top: 10%;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
&--placement-positive {
|
|
109
|
+
top: auto;
|
|
110
|
+
bottom: 10%;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
&--placement-center {
|
|
114
|
+
top: 50%;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
&--alignment-left {
|
|
120
|
+
right: calc(100% + map-get($spacing, "padding-4"));
|
|
121
|
+
top: calc(50% - map-get($spacing, "tooltip", "tooltip-arrow-width"));
|
|
122
|
+
|
|
123
|
+
.ilo--tooltip--arrow {
|
|
124
|
+
border-left-color: map-get($color, "tooltip", "default", "background");
|
|
125
|
+
border-width: map-get($spacing, "tooltip", "tooltip-arrow-width") 0
|
|
126
|
+
map-get($spacing, "tooltip", "tooltip-arrow-width")
|
|
127
|
+
map-get($spacing, "tooltip", "tooltip-arrow-height");
|
|
128
|
+
left: auto;
|
|
129
|
+
margin-top: -#{map-get($spacing, "tooltip", "tooltip-arrow-width")};
|
|
130
|
+
right: -#{map-get($spacing, "tooltip", "tooltip-arrow-height")};
|
|
131
|
+
top: 50%;
|
|
132
|
+
|
|
133
|
+
&--placement-negative {
|
|
134
|
+
margin-top: 0;
|
|
135
|
+
top: 10%;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
&--placement-positive {
|
|
139
|
+
top: auto;
|
|
140
|
+
bottom: 10%;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
&--placement-center {
|
|
144
|
+
top: 50%;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
&--alignment-bottom {
|
|
150
|
+
left: 0;
|
|
151
|
+
top: calc(100% + map-get($spacing, "tooltip", "tooltip-arrow-height"));
|
|
152
|
+
|
|
153
|
+
.ilo--tooltip--arrow {
|
|
154
|
+
border-width: 0 map-get($spacing, "tooltip", "tooltip-arrow-width")
|
|
155
|
+
map-get($spacing, "tooltip", "tooltip-arrow-height")
|
|
156
|
+
map-get($spacing, "tooltip", "tooltip-arrow-width");
|
|
157
|
+
left: 50%;
|
|
158
|
+
margin-left: -#{map-get($spacing, "tooltip", "tooltip-arrow-width")};
|
|
159
|
+
margin-top: -#{map-get($spacing, "tooltip", "tooltip-arrow-height")};
|
|
160
|
+
top: 0;
|
|
161
|
+
border-bottom-color: map-get($color, "tooltip", "default", "background");
|
|
162
|
+
|
|
163
|
+
&--placement-negative {
|
|
164
|
+
left: 10%;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
&--placement-positive {
|
|
168
|
+
left: auto;
|
|
169
|
+
right: 10%;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
&--placement-center {
|
|
173
|
+
left: 50%;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
&--dark {
|
|
179
|
+
background: map-get($color, "tooltip", "dark", "background");
|
|
180
|
+
color: map-get($color, "tooltip", "dark", "text");
|
|
181
|
+
|
|
182
|
+
&.ilo--tooltip--alignment-bottom .ilo--tooltip--arrow {
|
|
183
|
+
border-bottom-color: map-get($color, "tooltip", "dark", "background");
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
&.ilo--tooltip--alignment-top .ilo--tooltip--arrow {
|
|
187
|
+
border-top-color: map-get($color, "tooltip", "dark", "background");
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
&.ilo--tooltip--alignment-left .ilo--tooltip--arrow {
|
|
191
|
+
border-left-color: map-get($color, "tooltip", "dark", "background");
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
&.ilo--tooltip--alignment-right .ilo--tooltip--arrow {
|
|
195
|
+
border-right-color: map-get($color, "tooltip", "dark", "background");
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
}
|