All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.palexdev.mfxresources.themes.material.abstracts._ripple.scss Maven / Gradle / Ivy

There is a newer version: 11.26.0
Show newest version
@use "../tokens/theme" as Theme;

/// Computes the color of the ripple layer given the base color and the interaction/layer state
@function RippleLayer($color, $layer_state) {
  @return rgba(Theme.GetSchemeColor($color), Theme.GetStateLayer($layer_state));
}

/// Shortcut for the ripple_layer function with 'pressed' as the interaction state.
/// On the web, the ripple layer is an actual container that changes its color based on the user interaction with the
/// component. Here on the desktop the ripple is not a layer but just an effect, because of this, the ripple color
/// will always refer to the 'pressed' state.
@function Ripple($color) {
  @return RippleLayer($color, 'pressed');
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy