@kaizen/components 2.3.1 → 2.3.3

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.
@@ -4,39 +4,32 @@
4
4
  @layer kz-components {
5
5
  .mainActionsContainer {
6
6
  display: flex;
7
- align-items: center;
8
- justify-content: flex-end;
9
- flex-grow: 1;
7
+ align-self: flex-start;
10
8
  flex-shrink: 0;
9
+ // 8px gap between default and primary actions
10
+ // 4px needs to applied as 3rd empty div for minimized default action has gap applied also
11
+ gap: 4px;
12
+
13
+ @include title-block-under-576 {
14
+ justify-content: flex-start;
15
+ // offset: hamburger menu button is 48px wide
16
+ margin-inline-start: 48px;
17
+ }
11
18
 
12
19
  .defaultActionButtonMinimized {
13
20
  display: none;
14
- margin-inline-end: 0;
15
21
  }
16
22
 
17
- @include ca-margin($start: calc(#{$ca-grid} / 2));
23
+ @media (max-width: 360px) {
24
+ gap: 0;
18
25
 
19
- @include title-block-xsmall {
20
- padding-top: 12px;
21
- justify-content: flex-start;
22
- padding-left: 1.25rem;
23
-
24
- @media (max-width: 511px) {
25
- padding-top: 0;
26
- padding-left: 3.375rem;
26
+ .defaultActionButton {
27
+ display: none;
27
28
  }
28
29
 
29
- @media (max-width: 360px) {
30
- .defaultActionButton {
31
- display: none;
32
- margin-inline-end: 0;
33
- }
34
-
35
- .defaultActionButtonMinimized {
36
- display: flex;
37
- margin-inline-end: 3px;
38
- margin-left: -0.5rem;
39
- }
30
+ .defaultActionButtonMinimized {
31
+ display: flex;
32
+ margin-inline-end: 8px;
40
33
  }
41
34
  }
42
35
  }
@@ -6,41 +6,9 @@
6
6
  .toolbar {
7
7
  display: flex;
8
8
  align-items: center;
9
-
10
- .toolbarItem {
11
- margin: 0 calc(#{$ca-grid} / 4);
12
-
13
- @include title-block-under-1024 {
14
- margin: 0 calc(#{$ca-grid} / 8);
15
- }
16
-
17
- &.noGap {
18
- margin: 0;
19
- }
20
- }
21
-
22
- .toolbarItem:first-of-type {
23
- @include ca-margin($start: 0, $end: calc(#{$ca-grid} / 4));
24
-
25
- @include title-block-under-1024 {
26
- @include ca-margin($start: 0, $end: calc(#{$ca-grid} / 8));
27
- }
28
-
29
- &.noGap {
30
- margin: 0;
31
- }
32
- }
33
-
34
- .toolbarItem:last-of-type {
35
- @include ca-margin($start: calc(#{$ca-grid} / 4), $end: 0);
36
-
37
- @include title-block-under-1024 {
38
- @include ca-margin($start: calc(#{$ca-grid} / 8), $end: 0);
39
- }
40
-
41
- &.noGap {
42
- margin: 0;
43
- }
44
- }
9
+ // gap sizing needs to be applied on parent container
10
+ // the toolbar is used accross mutiple subcomponents within Titleblock,
11
+ // spacing in now the responsibility of the parent.
12
+ gap: inherit;
45
13
  }
46
14
  }