Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions src/material/core/_core.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@

@include cdk.a11y-visually-hidden();
@include private.structural-styling();
}

// Mixin that provides the .mat-app-background class.
@mixin app-background() {
// Wrapper element that provides the theme background when the
// user's content isn't inside of a `mat-sidenav-container`.
@at-root {
Expand All @@ -26,7 +29,14 @@
@include token-utils.create-token-slot(background-color, background-color, transparent);
@include token-utils.create-token-slot(color, text-color, inherit);
}
}
}
}

// Mixin that provides the .mat-elevation-* classes.
@mixin elevation-classes() {
@at-root {
@include token-utils.use-tokens(tokens-mat-app.$prefix, tokens-mat-app.get-token-slots()) {
// Provides external CSS classes for each elevation value. Each CSS class is formatted as
// `mat-elevation-z$z-value` where `$z-value` corresponds to the z-space to which the element
// is elevated.
Expand All @@ -42,9 +52,3 @@
}
}
}

// Mixin that provides the .mat-app-background class.
@mixin app-background() {}

// Mixin that provides the .mat-elevation-* classes.
@mixin elevation-classes() {}
Loading