2015-10-05 19:18:21 +00:00
|
|
|
@mixin btn-default {
|
2016-09-09 16:59:36 +00:00
|
|
|
border-radius: 3px;
|
2016-01-14 12:59:28 +00:00
|
|
|
font-size: $gl-font-size;
|
2016-12-09 15:46:03 +00:00
|
|
|
font-weight: 400;
|
2016-02-02 19:27:45 +00:00
|
|
|
padding: $gl-vert-padding $gl-btn-padding;
|
2015-10-07 15:21:15 +00:00
|
|
|
|
2015-10-08 11:29:14 +00:00
|
|
|
&:focus,
|
2015-09-25 18:33:05 +00:00
|
|
|
&:active {
|
2016-04-01 19:27:39 +00:00
|
|
|
background-color: $btn-active-gray;
|
2016-09-09 16:59:36 +00:00
|
|
|
box-shadow: $gl-btn-active-background;
|
2015-09-25 18:33:05 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin btn-middle {
|
2015-10-08 11:29:14 +00:00
|
|
|
@include btn-default;
|
2015-09-25 18:33:05 +00:00
|
|
|
}
|
|
|
|
|
2016-11-28 16:38:05 +00:00
|
|
|
@mixin btn-outline($background, $text, $border, $hover-background, $hover-text, $hover-border, $active-background, $active-border) {
|
2016-05-31 17:14:55 +00:00
|
|
|
background-color: $background;
|
|
|
|
color: $text;
|
|
|
|
border-color: $border;
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
background-color: $hover-background;
|
2016-10-14 20:39:08 +00:00
|
|
|
border-color: $hover-border;
|
2016-11-28 16:38:05 +00:00
|
|
|
color: $hover-text;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
background-color: $active-background;
|
|
|
|
border-color: $active-border;
|
|
|
|
color: $hover-text;
|
2016-05-31 17:14:55 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-10-08 11:29:14 +00: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 18:33:05 +00:00
|
|
|
|
2015-10-08 11:29:14 +00:00
|
|
|
&:hover,
|
2015-10-07 15:21:15 +00:00
|
|
|
&:focus {
|
2015-10-08 11:29:14 +00:00
|
|
|
background-color: $normal;
|
|
|
|
border-color: $border-normal;
|
|
|
|
color: $color;
|
2015-10-07 15:21:15 +00:00
|
|
|
}
|
|
|
|
|
2016-04-01 19:27:39 +00:00
|
|
|
&:active,
|
|
|
|
&.active {
|
2016-09-09 16:59:36 +00:00
|
|
|
box-shadow: $gl-btn-active-background;
|
2015-10-07 15:21:15 +00:00
|
|
|
|
2015-10-08 11:29:14 +00:00
|
|
|
background-color: $dark;
|
|
|
|
border-color: $border-dark;
|
|
|
|
color: $color;
|
2015-10-07 15:21:15 +00:00
|
|
|
}
|
2016-07-14 15:48:01 +00:00
|
|
|
|
|
|
|
svg {
|
|
|
|
|
|
|
|
path {
|
2016-07-15 14:23:41 +00:00
|
|
|
fill: $color;
|
2016-07-14 15:48:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
use {
|
2016-07-15 14:23:41 +00:00
|
|
|
stroke: $color;
|
2016-07-14 15:48:01 +00:00
|
|
|
}
|
|
|
|
}
|
2015-10-07 15:21:15 +00:00
|
|
|
}
|
2015-09-25 18:33:05 +00:00
|
|
|
|
2015-10-08 11:29:14 +00:00
|
|
|
@mixin btn-green {
|
2017-03-23 16:04:25 +00:00
|
|
|
@include btn-color($green-500, $green-600, $green-600, $green-700, $green-700, $green-800, $white-light);
|
2015-10-05 19:18:21 +00:00
|
|
|
}
|
|
|
|
|
2015-10-08 11:29:14 +00:00
|
|
|
@mixin btn-blue {
|
2017-03-23 16:04:25 +00:00
|
|
|
@include btn-color($blue-500, $blue-600, $blue-600, $blue-700, $blue-700, $blue-800, $white-light);
|
2015-12-22 21:33:46 +00:00
|
|
|
}
|
|
|
|
|
2015-10-08 11:29:14 +00:00
|
|
|
@mixin btn-orange {
|
2017-03-23 16:04:25 +00:00
|
|
|
@include btn-color($orange-500, $orange-600, $orange-600, $orange-700, $orange-700, $orange-800, $white-light);
|
2015-09-25 18:33:05 +00:00
|
|
|
}
|
|
|
|
|
2015-10-07 15:21:15 +00:00
|
|
|
@mixin btn-red {
|
2017-03-23 16:04:25 +00:00
|
|
|
@include btn-color($red-500, $red-600, $red-600, $red-700, $red-700, $red-800, $white-light);
|
2015-10-08 11:29:14 +00:00
|
|
|
}
|
2015-10-07 15:21:15 +00:00
|
|
|
|
2015-10-08 11:29:14 +00:00
|
|
|
@mixin btn-gray {
|
2016-12-30 20:18:27 +00:00
|
|
|
@include btn-color($gray-light, $border-gray-normal, $gray-normal, $border-gray-normal, $gray-dark, $border-gray-dark, $gl-text-color);
|
2015-10-08 11:29:14 +00:00
|
|
|
}
|
2015-10-07 15:21:15 +00:00
|
|
|
|
2015-10-08 11:29:14 +00:00
|
|
|
@mixin btn-white {
|
2016-12-12 22:26:21 +00:00
|
|
|
@include btn-color($white-light, $border-color, $white-normal, $border-white-normal, $white-dark, $border-gray-dark, $gl-text-color);
|
2015-10-05 19:18:21 +00:00
|
|
|
}
|
|
|
|
|
2016-06-08 15:06:28 +00:00
|
|
|
@mixin btn-with-margin {
|
|
|
|
margin-left: $btn-side-margin;
|
|
|
|
float: left;
|
|
|
|
|
|
|
|
&.inline {
|
|
|
|
float: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.btn-sm {
|
|
|
|
margin-left: $btn-sm-side-margin;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.btn-xs {
|
|
|
|
margin-left: $btn-xs-side-margin;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-10-07 15:21:15 +00:00
|
|
|
.btn {
|
2015-10-05 19:18:21 +00:00
|
|
|
@include btn-default;
|
2015-10-07 15:21:15 +00:00
|
|
|
@include btn-white;
|
2015-10-05 19:18:21 +00:00
|
|
|
|
2016-02-20 02:46:18 +00:00
|
|
|
color: $gl-text-color;
|
|
|
|
|
2016-02-22 14:58:04 +00:00
|
|
|
&:focus:active {
|
|
|
|
outline: 0;
|
|
|
|
}
|
|
|
|
|
2016-01-14 12:59:28 +00:00
|
|
|
&.btn-small,
|
2015-10-13 09:33:46 +00:00
|
|
|
&.btn-sm {
|
2016-01-14 12:59:28 +00:00
|
|
|
padding: 4px 10px;
|
|
|
|
font-size: 13px;
|
|
|
|
line-height: 18px;
|
2015-12-22 20:22:37 +00:00
|
|
|
}
|
2015-10-13 09:33:46 +00:00
|
|
|
|
|
|
|
&.btn-xs {
|
2016-01-14 12:59:28 +00:00
|
|
|
padding: 2px 5px;
|
2015-10-13 09:33:46 +00:00
|
|
|
}
|
|
|
|
|
2015-10-07 15:32:00 +00:00
|
|
|
&.btn-success,
|
|
|
|
&.btn-new,
|
|
|
|
&.btn-create,
|
2016-02-03 00:08:30 +00:00
|
|
|
&.btn-save {
|
2015-10-07 15:21:15 +00:00
|
|
|
@include btn-green;
|
|
|
|
}
|
2015-10-05 19:18:21 +00:00
|
|
|
|
2016-07-23 00:15:08 +00:00
|
|
|
&.btn-inverted {
|
|
|
|
&.btn-success,
|
|
|
|
&.btn-new,
|
|
|
|
&.btn-create,
|
|
|
|
&.btn-save {
|
2017-03-23 16:04:25 +00:00
|
|
|
@include btn-outline($white-light, $green-600, $green-500, $green-500, $white-light, $green-600, $green-600, $green-700);
|
2016-07-23 00:15:08 +00:00
|
|
|
}
|
2016-09-21 14:15:12 +00:00
|
|
|
|
|
|
|
&.btn-remove {
|
2017-03-23 16:04:25 +00:00
|
|
|
@include btn-outline($white-light, $red-500, $red-500, $red-500, $white-light, $red-600, $red-600, $red-700);
|
2016-09-21 14:15:12 +00:00
|
|
|
}
|
2016-07-23 00:15:08 +00:00
|
|
|
}
|
|
|
|
|
2015-10-07 15:21:15 +00:00
|
|
|
&.btn-gray {
|
|
|
|
@include btn-gray;
|
|
|
|
}
|
2015-10-05 19:18:21 +00:00
|
|
|
|
2016-09-09 12:21:00 +00:00
|
|
|
&.btn-info,
|
2017-03-23 16:04:25 +00:00
|
|
|
&.btn-primary,
|
2016-09-09 12:21:00 +00:00
|
|
|
&.btn-register {
|
2015-10-08 11:29:14 +00:00
|
|
|
@include btn-blue;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.btn-warning {
|
|
|
|
@include btn-orange;
|
|
|
|
}
|
|
|
|
|
2016-05-31 17:14:55 +00:00
|
|
|
&.btn-close {
|
2017-03-23 16:04:25 +00:00
|
|
|
@include btn-outline($white-light, $orange-600, $orange-500, $orange-500, $white-light, $orange-600, $orange-600, $orange-700);
|
2016-05-31 17:14:55 +00:00
|
|
|
}
|
|
|
|
|
2016-08-02 21:21:57 +00:00
|
|
|
&.btn-spam {
|
2017-03-23 16:04:25 +00:00
|
|
|
@include btn-outline($white-light, $red-500, $red-500, $red-500, $white-light, $red-600, $red-600, $red-700);
|
2016-08-02 21:21:57 +00:00
|
|
|
}
|
|
|
|
|
2015-10-07 15:32:00 +00:00
|
|
|
&.btn-danger,
|
|
|
|
&.btn-remove,
|
|
|
|
&.btn-red {
|
|
|
|
@include btn-red;
|
2015-10-05 19:18:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&.btn-cancel {
|
|
|
|
float: right;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.btn-reopen {
|
2015-12-23 11:29:50 +00:00
|
|
|
/* should be same as parent class for now */
|
2015-10-05 19:18:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&.btn-grouped {
|
2016-06-08 15:06:28 +00:00
|
|
|
@include btn-with-margin;
|
2015-10-05 19:18:21 +00:00
|
|
|
}
|
2016-06-08 14:20:07 +00:00
|
|
|
|
2015-12-29 20:58:38 +00:00
|
|
|
&.disabled {
|
|
|
|
pointer-events: auto !important;
|
|
|
|
}
|
2016-02-20 02:46:18 +00:00
|
|
|
|
2016-04-21 14:34:00 +00:00
|
|
|
&[disabled] {
|
|
|
|
pointer-events: none !important;
|
|
|
|
}
|
|
|
|
|
2016-08-23 16:02:52 +00:00
|
|
|
.fa-caret-down,
|
2016-11-18 20:19:44 +00:00
|
|
|
.fa-chevron-down {
|
2016-02-20 02:46:18 +00:00
|
|
|
margin-left: 5px;
|
|
|
|
}
|
2016-07-14 15:48:01 +00:00
|
|
|
|
2016-08-23 16:02:52 +00:00
|
|
|
&.dropdown-toggle {
|
|
|
|
.fa-caret-down {
|
|
|
|
margin-left: 3px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-07-14 15:48:01 +00:00
|
|
|
svg {
|
2016-07-15 14:23:41 +00:00
|
|
|
height: 15px;
|
2016-08-24 14:11:29 +00:00
|
|
|
width: 15px;
|
2016-07-15 14:23:41 +00:00
|
|
|
position: relative;
|
|
|
|
top: 2px;
|
2016-07-14 15:48:01 +00:00
|
|
|
}
|
2016-08-04 22:37:32 +00:00
|
|
|
|
2016-10-24 20:22:06 +00:00
|
|
|
svg,
|
|
|
|
.fa {
|
2016-08-19 08:39:47 +00:00
|
|
|
&:not(:last-child) {
|
2016-10-28 22:47:56 +00:00
|
|
|
margin-right: 5px;
|
2016-08-19 08:39:47 +00:00
|
|
|
}
|
2016-08-04 22:37:32 +00:00
|
|
|
}
|
2015-10-05 19:18:21 +00:00
|
|
|
}
|
|
|
|
|
2016-12-15 00:59:04 +00:00
|
|
|
.btn-terminal {
|
|
|
|
svg {
|
|
|
|
height: 14px;
|
|
|
|
width: 18px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-03-11 16:14:29 +00:00
|
|
|
.btn-lg {
|
|
|
|
padding: 12px 20px;
|
|
|
|
}
|
|
|
|
|
2016-03-02 10:12:37 +00:00
|
|
|
.btn-transparent {
|
2016-12-30 20:18:27 +00:00
|
|
|
color: $gl-text-color-secondary;
|
2016-03-02 10:12:37 +00:00
|
|
|
background-color: transparent;
|
|
|
|
border: 0;
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:active,
|
|
|
|
&:focus {
|
|
|
|
background-color: transparent;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-10-05 19:18:21 +00:00
|
|
|
.btn-block {
|
|
|
|
width: 100%;
|
|
|
|
margin: 0;
|
|
|
|
margin-bottom: 15px;
|
2016-10-14 20:39:08 +00:00
|
|
|
|
2015-10-05 19:18:21 +00:00
|
|
|
&.btn {
|
|
|
|
padding: 6px 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn-group {
|
|
|
|
&.btn-grouped {
|
2016-06-08 15:06:28 +00:00
|
|
|
@include btn-with-margin;
|
2015-10-05 19:18:21 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-11-03 14:44:52 +00:00
|
|
|
.btn-clipboard {
|
|
|
|
border: none;
|
2016-01-14 12:59:28 +00:00
|
|
|
padding: 0 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.input-group-btn {
|
|
|
|
.btn {
|
|
|
|
@include btn-middle;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.btn-clipboard {
|
|
|
|
padding-left: 15px;
|
|
|
|
padding-right: 15px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.active {
|
2016-09-09 16:59:36 +00:00
|
|
|
box-shadow: $gl-btn-active-background;
|
2016-01-14 12:59:28 +00:00
|
|
|
|
2016-12-12 22:26:21 +00:00
|
|
|
border: 1px solid $border-gray-dark !important;
|
2016-11-30 13:25:25 +00:00
|
|
|
background-color: $btn-active-gray-light !important;
|
2016-01-14 12:59:28 +00:00
|
|
|
}
|
2015-11-03 14:44:52 +00:00
|
|
|
}
|
2016-03-17 12:54:02 +00:00
|
|
|
|
|
|
|
.btn-loading {
|
|
|
|
&:not(.disabled) .fa {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.fa {
|
|
|
|
margin-right: 5px;
|
|
|
|
}
|
|
|
|
}
|
2016-04-01 19:27:39 +00:00
|
|
|
|
|
|
|
.btn-text-field {
|
|
|
|
width: 100%;
|
|
|
|
text-align: left;
|
|
|
|
padding: 6px 16px;
|
|
|
|
border-color: $border-color;
|
2016-12-12 21:49:12 +00:00
|
|
|
color: $gray-darkest;
|
2016-12-12 22:26:21 +00:00
|
|
|
background-color: $gray-light;
|
2016-04-01 19:27:39 +00:00
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:active,
|
|
|
|
&:focus {
|
|
|
|
cursor: text;
|
|
|
|
box-shadow: none;
|
2017-01-12 16:27:22 +00:00
|
|
|
border-color: lighten($dropdown-input-focus-border, 20%);
|
2016-12-12 21:49:12 +00:00
|
|
|
color: $gray-darkest;
|
2016-12-12 22:26:21 +00:00
|
|
|
background-color: $gray-light;
|
2016-04-01 19:27:39 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-04-27 14:46:31 +00:00
|
|
|
.btn-build {
|
|
|
|
margin-left: 10px;
|
2016-10-14 20:39:08 +00:00
|
|
|
|
2016-04-26 18:20:58 +00:00
|
|
|
i {
|
2016-12-30 20:18:27 +00:00
|
|
|
color: $gl-text-color-secondary;
|
2016-04-26 18:20:58 +00:00
|
|
|
}
|
|
|
|
}
|
2016-06-15 22:30:55 +00:00
|
|
|
|
|
|
|
.clone-dropdown-btn a {
|
2016-06-16 18:27:25 +00:00
|
|
|
color: $dropdown-link-color;
|
2016-10-14 20:39:08 +00:00
|
|
|
|
2016-06-15 22:30:55 +00:00
|
|
|
&:hover {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
}
|
2016-06-29 20:26:02 +00:00
|
|
|
|
|
|
|
.btn-static {
|
2016-12-12 22:26:21 +00:00
|
|
|
background-color: $gray-light !important;
|
|
|
|
border: 1px solid $border-gray-normal;
|
2016-06-29 20:26:02 +00:00
|
|
|
cursor: default;
|
2016-10-14 20:39:08 +00:00
|
|
|
|
2016-06-29 20:26:02 +00:00
|
|
|
&:active {
|
2016-11-30 13:25:25 +00:00
|
|
|
-moz-box-shadow: inset 0 0 0 $white-light;
|
|
|
|
-webkit-box-shadow: inset 0 0 0 $white-light;
|
|
|
|
box-shadow: inset 0 0 0 $white-light;
|
2016-06-29 20:26:02 +00:00
|
|
|
}
|
|
|
|
}
|
2016-09-16 09:37:19 +00:00
|
|
|
|
2016-11-17 20:56:27 +00:00
|
|
|
.btn-inverted {
|
|
|
|
&-secondary {
|
2017-03-23 16:04:25 +00:00
|
|
|
@include btn-outline($white-light, $blue-500, $blue-500, $blue-500, $white-light, $blue-600, $blue-600, $blue-700);
|
2016-11-17 20:56:27 +00:00
|
|
|
}
|
2016-11-10 22:53:32 +00:00
|
|
|
}
|
|
|
|
|
2016-09-16 09:37:19 +00:00
|
|
|
@media (max-width: $screen-xs-max) {
|
|
|
|
.btn-wide-on-xs {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
2017-03-24 16:17:38 +00:00
|
|
|
|
|
|
|
.btn-blank {
|
|
|
|
padding: 0;
|
|
|
|
background: transparent;
|
|
|
|
border: 0;
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
outline: 0;
|
|
|
|
}
|
|
|
|
}
|