Sha256: b28a92866f727034d45470466871d43fb727e25b0d9e46a0d4f3f7235d50f17c

Contents?: true

Size: 1.89 KB

Versions: 3

Compression:

Stored size: 1.89 KB

Contents

/*------------------------------------*\
    #BUTTON
\*------------------------------------*/

$button-color:            $white !default;
$button-bg-color:         $blue !default;
$button-hover-bg-color:   $bright-blue !default;
$button-disabled-opacity: 0.5 !default;

$button-font-size:        16px !default;
$button-small-font-size:  14px !default;
$button-tiny-font-size:   12px !default;
$button-padding:          0.58em 1em !default;
$button-tiny-padding:     0.3em 0.6em !default;

$button-create-bg-color:        $green !default;
$button-create-hover-bg-color:  $bright-green !default;

$button-destroy-bg-color:        $red !default;
$button-destroy-hover-bg-color:  $bright-red !default;


/**
 * 1. ensure button text won't receive an underline on hover
 */
.button {
    @extend %button-reset;
    display: inline-block;
    padding: $button-padding;
    color: $button-color;
    font-size: $button-font-size;
    font-weight: bold;
    line-height: 1.25;
    text-align: center;
    background: $button-bg-color;
    border-radius: $global-border-radius;
    cursor: pointer;
    transition: background-color $global-transition-speed ease-out;

    &:hover {
        text-decoration: none; /* [1] */
        background-color: $button-hover-bg-color;
    }

    &[disabled] {
        opacity: $button-disabled-opacity;
        cursor: not-allowed;
    }

    .card__button & {
        @include center;
    }

    .view__header-actions & {
        margin-bottom: ($spacing-unit / 2);
    }
}

.button--small {
    font-size: $button-small-font-size;
}

.button--tiny {
    padding: $button-tiny-padding;
    font-size: $button-tiny-font-size;
}

.button--create {
    background: $button-create-bg-color;

    &:hover {
        background-color: $button-create-hover-bg-color;
    }
}

.button--destroy {
    background: $button-destroy-bg-color;

    &:hover {
        background-color: $button-destroy-hover-bg-color;
    }
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
workarea-admin-3.5.2 app/assets/stylesheets/workarea/admin/components/_button.scss
workarea-admin-3.5.1 app/assets/stylesheets/workarea/admin/components/_button.scss
workarea-admin-3.5.0 app/assets/stylesheets/workarea/admin/components/_button.scss