2015-10-24 18:46:33 +05:30
|
|
|
@mixin btn-default {
|
2016-01-14 18:37:52 +05:30
|
|
|
@include border-radius(3px);
|
2016-01-19 16:12:03 +05:30
|
|
|
font-size: $gl-font-size;
|
2016-01-14 18:37:52 +05:30
|
|
|
font-weight: 500;
|
2016-01-19 16:12:03 +05:30
|
|
|
padding: $gl-vert-padding $gl-padding;
|
2015-10-24 18:46:33 +05:30
|
|
|
|
|
|
|
&:focus,
|
|
|
|
&:active {
|
|
|
|
outline: none;
|
|
|
|
@include box-shadow(inset 0 0 4px rgba(0, 0, 0, 0.12));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin btn-middle {
|
|
|
|
@include btn-default;
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin btn-color($light, $border-light, $normal, $border-normal, $dark, $border-dark, $color) {
|
|
|
|
background-color: $light;
|
|
|
|
border-color: $border-light;
|
|
|
|
color: $color;
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
background-color: $normal;
|
|
|
|
border-color: $border-normal;
|
|
|
|
color: $color;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
@include box-shadow (inset 0 0 4px rgba(0, 0, 0, 0.12));
|
|
|
|
|
|
|
|
background-color: $dark;
|
|
|
|
border-color: $border-dark;
|
|
|
|
color: $color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin btn-green {
|
|
|
|
@include btn-color($green-light, $border-green-light, $green-normal, $border-green-normal, $green-dark, $border-green-dark, #FFFFFF);
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin btn-blue {
|
|
|
|
@include btn-color($blue-light, $border-blue-light, $blue-normal, $border-blue-normal, $blue-dark, $border-blue-dark, #FFFFFF);
|
|
|
|
}
|
|
|
|
|
2016-01-14 18:37:52 +05:30
|
|
|
@mixin btn-blue-medium {
|
|
|
|
@include btn-color($blue-medium-light, $border-blue-light, $blue-medium, $border-blue-normal, $blue-medium-dark, $border-blue-dark, #FFFFFF);
|
|
|
|
}
|
|
|
|
|
2015-10-24 18:46:33 +05:30
|
|
|
@mixin btn-orange {
|
|
|
|
@include btn-color($orange-light, $border-orange-light, $orange-normal, $border-orange-normal, $orange-dark, $border-orange-dark, #FFFFFF);
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin btn-red {
|
|
|
|
@include btn-color($red-light, $border-red-light, $red-normal, $border-red-normal, $red-dark, $border-red-dark, #FFFFFF);
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin btn-gray {
|
2016-01-14 18:37:52 +05:30
|
|
|
@include btn-color($gray-light, $border-gray-light, $gray-normal, $border-gray-light, $gray-dark, $border-gray-dark, #313236);
|
2015-10-24 18:46:33 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
@mixin btn-white {
|
|
|
|
@include btn-color($white-light, $border-white-light, $white-normal, $border-white-normal, $white-dark, $border-white-dark, #313236);
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn {
|
|
|
|
@include btn-default;
|
|
|
|
@include btn-white;
|
|
|
|
|
2016-01-19 16:12:03 +05:30
|
|
|
&.btn-small,
|
2015-10-24 18:46:33 +05:30
|
|
|
&.btn-sm {
|
2016-01-19 16:12:03 +05:30
|
|
|
padding: 4px 10px;
|
|
|
|
font-size: 13px;
|
|
|
|
line-height: 18px;
|
2016-01-14 18:37:52 +05:30
|
|
|
}
|
|
|
|
|
2015-10-24 18:46:33 +05:30
|
|
|
&.btn-xs {
|
2016-01-19 16:12:03 +05:30
|
|
|
padding: 2px 5px;
|
2015-10-24 18:46:33 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
&.btn-success,
|
|
|
|
&.btn-new,
|
|
|
|
&.btn-create,
|
|
|
|
&.btn-save,
|
|
|
|
&.btn-green {
|
|
|
|
@include btn-green;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.btn-gray {
|
|
|
|
@include btn-gray;
|
|
|
|
}
|
|
|
|
|
2016-01-14 18:37:52 +05:30
|
|
|
&.btn-primary {
|
|
|
|
@include btn-blue-medium;
|
|
|
|
}
|
|
|
|
|
2015-10-24 18:46:33 +05:30
|
|
|
&.btn-info {
|
|
|
|
@include btn-blue;
|
|
|
|
}
|
|
|
|
|
2016-01-14 18:37:52 +05:30
|
|
|
&.btn-close,
|
2015-10-24 18:46:33 +05:30
|
|
|
&.btn-warning {
|
|
|
|
@include btn-orange;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.btn-danger,
|
|
|
|
&.btn-remove,
|
|
|
|
&.btn-red {
|
|
|
|
@include btn-red;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.btn-cancel {
|
|
|
|
float: right;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.btn-reopen {
|
2016-01-14 18:37:52 +05:30
|
|
|
/* should be same as parent class for now */
|
2015-10-24 18:46:33 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
&.btn-grouped {
|
|
|
|
margin-right: 7px;
|
|
|
|
float: left;
|
|
|
|
&:last-child {
|
|
|
|
margin-right: 0px;
|
|
|
|
}
|
2016-01-19 16:12:03 +05:30
|
|
|
&.btn-xs {
|
|
|
|
margin-right: 3px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.disabled {
|
|
|
|
pointer-events: auto !important;
|
2015-10-24 18:46:33 +05:30
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-01-19 16:12:03 +05:30
|
|
|
.btn-clipboard {
|
|
|
|
border: none;
|
|
|
|
padding: 0 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.input-group-btn {
|
2015-10-24 18:46:33 +05:30
|
|
|
.btn {
|
2016-01-19 16:12:03 +05:30
|
|
|
@include btn-gray;
|
|
|
|
@include btn-middle;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
outline: none;
|
2015-11-26 14:37:03 +05:30
|
|
|
}
|
|
|
|
|
2016-01-19 16:12:03 +05:30
|
|
|
&:focus {
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
outline: none;
|
|
|
|
}
|
2015-11-26 14:37:03 +05:30
|
|
|
|
2016-01-19 16:12:03 +05:30
|
|
|
&.btn-clipboard {
|
|
|
|
padding-left: 15px;
|
|
|
|
padding-right: 15px;
|
2015-10-24 18:46:33 +05:30
|
|
|
}
|
|
|
|
}
|
2015-11-26 14:37:03 +05:30
|
|
|
|
2016-01-19 16:12:03 +05:30
|
|
|
.active {
|
|
|
|
@include box-shadow(inset 0 0 4px rgba(0, 0, 0, 0.12));
|
|
|
|
|
|
|
|
border: 1px solid #c6cacf !important;
|
|
|
|
background-color: #e4e7ed !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn-green {
|
|
|
|
@include btn-green
|
|
|
|
}
|
2015-11-26 14:37:03 +05:30
|
|
|
}
|