@agorapulse/ui-theme 22.0.9 → 22.0.10
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/agorapulse-ui-theme-22.0.10.tgz +0 -0
- package/assets/desktop_variables.css +2 -0
- package/assets/mobile_variables.css +2 -0
- package/assets/style/_floating-arrow.scss +42 -0
- package/assets/style/theme.scss +1 -0
- package/package.json +1 -1
- package/src/tokens/system/elevation.json +12 -0
- package/agorapulse-ui-theme-22.0.9.tgz +0 -0
|
Binary file
|
|
@@ -208,6 +208,8 @@
|
|
|
208
208
|
--sys-color-feature-lock-light-bg: #EFEDF8;
|
|
209
209
|
--sys-color-feature-lock-light-text: #3C2C95;
|
|
210
210
|
--sys-color-feature-lock-text: #6554C0;
|
|
211
|
+
--sys-elevation-floating: 0px 4px 25px -2px rgba(52, 69, 99, 0.15), 0px 4px 6px -2px rgba(52, 69, 99, 0.15);
|
|
212
|
+
--sys-elevation-floating-filter: drop-shadow(0 4px 25px rgba(52, 69, 99, 0.15)) drop-shadow(0 4px 6px rgba(52, 69, 99, 0.15));
|
|
211
213
|
--sys-icon-sm: 14px;
|
|
212
214
|
--sys-icon-md: 16px;
|
|
213
215
|
--sys-icon-css-xxs: 8px;
|
|
@@ -208,6 +208,8 @@
|
|
|
208
208
|
--sys-color-feature-lock-light-bg: #EFEDF8;
|
|
209
209
|
--sys-color-feature-lock-light-text: #3C2C95;
|
|
210
210
|
--sys-color-feature-lock-text: #6554C0;
|
|
211
|
+
--sys-elevation-floating: 0px 4px 25px -2px rgba(52, 69, 99, 0.15), 0px 4px 6px -2px rgba(52, 69, 99, 0.15);
|
|
212
|
+
--sys-elevation-floating-filter: drop-shadow(0 4px 25px rgba(52, 69, 99, 0.15)) drop-shadow(0 4px 6px rgba(52, 69, 99, 0.15));
|
|
211
213
|
--sys-icon-sm: 14px;
|
|
212
214
|
--sys-icon-md: 16px;
|
|
213
215
|
--sys-icon-css-xxs: 8px;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/// The arrow of a floating surface, drawn on the CDK pane by `@agorapulse/ui-components/floating`.
|
|
2
|
+
///
|
|
3
|
+
/// Global CSS, and it has to be: the pane is in no component's DOM. A mixin on the consumer's
|
|
4
|
+
/// surface would not reach it either — a `TemplatePortal` moves only the nodes, so `:host-context()`
|
|
5
|
+
/// never sees the pane. The engine sets `.ap-floating-arrow` only when an arrow is asked for.
|
|
6
|
+
.ap-floating-arrow {
|
|
7
|
+
// One shadow over the whole silhouette: `drop-shadow` follows the alpha where `box-shadow`
|
|
8
|
+
// would follow the box. A surface with its own elevation overrides `--ap-arrow-filter` — the
|
|
9
|
+
// tooltip's three surfaces do not share one, and the dark one has none.
|
|
10
|
+
filter: var(--ap-arrow-filter, var(--sys-elevation-floating-filter));
|
|
11
|
+
|
|
12
|
+
> * {
|
|
13
|
+
// `!important` because an encapsulated `.class[_ngcontent-x]` is twice as specific as this
|
|
14
|
+
// selector and injected after it. Both properties, since a surface may carry its elevation
|
|
15
|
+
// either way.
|
|
16
|
+
box-shadow: none !important;
|
|
17
|
+
filter: none !important;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&::before {
|
|
21
|
+
content: '';
|
|
22
|
+
position: absolute;
|
|
23
|
+
// Written on the pane from `arrow-geometry.ts`, which the offset computation reads too.
|
|
24
|
+
width: var(--ap-floating-arrow-width, 16px);
|
|
25
|
+
height: var(--ap-floating-arrow-height, 8px);
|
|
26
|
+
top: var(--ap-arrow-top, auto);
|
|
27
|
+
right: var(--ap-arrow-right, auto);
|
|
28
|
+
bottom: var(--ap-arrow-bottom, auto);
|
|
29
|
+
left: var(--ap-arrow-left, auto);
|
|
30
|
+
rotate: var(--ap-arrow-rotate, 0deg);
|
|
31
|
+
|
|
32
|
+
background: var(--ap-arrow-background, var(--ref-color-white));
|
|
33
|
+
|
|
34
|
+
// A mask, not a border triangle: it keeps the rounded tip, and `drop-shadow` follows its alpha.
|
|
35
|
+
mask-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 8"%3E%3Cpath d="M6.68299 1.15238C7.43705 0.492586 8.56296 0.492588 9.31701 1.15238L16 7L0 7L6.68299 1.15238Z"/%3E%3C/svg%3E');
|
|
36
|
+
mask-size: 100% 100%;
|
|
37
|
+
mask-repeat: no-repeat;
|
|
38
|
+
|
|
39
|
+
// Born hidden: before the first computation it has no correct place to stand.
|
|
40
|
+
visibility: var(--ap-arrow-visibility, hidden);
|
|
41
|
+
}
|
|
42
|
+
}
|
package/assets/style/theme.scss
CHANGED
package/package.json
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"sys": {
|
|
3
|
+
"elevation": {
|
|
4
|
+
"floating": {
|
|
5
|
+
"value": "0px 4px 25px -2px rgba(52, 69, 99, 0.15), 0px 4px 6px -2px rgba(52, 69, 99, 0.15)"
|
|
6
|
+
},
|
|
7
|
+
"floatingFilter": {
|
|
8
|
+
"value": "drop-shadow(0 4px 25px rgba(52, 69, 99, 0.15)) drop-shadow(0 4px 6px rgba(52, 69, 99, 0.15))"
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
Binary file
|