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;
|
2020-06-09 10:10:14 +00:00
|
|
|
text-decoration: none;
|
2018-08-29 11:11:58 +00:00
|
|
|
}
|
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;
|
2020-03-05 14:16:48 +00:00
|
|
|
box-shadow: $decor-elevation-300;
|
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 {
|
2021-01-26 17:40:33 +00:00
|
|
|
color: var(--gray-900);
|
|
|
|
background-color: var(--gray-000);
|
2019-12-17 18:47:37 +00:00
|
|
|
}
|
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 {
|
2021-01-26 17:40:33 +00:00
|
|
|
background-color: var(--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;
|
|
|
|
}
|
2020-05-11 14:04:27 +00:00
|
|
|
|
|
|
|
%split-button span::after {
|
|
|
|
@extend %as-pseudo;
|
|
|
|
position: absolute;
|
|
|
|
width: 1px;
|
|
|
|
top: 0;
|
|
|
|
height: 100%;
|
|
|
|
margin-left: 8px;
|
2020-08-10 15:00:05 +00:00
|
|
|
background-color: $gray-300;
|
2020-05-11 14:04:27 +00:00
|
|
|
}
|
|
|
|
%sort-button::before {
|
2020-08-10 15:00:05 +00:00
|
|
|
@extend %with-sort-mask, %as-pseudo;
|
|
|
|
position: relative;
|
|
|
|
top: 4px;
|
2020-05-11 14:04:27 +00:00
|
|
|
width: 16px;
|
|
|
|
height: 16px;
|
|
|
|
}
|
2020-08-10 15:00:05 +00:00
|
|
|
%sort-button::after {
|
|
|
|
top: 0 !important;
|
|
|
|
}
|