Skip to content

Commit

Permalink
feat: WP-280 @mixin overlay (#402)
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleyboar authored Sep 27, 2024
1 parent 34ffb0d commit 04c5a7c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/lib/_imports/tools/x-overlay.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,19 @@ Styleguide Tools.Mixins.Overlay
*/
@design-tokens url('../../tokens/v2.json') format('style-dictionary3');

%x-overlay--curtain {
@define-mixin overlay--curtain {
color: inherit;
background-color: rgb( from design-token('color.gray.medium') r g b / 0.65 );
backdrop-filter: blur(6px);
}
%x-overlay--curtain {
@mixin overlay--curtain;
}

%x-overlay--callout {
@define-mixin overlay--callout {
color: inherit;
background-color: rgb( from design-token('color.gray.medium') r g b / 0.90 );
}
%x-overlay--callout {
@mixin overlay--curtain;
}

0 comments on commit 04c5a7c

Please sign in to comment.