@ilo-org/styles 0.9.0 → 0.9.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/build/css/components/index.css +135 -104
- package/build/css/components/index.css.map +1 -1
- package/build/css/global.css +1 -1
- package/build/css/index.css +135 -104
- package/build/css/index.css.map +1 -1
- package/build/css/monorepo.css +135 -104
- 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/checkbox.css +1 -1
- package/css/components/dropdown.css +1 -1
- package/css/components/file-upload.css +1 -1
- package/css/components/formcontrol.css +1 -1
- package/css/components/input.css +1 -1
- package/css/components/navigation.css +1 -1
- package/css/components/textarea.css +1 -1
- package/css/components/textinput.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/_file-upload.scss +0 -1
- package/scss/components/_formcontrol.scss +78 -33
- package/scss/components/_navigation.scss +9 -2
- package/css/components/formgroup.css +0 -1
- package/scss/components/_formgroup.scss +0 -9
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ilo-org/styles",
|
|
3
3
|
"description": "Styles for products using ILO's Design System",
|
|
4
|
-
"version": "0.9.
|
|
4
|
+
"version": "0.9.1",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/international-labour-organization/designsystem.git",
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@ilo-org/fonts": "0.1.0",
|
|
22
|
-
"@ilo-org/
|
|
23
|
-
"@ilo-org/
|
|
22
|
+
"@ilo-org/icons": "0.2.1",
|
|
23
|
+
"@ilo-org/themes": "0.3.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"cssnano": "^5.1.13",
|
|
@@ -6,58 +6,103 @@
|
|
|
6
6
|
.ilo--form-control {
|
|
7
7
|
$c: &;
|
|
8
8
|
|
|
9
|
-
display: inline-grid;
|
|
10
9
|
grid-area: input;
|
|
10
|
+
display: inline-grid;
|
|
11
|
+
grid-template-rows: auto;
|
|
12
|
+
grid-template-columns: auto;
|
|
13
|
+
gap: px-to-rem($spacing-padding-1);
|
|
11
14
|
|
|
12
15
|
&__label-placement {
|
|
13
16
|
// Label is to the flex start of form element
|
|
14
17
|
&__start {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
// Label
|
|
19
|
+
:first-child {
|
|
20
|
+
grid-area: 1 / 1 / 2 / 2;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// Field
|
|
24
|
+
:nth-child(2) {
|
|
25
|
+
grid-area: 1 / 2 / 2 / 3;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
// Helper
|
|
29
|
+
:nth-child(3) {
|
|
30
|
+
grid-area: 2 / 2 / 3 / 3;
|
|
31
|
+
}
|
|
22
32
|
|
|
23
|
-
|
|
24
|
-
|
|
33
|
+
// Upload
|
|
34
|
+
:nth-child(4) {
|
|
35
|
+
grid-area: 3 / 1 / 4 / 3;
|
|
25
36
|
}
|
|
26
37
|
}
|
|
27
38
|
|
|
28
39
|
// Label is at the end of the form element
|
|
29
40
|
&__end {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
41
|
+
// Label
|
|
42
|
+
:first-child {
|
|
43
|
+
grid-area: 1 / 2 / 2 / 3;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// Field
|
|
47
|
+
:nth-child(2) {
|
|
48
|
+
grid-area: 1 / 1 / 2 / 2;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// Helper
|
|
52
|
+
:nth-child(3) {
|
|
53
|
+
grid-area: 2 / 1 / 3 / 3;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
// Upload
|
|
57
|
+
:nth-child(4) {
|
|
58
|
+
grid-area: 3 / 1 / 4 / 3;
|
|
59
|
+
}
|
|
37
60
|
}
|
|
38
61
|
|
|
39
62
|
// Label is above form element
|
|
40
63
|
&__top {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
64
|
+
// Label
|
|
65
|
+
:first-child {
|
|
66
|
+
grid-area: 1 / 1 / 2 / 2;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
// Field
|
|
70
|
+
:nth-child(2) {
|
|
71
|
+
grid-area: 2 / 1 / 3 / 2;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
// Helper
|
|
75
|
+
:nth-child(3) {
|
|
76
|
+
grid-area: 3 / 1 / 4 / 2;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
// Upload
|
|
80
|
+
:nth-child(4) {
|
|
81
|
+
grid-area: 4 / 1 / 5 / 2;
|
|
82
|
+
}
|
|
49
83
|
}
|
|
50
84
|
|
|
51
85
|
// Label is below form element
|
|
52
86
|
&__bottom {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
87
|
+
// Label
|
|
88
|
+
:first-child {
|
|
89
|
+
grid-area: 3 / 1 / 4 / 2;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
// Field
|
|
93
|
+
:nth-child(2) {
|
|
94
|
+
grid-area: 2 / 1 / 3 / 2;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
// Helper
|
|
98
|
+
:nth-child(3) {
|
|
99
|
+
grid-area: 1 / 1 / 2 / 2;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
// Upload
|
|
103
|
+
:nth-child(4) {
|
|
104
|
+
grid-area: 4 / 1 / 5 / 2;
|
|
105
|
+
}
|
|
61
106
|
}
|
|
62
107
|
}
|
|
63
108
|
|
|
@@ -583,7 +583,12 @@
|
|
|
583
583
|
}
|
|
584
584
|
|
|
585
585
|
&--search {
|
|
586
|
-
|
|
586
|
+
padding: px-to-rem(32px) 0 px-to-rem(24px);
|
|
587
|
+
|
|
588
|
+
.ilo--searchfield,
|
|
589
|
+
.ilo--form,
|
|
590
|
+
.ilo--fieldset,
|
|
591
|
+
.ilo--form-control {
|
|
587
592
|
width: 100%;
|
|
588
593
|
}
|
|
589
594
|
|
|
@@ -896,12 +901,14 @@
|
|
|
896
901
|
padding: 80px 20px;
|
|
897
902
|
}
|
|
898
903
|
|
|
904
|
+
.ilo--form,
|
|
899
905
|
.ilo--searchfield {
|
|
900
906
|
max-width: 618px;
|
|
901
907
|
width: 100%;
|
|
902
908
|
}
|
|
903
909
|
|
|
904
|
-
.ilo--fieldset
|
|
910
|
+
.ilo--fieldset,
|
|
911
|
+
.ilo--form-control {
|
|
905
912
|
width: 100%;
|
|
906
913
|
}
|
|
907
914
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.right-to-left .ilo--form{direction:rtl}
|