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;
|
|
|
|
}
|
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 */
|
|
|
|
%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;
|
|
|
|
}
|