@ilo-org/styles 1.0.4 → 1.0.6

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/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": "1.0.4",
4
+ "version": "1.0.6",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/international-labour-organization/designsystem.git",
@@ -39,7 +39,7 @@
39
39
  "license": "Apache-2.0",
40
40
  "dependencies": {
41
41
  "@ilo-org/fonts": "0.2.2",
42
- "@ilo-org/icons": "0.3.1",
42
+ "@ilo-org/icons": "0.4.0",
43
43
  "@ilo-org/themes": "0.9.0"
44
44
  },
45
45
  "devDependencies": {
@@ -64,22 +64,6 @@
64
64
  @return px-to-rem($scaled);
65
65
  }
66
66
 
67
- // =========================================
68
- // Encode color strings
69
- //
70
- // Useful for using color variables with inline CSS SVGs
71
- // =========================================
72
- @function encodecolor($string) {
73
- @if type-of($string) == "color" and str-index(#{$string}, "#") == 1 {
74
- $hex: str-slice(ie-hex-str($string), 4);
75
- $string: unquote("#{$hex}");
76
-
77
- @return "%23" + $string;
78
- }
79
-
80
- @return $string;
81
- }
82
-
83
67
  // =========================================
84
68
  // Encode color strings
85
69
  //
package/scss/_mixins.scss CHANGED
@@ -16,33 +16,6 @@
16
16
  line-height: map-get($type, $stylename, "line-height");
17
17
  }
18
18
 
19
- // ======================================
20
- // Vertical Align
21
- // ======================================
22
-
23
- @mixin vertical-align {
24
- position: absolute;
25
- top: 50%;
26
- transform: translateY(-50%);
27
- }
28
-
29
- // ======================================
30
- // Horizontal Align
31
- // ======================================
32
-
33
- @mixin horizontal-align {
34
- position: absolute;
35
- left: 50%;
36
- transform: translateX(-50%);
37
- }
38
-
39
- @mixin vertical-horizontal-align {
40
- position: absolute;
41
- top: 50%;
42
- left: 50%;
43
- transform: translate(-50%, -50%);
44
- }
45
-
46
19
  // ======================================
47
20
  // Visually Hidden
48
21
  //
@@ -62,16 +35,6 @@
62
35
  overflow: hidden;
63
36
  }
64
37
 
65
- // ======================================
66
- // Ellipsis
67
- // ======================================
68
-
69
- @mixin ellipsis {
70
- white-space: nowrap;
71
- overflow: hidden;
72
- text-overflow: ellipsis;
73
- }
74
-
75
38
  // ======================================
76
39
  // Breakpoint
77
40
  // ======================================
@@ -131,19 +94,6 @@
131
94
  }
132
95
  }
133
96
 
134
- // ======================================
135
- // Spacing Values
136
- // ======================================
137
-
138
- @mixin spacingvalues($type, $mappath, $location, $state: "default") {
139
- #{$type}: px-to-rem(
140
- map-get($spacing, $location, $mappath, $state, $type, "top")
141
- )
142
- px-to-rem(map-get($spacing, $location, $mappath, $state, $type, "right"))
143
- px-to-rem(map-get($spacing, $location, $mappath, $state, $type, "bottom"))
144
- px-to-rem(map-get($spacing, $location, $mappath, $state, $type, "left"));
145
- }
146
-
147
97
  // ======================================
148
98
  // Border Values
149
99
  // ======================================
@@ -197,17 +147,6 @@
197
147
  background-image: url("#{colortodataurlicon($name, $color)}");
198
148
  }
199
149
 
200
- // ======================================
201
- // Icon Button
202
- // ======================================
203
-
204
- @mixin iconbutton($name, $height, $width, $color: $color-base-neutrals-black) {
205
- background-position: center center;
206
- background-repeat: no-repeat;
207
- background-size: $width $height;
208
- @include dataurlicon($name, $color);
209
- }
210
-
211
150
  // ======================================
212
151
  // Video Button
213
152
  // ======================================
@@ -91,6 +91,7 @@
91
91
  #{$accordion}--innerpanel {
92
92
  padding-bottom: spacing(9);
93
93
  padding-top: spacing(2);
94
+ padding-inline-end: spacing(8);
94
95
  }
95
96
 
96
97
  &__open {
@@ -100,7 +101,6 @@
100
101
  &#{$panel}__scroll {
101
102
  max-height: $scroll-max-height;
102
103
  overflow-y: auto;
103
- padding-right: spacing(8);
104
104
  }
105
105
  }
106
106
  }
@@ -67,6 +67,12 @@
67
67
  width: px-to-rem($icon-size + 8px);
68
68
  transition: all 0.1s ease-in-out;
69
69
 
70
+ &__large {
71
+ background-size: auto px-to-rem(24px);
72
+ height: px-to-rem(36px);
73
+ width: px-to-rem(36px);
74
+ }
75
+
70
76
  &:hover {
71
77
  background-color: map-get(
72
78
  $color,
@@ -95,11 +101,11 @@
95
101
  }
96
102
  }
97
103
 
98
- &__twitter {
99
- @include get-icon("twitter");
104
+ &__x {
105
+ @include get-icon("x");
100
106
 
101
107
  #{$c}__theme__dark & {
102
- @include get-icon("twitter", "dark");
108
+ @include get-icon("x", "dark");
103
109
  }
104
110
  }
105
111