Skip to content

Commit 04c5a7c

Browse files
authored
feat: WP-280 @mixin overlay (#402)
1 parent 34ffb0d commit 04c5a7c

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/lib/_imports/tools/x-overlay.css

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,19 @@ Styleguide Tools.Mixins.Overlay
1010
*/
1111
@design-tokens url('../../tokens/v2.json') format('style-dictionary3');
1212

13-
%x-overlay--curtain {
13+
@define-mixin overlay--curtain {
1414
color: inherit;
1515
background-color: rgb( from design-token('color.gray.medium') r g b / 0.65 );
1616
backdrop-filter: blur(6px);
1717
}
18+
%x-overlay--curtain {
19+
@mixin overlay--curtain;
20+
}
1821

19-
%x-overlay--callout {
22+
@define-mixin overlay--callout {
2023
color: inherit;
2124
background-color: rgb( from design-token('color.gray.medium') r g b / 0.90 );
2225
}
26+
%x-overlay--callout {
27+
@mixin overlay--curtain;
28+
}

0 commit comments

Comments
 (0)