@softheon/armature 17.22.4 → 17.22.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.
@@ -4,7 +4,7 @@
4
4
 
5
5
  body {
6
6
  font-family: "Poppins", sans-serif !important;
7
- letter-spacing: 0px;
7
+ letter-spacing: 0px !important;
8
8
  font-size: 14px;
9
9
  margin: 0 !important;
10
10
  }
@@ -81,7 +81,7 @@
81
81
  &[theme="neutral"] {
82
82
  background: mat.get-color-from-palette(theme.$arm-neutral, 500) !important;
83
83
  background-color: mat.get-color-from-palette(theme.$arm-neutral, 500) !important;
84
- color: map-get(theme.$arm-neutral, contrast, 500);
84
+ color: map-get(theme.$arm-neutral, contrast, 500) !important;
85
85
  &:hover {
86
86
  background: mat.get-color-from-palette(theme.$arm-neutral, 700) !important;
87
87
  background-color: mat.get-color-from-palette(theme.$arm-neutral, 700) !important;
@@ -94,7 +94,7 @@
94
94
  &[theme="destroy"] {
95
95
  background: mat.get-color-from-palette(theme.$arm-error, 500) !important;
96
96
  background-color: mat.get-color-from-palette(theme.$arm-error, 500) !important;
97
- color: map-get(theme.$arm-error, contrast, 500);
97
+ color: map-get(theme.$arm-error, contrast, 500) !important;
98
98
  &:hover {
99
99
  background: mat.get-color-from-palette(theme.$arm-error, 700) !important;
100
100
  background-color: mat.get-color-from-palette(theme.$arm-error, 700) !important;
@@ -135,3 +135,7 @@ mat-form-field.sof-form-field {
135
135
  .mat-mdc-form-field.mat-focused .mat-mdc-select-arrow {
136
136
  color: mat.get-color-from-palette(theme.$arm-primary, 500) !important;
137
137
  }
138
+
139
+ .mdc-form-field {
140
+ letter-spacing: 0 !important;
141
+ }
@@ -3,12 +3,15 @@
3
3
  @use "../variables" as vars;
4
4
 
5
5
  ::ng-deep .mat-mdc-menu-panel {
6
+ background-color: vars.$surface-color-level-one-light !important;
6
7
  box-shadow: 0px 4px 8px 0px mat.get-color-from-palette(theme.$arm-neutral, A300) !important;
7
- background-color: vars.$surface-color-default-light !important;
8
8
  border-radius: 8px !important;
9
9
  }
10
10
 
11
11
  ::ng-deep .mat-mdc-menu-item-text {
12
+ font-weight: 500 !important;
13
+ color: vars.$text-high-emphasis !important;
14
+ font-family: Poppins !important;
12
15
  display: flex !important;
13
16
  align-items: center !important;
14
17
  i {
@@ -1,165 +1,193 @@
1
+ @use "@angular/material" as mat;
2
+ @use "../arm-theme" as theme;
1
3
  @use "../variables" as vars;
2
4
 
3
- // Angular Material styles
4
-
5
- .mdc-tooltip__surface {
6
- color: vars.$surface-color-default-light !important;
7
- font-size: 14px !important;
8
- font-style: normal !important;
9
- font-weight: 100 !important;
10
- font-family: Poppins !important;
11
- line-height: normal !important;
12
- background-color: vars.$surface-color-inverse-light !important;
13
- border-radius: 4px !important;
14
- text-align: center !important;
15
- position: relative;
16
- padding-left: 4px !important;
17
- padding-right: 4px !important;
18
- padding-bottom: 0px !important;
19
- padding-top: 1px !important;
20
-
21
- &::after {
22
- width: 0;
23
- height: 0;
24
- content: '';
25
- position: absolute;
5
+ // Angular Material styles
6
+
7
+ // Base tooltip styles
8
+ .mat-mdc-tooltip-panel {
9
+ .mat-mdc-tooltip,
10
+ .mdc-tooltip__surface {
11
+ background-color: vars.$surface-color-inverse-light !important;
12
+ color: vars.$text-inverse !important;
13
+ font-size: 14px !important;
14
+ font-style: normal !important;
15
+ font-weight: 100 !important;
16
+ font-family: Poppins !important;
17
+ line-height: normal !important;
18
+ text-align: center !important;
19
+ border-radius: 4px !important;
20
+ position: relative !important;
21
+ display: flex !important;
22
+ align-items: center !important;
23
+ justify-content: center !important;
24
+ min-height: 26px !important;
26
25
  }
26
+ }
27
27
 
28
- &.below {
29
- overflow: initial;
30
- margin-top: 0.5rem;
31
-
32
- &:after {
33
- top: -0.5rem;
34
- right: calc(50% - 0.3rem);
35
- transform: rotate(0);
36
- border-left: 0.25rem solid transparent;
37
- border-right: 0.25rem solid transparent;
38
- border-bottom: 0.5rem solid vars.$surface-color-inverse-light !important;
28
+ // Position based styles
29
+ .mat-mdc-tooltip-panel {
30
+ .mat-mdc-tooltip {
31
+ &::after {
32
+ content: '';
33
+ position: absolute;
34
+ width: 0;
35
+ height: 0;
36
+ border-style: solid;
37
+ border-width: 6px;
39
38
  }
40
39
  }
40
+ }
41
41
 
42
- &.above {
43
- overflow: initial;
44
- margin-bottom: 0.5rem;
45
-
46
- &:after {
47
- bottom: -0.5rem;
48
- right: calc(50% - 0.3rem);
49
- transform: rotate(180deg);
50
- border-left: 0.25rem solid transparent;
51
- border-right: 0.25rem solid transparent;
52
- border-bottom: 0.5rem solid vars.$surface-color-inverse-light !important;
42
+ .mat-mdc-tooltip-panel-below {
43
+ .mat-mdc-tooltip {
44
+ margin-top: 4px !important;
45
+ &::after {
46
+ bottom: 100%;
47
+ left: calc(50% - 6px);
48
+ border-color: transparent transparent vars.$surface-color-inverse-light transparent;
53
49
  }
54
50
  }
51
+ }
55
52
 
56
- &.right {
57
- overflow: initial;
58
- margin-left: 0.5rem;
59
-
60
- &:after {
61
- left: -0.5rem;
62
- top: calc(50% - 0.25rem);
63
- transform: rotate(270deg);
64
- border-left: 0.25rem solid transparent;
65
- border-right: 0.25rem solid transparent;
66
- border-bottom: 0.5rem solid vars.$surface-color-inverse-light !important;
53
+ .mat-mdc-tooltip-panel-above {
54
+ .mat-mdc-tooltip {
55
+ margin-bottom: 4px !important;
56
+ &::after {
57
+ top: 100%;
58
+ right: calc(50% - 6px);
59
+ border-color: vars.$surface-color-inverse-light transparent transparent transparent;
67
60
  }
68
61
  }
62
+ }
69
63
 
70
- &.left {
71
- overflow: initial;
72
- margin-right: 0.5rem;
73
-
74
- &:after {
75
- right: -0.5rem;
76
- top: calc(50% - 0.25rem);
77
- transform: rotate(90deg);
78
- border-left: 0.25rem solid transparent;
79
- border-right: 0.25rem solid transparent;
80
- border-bottom: 0.5rem solid vars.$surface-color-inverse-light !important;
64
+ .mat-mdc-tooltip-panel-left {
65
+ .mat-mdc-tooltip {
66
+ margin-right: 4px !important;
67
+ &::after {
68
+ left: 100%;
69
+ top: calc(50% - 6px);
70
+ border-color: transparent transparent transparent vars.$surface-color-inverse-light;
81
71
  }
82
72
  }
83
73
  }
84
74
 
85
- ::ng-deep .cdk-overlay-container .cdk-overlay-pane {
86
- &.mat-mdc-tooltip-panel {
87
- transform: none !important;
75
+ .mat-mdc-tooltip-panel-right {
76
+ .mat-mdc-tooltip {
77
+ margin-left: 4px !important;
78
+ &::after {
79
+ right: 100%;
80
+ top: calc(50% - 6px);
81
+ border-color: transparent vars.$surface-color-inverse-light transparent transparent;
82
+ }
88
83
  }
89
84
  }
90
85
 
91
- // NGX_TIPPY styles
86
+ // NGX_TIPPY styles
92
87
 
93
- button.sof-tooltip-button {
94
- display: flex !important;
95
- padding: 16px !important;
88
+ .tippy-box {
96
89
  border-radius: 8px !important;
97
- height: 24px !important;
98
- justify-content: center !important;
99
- align-items: center !important;
100
- gap: 8px !important;
101
- max-width: 24px !important;
102
- cursor: pointer;
103
- margin-left: 16px;
104
- color: vars.$text-inverse;
105
- background-color: transparent;
106
- border: 0px !important;
107
- font-size: 20px;
108
-
109
- &:hover {
110
- background-color: rgba(255, 255, 255, 0.08) !important;
111
- }
90
+ background-color: vars.$surface-color-inverse-light !important;
91
+ color: vars.$text-inverse !important;
112
92
 
113
- &:focus {
114
- background-color: rgba(255, 255, 255, 0.16) !important;
93
+ &[data-placement="bottom"] {
94
+ margin-top: 4px !important;
115
95
  }
116
- }
117
-
118
- .sof-tooltip-container {
119
- display: flex !important;
120
- align-items: flex-start;
121
- padding: 11px 7px;
122
-
123
- &.sof-tooltip-text {
124
- font-family: "Poppins", sans-serif !important;
125
- font-weight: 200;
126
- font-size: 14px;
127
- color: vars.$text-inverse;
128
- margin-top: 0%;
129
- margin-bottom: 0%;
96
+ &[data-placement="top"] {
97
+ margin-bottom: 4px !important;
130
98
  }
131
-
132
- &.sof-tooltip-button-container {
133
- padding-top: 2px;
134
- height: 100px;
135
- margin-left: 16px;
99
+ &[data-placement="left"] {
100
+ margin-right: 4px !important;
136
101
  }
137
- & button.sof-tooltip-button {
138
- display: flex !important;
139
- padding: 16px !important;
140
- border-radius: 8px !important;
141
- height: 24px !important;
142
- justify-content: center !important;
143
- align-items: center !important;
144
- gap: 8px !important;
145
- max-width: 24px !important;
146
- cursor: pointer;
147
- margin-left: 16px;
148
- color: #ffffff;
149
- background-color: transparent;
150
- border: 0px !important;
151
- font-size: 20px;
152
- &:hover {
153
- background-color: rgba(255, 255, 255, 0.08) !important;
154
- }
155
- &:focus {
156
- background-color: rgba(255, 255, 255, 0.16) !important;
102
+ &[data-placement="right"] {
103
+ margin-left: 4px !important;
104
+ }
105
+
106
+ .tippy-content {
107
+ padding: 0 !important;
108
+
109
+ .sof-tooltip {
110
+ display: flex !important;
111
+ align-items: flex-start !important;
112
+ padding: 16px !important;
113
+ gap: 16px !important;
114
+
115
+ &__content {
116
+ font-family: "Poppins", sans-serif !important;
117
+ line-height: normal !important;
118
+ margin: 0 !important;
119
+ padding: 0 !important;
120
+
121
+ * {
122
+ margin: 0 !important;
123
+ padding: 0 !important;
124
+ }
125
+ }
126
+
127
+ &__close {
128
+ display: flex !important;
129
+ justify-content: center !important;
130
+ align-items: center !important;
131
+ padding: 0px !important;
132
+ border-radius: 4px !important;
133
+ height: 24px !important;
134
+ width: 24px !important;
135
+ min-width: 24px !important;
136
+ max-width: 24px !important;
137
+ background: transparent !important;
138
+ background-color: transparent !important;
139
+ color: vars.$text-inverse !important;
140
+
141
+ &:hover {
142
+ background: rgba(255, 255, 255, 0.08) !important;
143
+ background-color: rgba(255, 255, 255, 0.08) !important;
144
+ }
145
+ &:active {
146
+ background: rgba(255, 255, 255, 0.16) !important;
147
+ background-color: rgba(255, 255, 255, 0.16) !important;
148
+ }
149
+ &:focus {
150
+ outline: 3px solid !important;
151
+ outline-offset: 2px !important;
152
+ outline-color: mat.get-color-from-palette(theme.$arm-primary, 300) !important;
153
+ }
154
+
155
+ .mdc-button__label {
156
+ display: flex !important;
157
+ align-items: center !important;
158
+ justify-content: center !important;
159
+
160
+ i {
161
+ font-size: 20px !important;
162
+ }
163
+ }
164
+
165
+ span.mat-mdc-button-persistent-ripple {
166
+ display: none !important;
167
+ }
168
+ span.mat-mdc-button-ripple {
169
+ display: none !important;
170
+ }
171
+ }
157
172
  }
158
173
  }
159
174
  }
160
175
 
161
- // override tippy js styles
162
- .tippy-box {
163
- border-radius: 8px !important;
164
- background-color: vars.$surface-color-inverse-light !important;
176
+ // Definition trigger button
177
+
178
+ .definition-trigger {
179
+ cursor: pointer !important;
180
+ display: inline-flex !important;
181
+ background: transparent !important;
182
+ background-color: transparent !important;
183
+ border: none !important;
184
+ border-bottom: 2px dashed mat.get-color-from-palette(theme.$arm-primary, 300) !important;
185
+ padding: 0 !important;
186
+
187
+ &:focus {
188
+ border-radius: 4px !important;
189
+ outline: 3px solid !important;
190
+ outline-offset: 2px !important;
191
+ outline-color: mat.get-color-from-palette(theme.$arm-primary, 300) !important;
192
+ }
165
193
  }