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

io.github.palexdev.mfxresources.sass.components.buttons._buttons-outlined.scss Maven / Gradle / Ivy

There is a newer version: 11.26.8
Show newest version
@use '../../abstracts/functions' as *;
@use '../../abstracts/maps' as *;
@use '../../themes/theme' as *;

// Material
$md-styles-outlined: (
  root: (
    bg-color: transparent,
    bd-color: GetSchemeColor('outline'),
    bd-radius: 20px,
    bd-width: 1px,
    fg-color: GetSchemeColor('primary'),
    focused: (
      bd-color: GetSchemeColor('primary'),
    ),
    disabled: (
      bg-color: transparent,
      bd-color: ApplyMDStateLayer('outline', disabled-text),
    ),
  ),
  icon: (
    mfx-color: GetSchemeColor('primary'),
  ),
  surface-bg: (
    bg-color: GetSchemeColor('primary'),
  ),
  surface-ripple: (
    ripple-color: Ripple('primary'),
  ),
) !default;

@mixin MaterialOutlined($overrides: ()) {
  /*!***************************************************************************************************
   * Outlined Buttons
   ****************************************************************************************************/
  $styles: DeepMerge($md-styles-outlined, $overrides);

  .mfx-button.outlined {
    @include ApplyStyles($styles, root);

    > .label > .mfx-font-icon {
      @include ApplyStyles($styles, icon);
    }

    > .surface > .bg {
      @include ApplyStyles($styles, surface-bg);
    }

    > .surface > .mfx-ripple-generator {
      @include ApplyStyles($styles, surface-ripple);
    }

    // Focused
    &:focused {
      @include ApplyStyles($styles, root, focused);
    }

    // Disabled
    &:disabled {
      @include ApplyStyles($styles, root, disabled);
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy