Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
docs(theme): Update theme/index.scss to use new ripple mixins (#1478)
Browse files Browse the repository at this point in the history
  • Loading branch information
kfranqueiro authored Oct 26, 2017
1 parent 94a826d commit b2a97ea
Showing 1 changed file with 3 additions and 21 deletions.
24 changes: 3 additions & 21 deletions demos/theme/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -401,33 +401,15 @@ figure {
}

.demo-ripple-surface--primary {
&::before,
&::after {
@include mdc-theme-prop(background-color, primary);
}

@include mdc-ripple-bg((pseudo: "::before", theme-style: primary, opacity: .16));
@include mdc-ripple-fg((pseudo: "::after", theme-style: primary, opacity: .16));
@include mdc-ripple-color(primary, $mdc-ripple-pressed-dark-ink-opacity);
}

.demo-ripple-surface--secondary {
&::before,
&::after {
@include mdc-theme-prop(background-color, secondary);
}

@include mdc-ripple-bg((pseudo: "::before", theme-style: secondary, opacity: .16));
@include mdc-ripple-fg((pseudo: "::after", theme-style: secondary, opacity: .16));
@include mdc-ripple-color(secondary, $mdc-ripple-pressed-dark-ink-opacity);
}

.demo-ripple-surface--custom {
&::before,
&::after {
@include mdc-theme-prop(background-color, $demo-custom-color);
}

@include mdc-ripple-bg((pseudo: "::before", base-color: $demo-custom-color, opacity: .16));
@include mdc-ripple-fg((pseudo: "::after", base-color: $demo-custom-color, opacity: .16));
@include mdc-ripple-color($demo-custom-color, $mdc-ripple-pressed-dark-ink-opacity);
}

.mdc-ripple-surface[data-mdc-ripple-is-unbounded] {
Expand Down

0 comments on commit b2a97ea

Please sign in to comment.