Sha256: 0b27a04fef0d56e3b5e783a263f685f164f614025470a65b850ba35a67337910

Contents?: true

Size: 1.64 KB

Versions: 3

Compression:

Stored size: 1.64 KB

Contents

@import 'mixins/components.buttons';

.c-button {
  --button-color: #fff;
  --button-background-color: var(--color-default);

  @include button;

  &.c-button--close {
    --button-color: inherit;
    --button-background-color: transparent;

    @include button-color;

    position: absolute;
    right: var(--spacing-small);
    padding: 0;
    font-weight: var(--text-font-weight-heavy);
    font-size: 1.4em;
    line-height: 1;
    outline: 0;
  }

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

  &.c-button--rounded {
    border-radius: var(--border-radius-rounded);
  }

  &.c-button--brand {
    --button-background-color: var(--color-brand);
  }

  &.c-button--info {
    --button-background-color: var(--color-info);
  }

  &.c-button--warning {
    --button-color: #000;
    --button-background-color: var(--color-warning);
  }

  &.c-button--success {
    --button-background-color: var(--color-success);
  }

  &.c-button--error {
    --button-background-color: var(--color-error);
  }

  &.c-button--ghost {
    --button-color: var(--color-default);

    @include button-ghost;

    &.c-button--brand {
      --button-color: var(--color-brand);
    }

    &.c-button--info {
      --button-color: var(--color-info);
    }

    &.c-button--warning {
      --button-color: var(--color-warning);
    }

    &.c-button--success {
      --button-color: var(--color-success);
    }

    &.c-button--error {
      --button-color: var(--color-error);
    }
  }

  &.c-button--nude {
    @include button-nude;
  }
}

.c-button__icon-left {
  padding-right: var(--spacing-small);
}

.c-button__icon-right {
  padding-left: var(--spacing-small);
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
activeadmin_blaze_theme-0.7.0 app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.buttons.scss
activeadmin_blaze_theme-0.6.2 app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.buttons.scss
activeadmin_blaze_theme-0.6.0 app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.buttons.scss