@ilo-org/styles 0.0.1 → 0.0.2

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.
@@ -48,8 +48,8 @@
48
48
 
49
49
  @include breakpoint("large") {
50
50
  @include font-styles("label-large");
51
- padding: px-to-rem(calc($spacing-ui-padding-xl - 11px)) px-to-rem(36px)
52
- px-to-rem(calc($spacing-ui-padding-xl - 11px)) 0;
51
+ padding: px-to-rem(calc($spacing-ui-padding-xl - 16px)) px-to-rem(36px)
52
+ px-to-rem(calc($spacing-ui-padding-xl - 16px)) 0;
53
53
  }
54
54
 
55
55
  &[aria-expanded="true"] {
@@ -50,14 +50,6 @@
50
50
  }
51
51
 
52
52
  &--only {
53
- height: px-to-rem($spacing-padding-3);
54
- width: px-to-rem($spacing-padding-3);
55
-
56
- .ilo--icon {
57
- left: 0;
58
- top: 0;
59
- }
60
-
61
53
  .button__label {
62
54
  @include isVisuallyHidden();
63
55
  }
@@ -70,6 +62,16 @@
70
62
  @include boxpadding("button", "large");
71
63
  @include font-styles("button-large");
72
64
  }
65
+
66
+ &.icon--only {
67
+ height: px-to-rem(45px);
68
+ width: px-to-rem(45px);
69
+
70
+ .ilo--icon {
71
+ left: px-to-rem(4.5px);
72
+ top: px-to-rem(4.5px);
73
+ }
74
+ }
73
75
  }
74
76
 
75
77
  &--medium {
@@ -110,6 +112,16 @@
110
112
  }
111
113
  }
112
114
  }
115
+
116
+ &.icon--only {
117
+ height: px-to-rem(36px);
118
+ width: px-to-rem(36px);
119
+
120
+ .ilo--icon {
121
+ left: px-to-rem(2px);
122
+ top: px-to-rem(2px);
123
+ }
124
+ }
113
125
  }
114
126
 
115
127
  &--small {
@@ -150,6 +162,16 @@
150
162
  }
151
163
  }
152
164
  }
165
+
166
+ &.icon--only {
167
+ height: px-to-rem(26px);
168
+ width: px-to-rem(26px);
169
+
170
+ .ilo--icon {
171
+ left: px-to-rem(0.5px);
172
+ top: px-to-rem(0.5px);
173
+ }
174
+ }
153
175
  }
154
176
 
155
177
  &--primary {
@@ -270,3 +292,22 @@
270
292
  }
271
293
  }
272
294
  }
295
+
296
+ [id*="story--components-button"] div {
297
+ .ilo--button {
298
+ margin-right: 10px;
299
+ margin-bottom: 10px;
300
+
301
+ &--large.icon--only {
302
+ transform: translateY(-6px);
303
+ }
304
+
305
+ &--medium.icon--only {
306
+ transform: translateY(-5px);
307
+ }
308
+
309
+ &--small.icon--only {
310
+ transform: translateY(-5px);
311
+ }
312
+ }
313
+ }
@@ -8,7 +8,7 @@
8
8
  $self: &;
9
9
 
10
10
  &--collapse:not(.ilo--callout--open) {
11
- max-height: 68px;
11
+ max-height: 78px;
12
12
  overflow: hidden;
13
13
  }
14
14
 
@@ -73,7 +73,7 @@
73
73
  display: inline-block;
74
74
  height: 24px;
75
75
  position: absolute;
76
- right: 0;
76
+ right: -3px;
77
77
  top: 50%;
78
78
  transform: translateY(-50%) rotate(0);
79
79
  transition: transform 0.2s ease-in-out;
@@ -68,7 +68,7 @@
68
68
  0
69
69
  );
70
70
  margin-left: px-to-rem(map-get($spacing, "ui-padding-lg"));
71
- padding-left: px-to-rem(map-get($spacing, "base") - 2px);
71
+ padding-left: px-to-rem(map-get($spacing, "base") - 5px);
72
72
 
73
73
  b,
74
74
  strong {
@@ -0,0 +1,13 @@
1
+ // Outputs CSS to be used within the monorepo, with fonts drawn from the @ilo-fonts package via pnpm
2
+
3
+ // Set prefix on default styles
4
+ @use "config";
5
+
6
+ // Load the css resets
7
+ @use "reset";
8
+
9
+ //Import type styles
10
+ @use "typographymonorepo";
11
+
12
+ // Import our custom components css
13
+ @use "components";