Sha256: 77fde7c75856607097c80af66600f0c304a7adff93c7b12638d652e804505c0f

Contents?: true

Size: 1.17 KB

Versions: 16

Compression:

Stored size: 1.17 KB

Contents

@mixin button-colors($colors) {
  $normal-colors: map-get($colors, 'normal');
  background: map-get($normal-colors, 'bg');
  border: 1px solid map-get($normal-colors, 'border');
  color: map-get($normal-colors, 'text');
  fill: map-get($normal-colors, 'text');

  @if not $mobile {
    &:focus, &.focus {
      box-shadow: 0px 0px 0 2px rgba($border-color, 0.5);
    }

    &:hover {
      $hover-colors: map-get($colors, 'hover');
      background: map-get($hover-colors, 'bg');
      border: 1px solid map-get($hover-colors, 'border');
      color: map-get($hover-colors, 'text');
      fill: map-get($hover-colors, 'text');
    }
  }

  &:active {
    $active-colors: map-get($colors, 'active');
    background: map-get($active-colors, 'bg');
    border: 1px solid map-get($active-colors, 'border');
    color: map-get($active-colors, 'text');
    fill: map-get($active-colors, 'text');
  }

  &.disabled,
  &[disabled] {
    $disable-colors: map-get($colors, 'disable');
    background: map-get($disable-colors, 'bg');
    border: 1px solid map-get($disable-colors, 'border');
    color: map-get($disable-colors, 'text');
    fill: map-get($disable-colors, 'text');
    box-shadow: none;
  }
}

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
tao_ui-0.3.4 lib/assets/stylesheets/tao/ui/shared/mixins/_buttons.scss
tao_ui-0.3.3 lib/assets/stylesheets/tao/ui/shared/mixins/_buttons.scss
tao_ui-0.3.2 lib/assets/stylesheets/tao/ui/shared/mixins/_buttons.scss
tao_ui-0.3.1 lib/assets/stylesheets/tao/ui/shared/mixins/_buttons.scss
tao_ui-0.3.0 lib/assets/stylesheets/tao/ui/shared/mixins/_buttons.scss
tao_ui-0.2.10 lib/assets/stylesheets/tao/ui/shared/mixins/_buttons.scss
tao_ui-0.2.9 lib/assets/stylesheets/tao/ui/shared/mixins/_buttons.scss
tao_ui-0.2.8 lib/assets/stylesheets/tao/ui/shared/mixins/_buttons.scss
tao_ui-0.2.7 lib/assets/stylesheets/tao/ui/shared/mixins/_buttons.scss
tao_ui-0.2.6 lib/assets/stylesheets/tao/ui/shared/mixins/_buttons.scss
tao_ui-0.2.5 lib/assets/stylesheets/tao/ui/shared/mixins/_buttons.scss
tao_ui-0.2.4 lib/assets/stylesheets/tao/ui/shared/mixins/_buttons.scss
tao_ui-0.2.3 lib/assets/stylesheets/tao/ui/shared/mixins/_buttons.scss
tao_ui-0.2.2 lib/assets/stylesheets/tao/ui/shared/mixins/_buttons.scss
tao_ui-0.2.1 lib/assets/stylesheets/tao/ui/shared/mixins/_buttons.scss
tao_ui-0.2.0 lib/assets/stylesheets/tao/ui/shared/mixins/_buttons.scss