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
|
|
|
%secondary-button,
|
|
|
|
%dangerous-button {
|
2018-09-21 09:18:32 +00:00
|
|
|
@extend %button;
|
|
|
|
border-width: 1px;
|
2021-10-07 18:21:11 +00:00
|
|
|
border-radius: var(--decor-radius-100);
|
|
|
|
box-shadow: var(--decor-elevation-300);
|
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 {
|
2021-10-07 18:21:11 +00:00
|
|
|
color: rgb(var(--tone-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;
|
2021-10-07 18:21:11 +00:00
|
|
|
background-color: rgb(var(--tone-gray-200));
|
|
|
|
color: rgb(var(--tone-gray-800));
|
|
|
|
border-color: rgb(var(--tone-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-10-07 18:21:11 +00:00
|
|
|
color: rgb(var(--tone-gray-900));
|
|
|
|
background-color: rgb(var(--tone-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-10-07 18:21:11 +00:00
|
|
|
background-color: rgb(var(--tone-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;
|
2021-10-07 18:21:11 +00:00
|
|
|
background-color: rgb(var(--tone-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;
|
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;
|
|
|
|
}
|