taiga-front/app/styles/components/buttons.scss

123 lines
2.1 KiB
SCSS
Executable File

// Buttons components
.trans-button {
@extend %large;
@extend %title;
text-transform: uppercase;
&:hover,
&.active {
@include transition (color .3s linear);
color: $green-taiga;
}
.icon {
margin-right: .3rem;
}
}
%button,
.button {
@extend %medium;
@extend %title;
@include transition (background .3s linear);
display: inline-block;
padding: 7px 40px 6px;
text-transform: uppercase;
&:hover {
@include transition (background .3s linear);
}
&.loading {
span {
@include animation (loading .5s linear);
@include animation (spin 1s linear infinite);
}
}
.icon {
margin-right: .3rem;
}
}
a.button-green {
background: $green-taiga;
color: $white;
vertical-align: middle;
&:hover,
&.active {
background: $fresh-taiga;
}
span {
color: $white;
}
}
.button-gray,
a.button-gray {
background: $button-gray;
&:hover {
background: $button-gray-hover;
color: $white;
}
span {
color: $white;
}
}
a.button-blackish {
background: $blackish;
color: $whitish;
&:hover {
background: $button-gray-hover;
color: $white;
}
span {
color: $white;
}
}
a.button-red {
background: $red-light;
&:hover {
background: $red;
color: $white;
}
span {
color: $white;
}
}
a.button-orange {
background: $orange;
&:hover {
background: lighten($orange, 10%);
color: $white;
}
span {
color: $white;
}
}
a.button-block {
background: $white;
color: $red;
&:hover {
background: $red-light;
color: $white;
}
}
a.button-bulk {
@extend %button;
background: $green-taiga;
font-size: 22px;
margin-left: 2px;
padding: .3rem .5rem;
vertical-align: middle;
.icon {
@extend %medium;
color: $white;
margin-right: 0;
}
&:hover {
@include transition (background .3s linear);
background: $fresh-taiga;
}
}