2018-08-29 11:11:58 +00:00
|
|
|
/* decor */
|
|
|
|
%button {
|
|
|
|
@extend %user-select-none;
|
|
|
|
cursor: pointer;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
2018-09-21 09:18:32 +00:00
|
|
|
%button:disabled {
|
|
|
|
cursor: default;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
%copy-button {
|
|
|
|
@extend %button, %with-clipboard;
|
2018-10-19 15:17:02 +00:00
|
|
|
min-height: 17px;
|
|
|
|
}
|
|
|
|
%copy-button:not(:empty) {
|
|
|
|
padding-left: 38px !important;
|
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;
|
2018-08-29 11:11:58 +00:00
|
|
|
border-radius: $radius-small;
|
|
|
|
box-shadow: 0 3px 1px 0 rgba($ui-black, 0.12);
|
|
|
|
}
|
|
|
|
/* color */
|
|
|
|
%copy-button {
|
2018-09-21 09:18:32 +00:00
|
|
|
color: $ui-color-action;
|
|
|
|
background-color: $ui-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 {
|
|
|
|
color: $ui-color-action;
|
|
|
|
background-color: $ui-gray-050;
|
2018-08-29 11:11:58 +00:00
|
|
|
}
|
2018-09-21 09:18:32 +00:00
|
|
|
%copy-button:disabled {
|
2018-08-29 11:11:58 +00:00
|
|
|
}
|
2018-09-21 09:18:32 +00:00
|
|
|
%copy-button:active {
|
|
|
|
background-color: $ui-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 {
|
|
|
|
/* %frame-gray-something */
|
|
|
|
color: $ui-gray-800;
|
|
|
|
background-color: $ui-gray-050;
|
|
|
|
border-color: $ui-gray-300;
|
|
|
|
border-style: solid;
|
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 {
|
|
|
|
/* %frame-gray-something */
|
2018-08-29 11:11:58 +00:00
|
|
|
background-color: $ui-white;
|
2018-09-21 09:18:32 +00:00
|
|
|
color: $ui-gray-800;
|
|
|
|
border-color: $ui-gray-700;
|
2018-08-29 11:11:58 +00:00
|
|
|
}
|
2018-09-21 09:18:32 +00:00
|
|
|
%secondary-button:disabled {
|
|
|
|
color: $ui-gray-600;
|
2018-08-29 11:11:58 +00:00
|
|
|
}
|
2018-09-21 09:18:32 +00:00
|
|
|
%secondary-button:active {
|
|
|
|
/* %frame-gray-something */
|
|
|
|
background-color: $ui-gray-200;
|
|
|
|
color: $ui-gray-800;
|
|
|
|
border-color: $ui-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
|
|
|
}
|