Sha256: c4f8aac8b35c95b6a901c70b0aa159134947640774f3417840d6e59ce284eae1

Contents?: true

Size: 1.13 KB

Versions: 1

Compression:

Stored size: 1.13 KB

Contents

@import 'tao/ui/globals';

.button {
  display: inline-block;
  padding: $button-padding;
  font-size: $button-font-size;
  line-height: $button-line-height;
  border-radius: $border-radius-s;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
  user-select: none;
  transition: background 200ms, color 200ms, fill 200ms, border-color 200ms, box-shadow 200ms;
  @include button-colors($default-button-colors);

  .icon {
    vertical-align: text-top;
  }

  &:focus, &.focus {
    outline: none;
  }

  @if not $mobile {
    &:hover {
      text-decoration: none;
    }
  }

  &.disabled,
  &[disabled] {
    cursor: not-allowed;
  }

  &.button-warning {
    @include button-colors($warning-button-colors);
  }

  &.button-primary {
    @include button-colors($primary-button-colors);
  }

  &.button-primary-warning {
    @include button-colors($primary-warning-button-colors);
  }

  &.button-small {
    padding: $small-button-padding;
    font-size: $small-button-font-size;
    line-height: $small-button-line-height;
  }

  &.button-block {
    display: block;
    width: 100%;
  }
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tao_ui-0.1.3 lib/assets/stylesheets/tao/ui/buttons.scss