Sha256: c4a81d7767d90c2438a0d651533e5bdc27a7d92447a5ce335e62514851adee94
Contents?: true
Size: 1.33 KB
Versions: 2
Compression:
Stored size: 1.33 KB
Contents
@mixin ghost-button-hover($color, $active: false) { text-decoration: none; outline: 0; @if $active { background: tint($color, 10%); @include text-color(tint($color, 10%), $more_contrast: true); border-color: tint($color, 10%); } @else { background: $color; @include text-color($color, false, $more_contrast: true); border-color: $color; } } @mixin ghost-button-disabled($color) { cursor: not-allowed; opacity: $opacity-7; background: none; color: $color; text-decoration: none; } @mixin ghost-button($color: white) { @include button-base; @include btn-styles; background: none; border-color: $color; color: $black; &:focus, &.focus { @include ghost-button-hover($color); } &:hover { @include ghost-button-hover($color); } &:active, &.active, .open > &.dropdown-toggle { @include ghost-button-hover($color); &:hover, &:focus, &.focus { @include btn-hover($color); } } &:active, &.active, .open > &.dropdown-toggle { background-image: none; } &.disabled, &[disabled], fieldset[disabled] & { &, &:hover, &:focus, &.focus, &:active, &.active { @include ghost-button-disabled($color); } } } @mixin ghost-button-colors($colors-list) { @each $name, $color in $colors-list { &-#{$name} { @include ghost-button($color); } } }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
nitro_sg-3.0.2 | sass-mixins/nitro-ui/buttons/_ghost-buttons.scss |
nitro_sg-3.0.1 | sass-mixins/nitro-ui/buttons/_ghost-buttons.scss |