2015-10-05 15:18:21 -04:00
|
|
|
@mixin btn-default {
|
2015-09-25 14:33:05 -04:00
|
|
|
@include border-radius(2px);
|
|
|
|
border-width: 1px;
|
|
|
|
border-style: solid;
|
|
|
|
text-transform: uppercase;
|
|
|
|
font-size: 13px;
|
|
|
|
font-weight: 600;
|
|
|
|
line-height: 18px;
|
2015-10-13 05:33:46 -04:00
|
|
|
padding: 11px $gl-padding;
|
2015-09-25 14:33:05 -04:00
|
|
|
letter-spacing: .4px;
|
2015-10-07 11:21:15 -04:00
|
|
|
|
2015-10-08 07:29:14 -04:00
|
|
|
&:focus,
|
2015-09-25 14:33:05 -04:00
|
|
|
&:active {
|
2015-10-08 07:29:14 -04:00
|
|
|
outline: none;
|
2015-09-25 14:33:05 -04:00
|
|
|
@include box-shadow(inset 0 0 4px rgba(0, 0, 0, 0.12));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin btn-middle {
|
2015-10-08 07:29:14 -04:00
|
|
|
@include btn-default;
|
2015-09-25 14:33:05 -04:00
|
|
|
@include border-radius(2px);
|
|
|
|
padding: 11px 24px;
|
|
|
|
}
|
|
|
|
|
2015-10-08 07:29:14 -04:00
|
|
|
@mixin btn-color($light, $border-light, $normal, $border-normal, $dark, $border-dark, $color) {
|
|
|
|
background-color: $light;
|
|
|
|
border-color: $border-light;
|
|
|
|
color: $color;
|
2015-09-25 14:33:05 -04:00
|
|
|
|
2015-10-08 07:29:14 -04:00
|
|
|
&:hover,
|
2015-10-07 11:21:15 -04:00
|
|
|
&:focus {
|
2015-10-08 07:29:14 -04:00
|
|
|
background-color: $normal;
|
|
|
|
border-color: $border-normal;
|
|
|
|
color: $color;
|
2015-10-07 11:21:15 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
@include box-shadow (inset 0 0 4px rgba(0, 0, 0, 0.12));
|
|
|
|
|
2015-10-08 07:29:14 -04:00
|
|
|
background-color: $dark;
|
|
|
|
border-color: $border-dark;
|
|
|
|
color: $color;
|
2015-10-07 11:21:15 -04:00
|
|
|
}
|
|
|
|
}
|
2015-09-25 14:33:05 -04:00
|
|
|
|
2015-10-08 07:29:14 -04:00
|
|
|
@mixin btn-green {
|
|
|
|
@include btn-color($green-light, $border-green-light, $green-normal, $border-green-normal, $green-dark, $border-green-dark, #FFFFFF);
|
2015-10-05 15:18:21 -04:00
|
|
|
}
|
|
|
|
|
2015-10-08 07:29:14 -04:00
|
|
|
@mixin btn-blue {
|
|
|
|
@include btn-color($blue-light, $border-blue-light, $blue-normal, $border-blue-normal, $blue-dark, $border-blue-dark, #FFFFFF);
|
|
|
|
}
|
2015-10-07 11:21:15 -04:00
|
|
|
|
2015-10-08 07:29:14 -04:00
|
|
|
@mixin btn-orange {
|
|
|
|
@include btn-color($orange-light, $border-orange-light, $orange-normal, $border-orange-normal, $orange-dark, $border-orange-dark, #FFFFFF);
|
2015-09-25 14:33:05 -04:00
|
|
|
}
|
|
|
|
|
2015-10-07 11:21:15 -04:00
|
|
|
@mixin btn-red {
|
2015-10-08 07:29:14 -04:00
|
|
|
@include btn-color($red-light, $border-red-light, $red-normal, $border-red-normal, $red-dark, $border-red-dark, #FFFFFF);
|
|
|
|
}
|
2015-10-07 11:21:15 -04:00
|
|
|
|
2015-10-08 07:29:14 -04:00
|
|
|
@mixin btn-gray {
|
|
|
|
@include btn-color($gray-light, $border-gray-light, $gray-normal, $border-gray-normal, $gray-dark, $border-gray-dark, #313236);
|
|
|
|
}
|
2015-10-07 11:21:15 -04:00
|
|
|
|
2015-10-08 07:29:14 -04:00
|
|
|
@mixin btn-white {
|
|
|
|
@include btn-color($white-light, $border-white-light, $white-normal, $border-white-normal, $white-dark, $border-white-dark, #313236);
|
2015-10-05 15:18:21 -04:00
|
|
|
}
|
|
|
|
|
2015-10-07 11:21:15 -04:00
|
|
|
.btn {
|
2015-10-05 15:18:21 -04:00
|
|
|
@include btn-default;
|
2015-10-07 11:21:15 -04:00
|
|
|
@include btn-white;
|
2015-10-05 15:18:21 -04:00
|
|
|
|
2015-10-13 05:33:46 -04:00
|
|
|
&.btn-sm {
|
|
|
|
padding: 5px 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.btn-xs {
|
|
|
|
padding: 1px 5px;
|
|
|
|
}
|
|
|
|
|
2015-10-07 11:32:00 -04:00
|
|
|
&.btn-success,
|
|
|
|
&.btn-new,
|
|
|
|
&.btn-create,
|
|
|
|
&.btn-save,
|
|
|
|
&.btn-green {
|
2015-10-07 11:21:15 -04:00
|
|
|
@include btn-green;
|
|
|
|
}
|
2015-10-05 15:18:21 -04:00
|
|
|
|
2015-10-07 11:21:15 -04:00
|
|
|
&.btn-gray {
|
|
|
|
@include btn-gray;
|
|
|
|
}
|
2015-10-05 15:18:21 -04:00
|
|
|
|
2015-10-08 07:29:14 -04:00
|
|
|
&.btn-primary,
|
|
|
|
&.btn-info {
|
|
|
|
@include btn-blue;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.btn-warning {
|
|
|
|
@include btn-orange;
|
|
|
|
}
|
|
|
|
|
2015-10-07 11:32:00 -04:00
|
|
|
&.btn-danger,
|
|
|
|
&.btn-remove,
|
|
|
|
&.btn-red {
|
|
|
|
@include btn-red;
|
2015-10-05 15:18:21 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
&.btn-cancel {
|
|
|
|
float: right;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.btn-close {
|
|
|
|
color: $gl-danger;
|
|
|
|
border-color: $gl-danger;
|
|
|
|
&:hover {
|
|
|
|
color: #B94A48;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.btn-reopen {
|
|
|
|
color: $gl-success;
|
|
|
|
border-color: $gl-success;
|
|
|
|
&:hover {
|
|
|
|
color: #468847;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.btn-grouped {
|
|
|
|
margin-right: 7px;
|
|
|
|
float: left;
|
|
|
|
&:last-child {
|
|
|
|
margin-right: 0px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn-block {
|
|
|
|
width: 100%;
|
|
|
|
margin: 0;
|
|
|
|
margin-bottom: 15px;
|
|
|
|
&.btn {
|
|
|
|
padding: 6px 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn-group {
|
|
|
|
&.btn-grouped {
|
|
|
|
margin-right: 7px;
|
|
|
|
float: left;
|
|
|
|
&:last-child {
|
|
|
|
margin-right: 0px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn-group-next {
|
|
|
|
.btn {
|
|
|
|
padding: 9px 0px;
|
|
|
|
font-size: 15px;
|
|
|
|
color: #7f8fa4;
|
|
|
|
border-color: #e7e9ed;
|
|
|
|
width: 140px;
|
|
|
|
|
2015-10-21 05:10:09 -04:00
|
|
|
.badge {
|
|
|
|
font-weight: normal;
|
|
|
|
background-color: #eee;
|
|
|
|
color: #78a;
|
|
|
|
}
|
|
|
|
|
2015-10-05 15:18:21 -04:00
|
|
|
&.active {
|
|
|
|
border-color: $gl-info;
|
|
|
|
background: $gl-info;
|
|
|
|
color: #fff;
|
2015-10-21 05:10:09 -04:00
|
|
|
|
|
|
|
.badge {
|
|
|
|
color: $gl-info;
|
|
|
|
background-color: white;
|
|
|
|
}
|
2015-10-05 15:18:21 -04:00
|
|
|
}
|
|
|
|
}
|
2015-10-07 11:21:15 -04:00
|
|
|
}
|
2015-11-03 09:44:52 -05:00
|
|
|
|
|
|
|
.btn-clipboard {
|
|
|
|
border: none;
|
|
|
|
}
|