2018-08-29 11:11:58 +00:00
|
|
|
/* decor */
|
2019-11-25 17:43:25 +00:00
|
|
|
%button,
|
|
|
|
%internal-button {
|
2018-08-29 11:11:58 +00:00
|
|
|
@extend %user-select-none;
|
|
|
|
cursor: pointer;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
2019-11-25 17:43:25 +00:00
|
|
|
%button:disabled,
|
|
|
|
%internal-button:disabled {
|
2018-09-21 09:18:32 +00:00
|
|
|
cursor: default;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
%copy-button {
|
2019-06-14 17:27:37 +00:00
|
|
|
@extend %button;
|
2018-10-19 15:17:02 +00:00
|
|
|
min-height: 17px;
|
|
|
|
}
|
2019-06-14 17:27:37 +00:00
|
|
|
%copy-button::before {
|
2020-01-16 09:10:32 +00:00
|
|
|
@extend %with-copy-action-mask, %as-pseudo;
|
|
|
|
background-color: $gray-500;
|
2019-06-14 17:27:37 +00:00
|
|
|
}
|
2020-01-16 09:10:32 +00:00
|
|
|
%copy-button:not(:empty)::before {
|
|
|
|
margin-right: 10px;
|
2018-08-29 11:11:58 +00:00
|
|
|
}
|
|
|
|
%primary-button,
|
|
|
|
%secondary-button,
|
|
|
|
%dangerous-button {
|
2018-09-21 09:18:32 +00:00
|
|
|
@extend %button;
|
|
|
|
border-width: 1px;
|
2019-06-14 17:27:37 +00:00
|
|
|
border-radius: $decor-radius-100;
|
2018-11-09 15:28:26 +00:00
|
|
|
box-shadow: 0 3px 1px 0 rgba($black, 0.12);
|
2018-08-29 11:11:58 +00:00
|
|
|
}
|
|
|
|
/* color */
|
|
|
|
%copy-button {
|
2018-11-09 15:28:26 +00:00
|
|
|
color: $color-action;
|
|
|
|
background-color: $color-transparent;
|
2018-08-29 11:11:58 +00:00
|
|
|
}
|
2018-09-21 09:18:32 +00:00
|
|
|
%copy-button:hover:not(:disabled):not(:active),
|
|
|
|
%copy-button:focus {
|
2018-11-09 15:28:26 +00:00
|
|
|
/*frame-grey frame-blue*/
|
|
|
|
color: $color-action;
|
|
|
|
background-color: $gray-050;
|
2018-08-29 11:11:58 +00:00
|
|
|
}
|
2020-01-16 09:10:32 +00:00
|
|
|
%copy-button:hover::before {
|
|
|
|
background-color: $blue-500;
|
2018-08-29 11:11:58 +00:00
|
|
|
}
|
2018-09-21 09:18:32 +00:00
|
|
|
%copy-button:active {
|
2018-11-09 15:28:26 +00:00
|
|
|
background-color: $gray-200;
|
2018-08-29 11:11:58 +00:00
|
|
|
}
|
|
|
|
%primary-button {
|
2018-09-21 09:18:32 +00:00
|
|
|
@extend %frame-blue-800;
|
2018-08-29 11:11:58 +00:00
|
|
|
}
|
2018-09-21 09:18:32 +00:00
|
|
|
%primary-button:hover:not(:disabled):not(:active),
|
2018-08-29 11:11:58 +00:00
|
|
|
%primary-button:focus {
|
2018-09-21 09:18:32 +00:00
|
|
|
@extend %frame-blue-700;
|
2018-08-29 11:11:58 +00:00
|
|
|
}
|
|
|
|
%primary-button:disabled {
|
2018-09-21 09:18:32 +00:00
|
|
|
@extend %frame-blue-600;
|
2018-08-29 11:11:58 +00:00
|
|
|
}
|
2018-09-21 09:18:32 +00:00
|
|
|
%primary-button:hover:active {
|
|
|
|
@extend %frame-blue-900;
|
2018-08-29 11:11:58 +00:00
|
|
|
}
|
2018-09-21 09:18:32 +00:00
|
|
|
/**/
|
|
|
|
%secondary-button:hover:not(:disabled):not(:active),
|
|
|
|
%secondary-button:focus {
|
2018-11-09 15:28:26 +00:00
|
|
|
@extend %frame-gray-300;
|
|
|
|
}
|
|
|
|
%secondary-button {
|
|
|
|
@extend %frame-gray-400;
|
2018-08-29 11:11:58 +00:00
|
|
|
}
|
2018-09-21 09:18:32 +00:00
|
|
|
%secondary-button:disabled {
|
2018-11-09 15:28:26 +00:00
|
|
|
color: $gray-600;
|
2018-08-29 11:11:58 +00:00
|
|
|
}
|
2018-09-21 09:18:32 +00:00
|
|
|
%secondary-button:active {
|
|
|
|
/* %frame-gray-something */
|
2018-11-09 15:28:26 +00:00
|
|
|
@extend %frame-gray-700;
|
|
|
|
background-color: $gray-200;
|
|
|
|
color: $gray-800;
|
|
|
|
border-color: $gray-700;
|
2018-08-29 11:11:58 +00:00
|
|
|
}
|
2018-09-21 09:18:32 +00:00
|
|
|
/**/
|
|
|
|
%dangerous-button {
|
|
|
|
@extend %frame-red-300;
|
2018-08-29 11:11:58 +00:00
|
|
|
}
|
2018-09-21 09:18:32 +00:00
|
|
|
%dangerous-button:hover:not(:disabled):not(:active),
|
|
|
|
%dangerous-button:focus {
|
|
|
|
@extend %frame-red-700;
|
|
|
|
}
|
|
|
|
%dangerous-button:disabled {
|
|
|
|
@extend %frame-red-600;
|
|
|
|
}
|
|
|
|
%dangerous-button:hover:active {
|
|
|
|
@extend %frame-red-900;
|
2018-08-29 11:11:58 +00:00
|
|
|
}
|
2019-11-25 17:43:25 +00:00
|
|
|
|
2019-12-17 18:47:37 +00:00
|
|
|
%internal-button {
|
|
|
|
color: $gray-900;
|
|
|
|
}
|
2019-11-25 17:43:25 +00:00
|
|
|
%internal-button-dangerous {
|
|
|
|
@extend %frame-red-300;
|
|
|
|
}
|
|
|
|
%internal-button-dangerous-intent {
|
|
|
|
@extend %frame-red-700;
|
|
|
|
}
|
|
|
|
%internal-button-intent {
|
2019-12-17 18:47:37 +00:00
|
|
|
background-color: $gray-050;
|
2019-11-25 17:43:25 +00:00
|
|
|
}
|
|
|
|
%internal-button:focus,
|
|
|
|
%internal-button:hover {
|
|
|
|
@extend %internal-button-intent;
|
|
|
|
}
|
|
|
|
%internal-button-dangerous:focus,
|
|
|
|
%internal-button-dangerous:hover {
|
|
|
|
@extend %internal-button-dangerous-intent;
|
|
|
|
}
|