@agorapulse/ui-theme 22.0.20 → 22.0.22

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.
Binary file
@@ -177,16 +177,27 @@
177
177
  }
178
178
  }
179
179
 
180
- @mixin btn-mermaid-inactive-state {
181
- background: linear-gradient(
182
- 90deg,
183
- var(--ref-color-mermaid-gradient-from40) 0%,
184
- var(--ref-color-mermaid-gradient-to40) 100%
185
- );
180
+ // The mermaid 1px gradient ring is a real transparent border showing a border-box gradient,
181
+ // so every side rounds the same way at fractional positions. The padding shrinks by the
182
+ // border width to keep the button size.
183
+ @mixin btn-mermaid-ring {
184
+ border: 1px solid transparent;
185
+ padding: calc(var(--comp-button-padding-horizontal) - 1px) calc(var(--comp-button-padding-vertical) - 1px);
186
+ }
186
187
 
187
- &::after {
188
- background: var(--ref-color-white);
189
- }
188
+ @mixin btn-mermaid-background($fill, $gradient-opacity: '') {
189
+ background:
190
+ linear-gradient($fill, $fill) padding-box,
191
+ linear-gradient(
192
+ 90deg,
193
+ var(--ref-color-mermaid-gradient-from#{$gradient-opacity}) 0%,
194
+ var(--ref-color-mermaid-gradient-to#{$gradient-opacity}) 100%
195
+ )
196
+ border-box;
197
+ }
198
+
199
+ @mixin btn-mermaid-inactive-state {
200
+ @include btn-mermaid-background(var(--ref-color-white), 40);
190
201
 
191
202
  ap-symbol {
192
203
  opacity: 0.4;
@@ -209,7 +220,6 @@
209
220
  }
210
221
  }
211
222
 
212
-
213
223
  ap-symbol {
214
224
  color: var(--ref-color-#{$base}-100);
215
225
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agorapulse/ui-theme",
3
- "version": "22.0.20",
3
+ "version": "22.0.22",
4
4
  "description": "Agorapulse UI Theme Library",
5
5
  "repository": {
6
6
  "type": "git",
Binary file