2019-04-16 21:35:22 +02:00
|
|
|
/*
|
|
|
|
Buttons
|
|
|
|
*/
|
|
|
|
|
2020-08-19 18:41:56 +02:00
|
|
|
.button {
|
2020-07-29 17:35:53 +02:00
|
|
|
@include H6;
|
2019-04-16 21:35:22 +02:00
|
|
|
|
|
|
|
font-weight: 500;
|
2020-07-15 15:13:40 +02:00
|
|
|
padding: 0.75rem 1rem;
|
2019-04-16 21:35:22 +02:00
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
box-sizing: border-box;
|
|
|
|
border-radius: 6px;
|
|
|
|
width: 100%;
|
2020-07-15 15:13:40 +02:00
|
|
|
transition: border-color 0.3s ease, background-color 0.3s ease;
|
2019-04-16 21:35:22 +02:00
|
|
|
|
|
|
|
&--disabled,
|
|
|
|
&[disabled] {
|
|
|
|
cursor: auto;
|
2020-07-15 15:13:40 +02:00
|
|
|
opacity: 0.5;
|
2019-04-16 21:35:22 +02:00
|
|
|
pointer-events: none;
|
|
|
|
}
|
2020-06-15 19:02:38 +02:00
|
|
|
|
|
|
|
&__icon {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
margin-right: 4px;
|
|
|
|
}
|
2019-04-16 21:35:22 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.btn-secondary {
|
2022-02-25 23:11:22 +01:00
|
|
|
color: var(--color-primary-default);
|
|
|
|
border: 1px solid var(--color-primary-muted);
|
|
|
|
background-color: var(--color-background-default);
|
2019-04-16 21:35:22 +02:00
|
|
|
|
|
|
|
&:hover {
|
2022-02-25 23:11:22 +01:00
|
|
|
border-color: var(--color-primary-default);
|
2019-04-16 21:35:22 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
2022-02-25 23:11:22 +01:00
|
|
|
background: var(--color-primary-muted);
|
|
|
|
border-color: var(--color-primary-default);
|
2019-04-16 21:35:22 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&--disabled,
|
|
|
|
&[disabled] {
|
|
|
|
opacity: 1;
|
2022-02-25 23:11:22 +01:00
|
|
|
color: var(--color-primary-muted);
|
2019-04-16 21:35:22 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn-warning {
|
2022-02-25 23:11:22 +01:00
|
|
|
color: var(--color-text-default);
|
|
|
|
border: 1px solid var(--color-warning-default);
|
|
|
|
background-color: var(--color-background-default);
|
2019-04-16 21:35:22 +02:00
|
|
|
|
|
|
|
&:hover {
|
2022-02-25 23:11:22 +01:00
|
|
|
border: 1px solid var(--color-warning-default);
|
2019-04-16 21:35:22 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
2022-02-25 23:11:22 +01:00
|
|
|
background: var(--color-warning-muted);
|
|
|
|
border: 1px solid var(--color-warning-alternative);
|
2019-04-16 21:35:22 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&--disabled,
|
|
|
|
&[disabled] {
|
|
|
|
opacity: 1;
|
2022-02-25 23:11:22 +01:00
|
|
|
color: var(--color-text-muted);
|
2019-04-16 21:35:22 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn-danger {
|
2022-02-25 23:11:22 +01:00
|
|
|
color: var(--color-error-default);
|
|
|
|
border: 1px solid var(--color-error-muted);
|
|
|
|
background-color: var(--color-background-default);
|
2019-04-16 21:35:22 +02:00
|
|
|
|
|
|
|
&:hover {
|
2022-02-25 23:11:22 +01:00
|
|
|
border-color: var(--color-error-default);
|
2019-04-16 21:35:22 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
2022-02-25 23:11:22 +01:00
|
|
|
background: var(--color-error-muted);
|
|
|
|
border-color: var(--color-error-default);
|
2019-04-16 21:35:22 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&--disabled,
|
|
|
|
&[disabled] {
|
|
|
|
opacity: 1;
|
2022-02-25 23:11:22 +01:00
|
|
|
color: var(--color-error-disabled);
|
2019-04-16 21:35:22 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn-danger-primary {
|
2022-02-25 23:11:22 +01:00
|
|
|
color: var(--color-error-inverse);
|
|
|
|
border: 1px solid;
|
|
|
|
border-color: var(--color-error-default);
|
|
|
|
background-color: var(--color-error-default);
|
2019-04-16 21:35:22 +02:00
|
|
|
|
|
|
|
&:hover {
|
2022-02-25 23:11:22 +01:00
|
|
|
border-color: var(--color-error-alternative);
|
|
|
|
background-color: var(--color-error-alternative);
|
2019-04-16 21:35:22 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
2022-02-25 23:11:22 +01:00
|
|
|
background: var(--color-error-alternative0);
|
|
|
|
border-color: var(--color-error-alternative);
|
2019-04-16 21:35:22 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&--disabled,
|
|
|
|
&[disabled] {
|
|
|
|
opacity: 1;
|
2022-02-25 23:11:22 +01:00
|
|
|
border-color: var(--color-error-disabled);
|
|
|
|
background-color: var(--color-error-disabled);
|
2019-04-16 21:35:22 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn-default {
|
2022-02-25 23:11:22 +01:00
|
|
|
color: var(--color-text-alternative);
|
|
|
|
border: 1px solid var(--color-border-default);
|
|
|
|
background: var(--color-background-default);
|
2019-04-16 21:35:22 +02:00
|
|
|
|
|
|
|
&:hover {
|
2022-02-25 23:11:22 +01:00
|
|
|
border-color: var(--color-border-default);
|
2019-04-16 21:35:22 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
2022-02-25 23:11:22 +01:00
|
|
|
background: var(--color-background-alternative);
|
|
|
|
border-color: var(--color-border-default);
|
2019-04-16 21:35:22 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&--disabled,
|
|
|
|
&[disabled] {
|
|
|
|
opacity: 1;
|
2022-02-25 23:11:22 +01:00
|
|
|
color: var(--color-text-muted);
|
2019-04-16 21:35:22 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn-primary {
|
2022-03-08 22:50:35 +01:00
|
|
|
color: var(--color-primary-inverse);
|
2022-02-25 23:11:22 +01:00
|
|
|
border: 1px solid var(--color-primary-default);
|
|
|
|
background-color: var(--color-primary-default);
|
2019-04-16 21:35:22 +02:00
|
|
|
|
|
|
|
&:hover {
|
2022-02-25 23:11:22 +01:00
|
|
|
border-color: var(--color-primary-alternative);
|
|
|
|
background-color: var(--color-primary-alternative);
|
2019-04-16 21:35:22 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
2022-02-25 23:11:22 +01:00
|
|
|
background: var(--color-primary-alternative);
|
|
|
|
border-color: var(--color-primary-alternative);
|
2019-04-16 21:35:22 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&--disabled,
|
|
|
|
&[disabled] {
|
2022-02-25 23:11:22 +01:00
|
|
|
border-color: var(--color-primary-disabled);
|
|
|
|
background-color: var(--color-primary-disabled);
|
2019-04-16 21:35:22 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn-link {
|
2020-08-19 18:41:56 +02:00
|
|
|
@include H4;
|
|
|
|
|
2022-02-25 23:11:22 +01:00
|
|
|
color: var(--color-primary-default);
|
2020-08-19 18:41:56 +02:00
|
|
|
cursor: pointer;
|
|
|
|
background-color: transparent;
|
|
|
|
|
|
|
|
&:hover {
|
2022-02-25 23:11:22 +01:00
|
|
|
color: var(--color-primary-alternative);
|
2020-08-19 18:41:56 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
2022-02-25 23:11:22 +01:00
|
|
|
color: var(--color-primary-alternative);
|
2020-08-19 18:41:56 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&--disabled,
|
|
|
|
&[disabled] {
|
|
|
|
cursor: auto;
|
|
|
|
opacity: 1;
|
|
|
|
pointer-events: none;
|
2022-02-25 23:11:22 +01:00
|
|
|
color: var(--color-primary-disabled);
|
2020-08-19 18:41:56 +02:00
|
|
|
}
|
2019-04-16 21:35:22 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.btn--large {
|
|
|
|
min-height: 54px;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
All Buttons styles are deviations from design guide
|
|
|
|
*/
|
|
|
|
|
|
|
|
.btn-raised {
|
2022-02-25 23:11:22 +01:00
|
|
|
color: var(--color-primary-default);
|
|
|
|
background-color: var(--color-background-default);
|
2022-07-22 00:43:31 +02:00
|
|
|
box-shadow: var(--shadow-size-sm) var(--color-shadow-default);
|
2019-04-16 21:35:22 +02:00
|
|
|
padding: 6px;
|
|
|
|
height: initial;
|
|
|
|
min-height: initial;
|
|
|
|
width: initial;
|
|
|
|
min-width: initial;
|
|
|
|
}
|
|
|
|
|
|
|
|
button[disabled],
|
|
|
|
input[type="submit"][disabled] {
|
|
|
|
cursor: not-allowed;
|
2020-07-15 15:13:40 +02:00
|
|
|
opacity: 0.5;
|
2019-04-16 21:35:22 +02:00
|
|
|
}
|
|
|
|
|
2020-05-26 22:49:11 +02:00
|
|
|
.btn--rounded {
|
|
|
|
border-radius: 100px;
|
|
|
|
will-change: box-shadow;
|
|
|
|
transition: box-shadow cubic-bezier(0.6, -0.28, 0.735, 0.045) 200ms;
|
2020-07-15 15:13:40 +02:00
|
|
|
|
2020-05-26 22:49:11 +02:00
|
|
|
&:hover {
|
2022-07-22 00:43:31 +02:00
|
|
|
box-shadow: var(--shadow-size-sm) var(--color-shadow-default);
|
2020-05-26 22:49:11 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&.btn-secondary {
|
2022-02-25 23:11:22 +01:00
|
|
|
border: 1px solid var(--color-primary-default);
|
2020-07-15 15:13:40 +02:00
|
|
|
|
2022-07-22 00:43:31 +02:00
|
|
|
&:hover {
|
|
|
|
box-shadow: var(--shadow-size-sm) var(--color-primary-shadow);
|
|
|
|
}
|
|
|
|
|
2020-05-26 22:49:11 +02:00
|
|
|
&--disabled,
|
|
|
|
&[disabled] {
|
2022-02-25 23:11:22 +01:00
|
|
|
border-color: var(--color-primary-disabled);
|
|
|
|
color: var(--color-primary-disabled);
|
2020-05-26 22:49:11 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
2022-02-25 23:11:22 +01:00
|
|
|
border-color: var(--color-primary-alternative);
|
2020-05-26 22:49:11 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.btn-default {
|
2022-02-25 23:11:22 +01:00
|
|
|
border: 1px solid var(--color-icon-default);
|
2020-07-15 15:13:40 +02:00
|
|
|
|
2022-07-22 00:43:31 +02:00
|
|
|
&:hover {
|
|
|
|
box-shadow: var(--shadow-size-sm) var(--color-shadow-default);
|
|
|
|
}
|
|
|
|
|
2020-05-26 22:49:11 +02:00
|
|
|
&--disabled,
|
|
|
|
&[disabled] {
|
2022-02-25 23:11:22 +01:00
|
|
|
border-color: var(--color-border-muted);
|
|
|
|
color: var(--color-text-muted);
|
2020-05-26 22:49:11 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
2022-02-25 23:11:22 +01:00
|
|
|
border-color: var(--color-text-alternative);
|
2020-05-26 22:49:11 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.btn-danger {
|
2022-02-25 23:11:22 +01:00
|
|
|
border: 1px solid var(--color-error-default);
|
2020-07-15 15:13:40 +02:00
|
|
|
|
2022-07-22 00:43:31 +02:00
|
|
|
&:hover {
|
|
|
|
box-shadow: var(--shadow-size-sm) var(--color-error-shadow);
|
|
|
|
}
|
|
|
|
|
2020-05-26 22:49:11 +02:00
|
|
|
&--disabled,
|
|
|
|
&[disabled] {
|
2022-02-25 23:11:22 +01:00
|
|
|
border-color: var(--color-error-disabled);
|
|
|
|
color: var(--color-error-disabled);
|
2020-05-26 22:49:11 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
2022-02-25 23:11:22 +01:00
|
|
|
border-color: var(--color-error-alternative);
|
2020-05-26 22:49:11 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.btn-warning {
|
2022-02-25 23:11:22 +01:00
|
|
|
border: 1px solid var(--color-warning-default);
|
2020-07-15 15:13:40 +02:00
|
|
|
|
2022-07-22 00:43:31 +02:00
|
|
|
&:hover {
|
|
|
|
box-shadow: var(--shadow-size-sm) var(--color-shadow-default);
|
|
|
|
}
|
|
|
|
|
2020-05-26 22:49:11 +02:00
|
|
|
&--disabled,
|
|
|
|
&[disabled] {
|
2022-02-25 23:11:22 +01:00
|
|
|
border-color: var(--color-warning-alternative);
|
|
|
|
color: var(--color-text-muted);
|
2020-05-26 22:49:11 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
2022-02-25 23:11:22 +01:00
|
|
|
border-color: var(--color-warning-alternative);
|
2020-05-26 22:49:11 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.btn-primary {
|
2022-02-25 23:11:22 +01:00
|
|
|
background-color: var(--color-primary-default);
|
2020-07-15 15:13:40 +02:00
|
|
|
|
2022-07-22 00:43:31 +02:00
|
|
|
&:hover {
|
|
|
|
box-shadow: var(--shadow-size-sm) var(--color-primary-shadow);
|
|
|
|
}
|
|
|
|
|
2020-05-26 22:49:11 +02:00
|
|
|
&--disabled,
|
|
|
|
&[disabled] {
|
2022-02-25 23:11:22 +01:00
|
|
|
background-color: var(--color-primary-disabled);
|
2020-05-26 22:49:11 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
2022-02-25 23:11:22 +01:00
|
|
|
background-color: var(--color-primary-alternative);
|
2020-05-26 22:49:11 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.btn-danger-primary {
|
2022-02-25 23:11:22 +01:00
|
|
|
background-color: var(--color-error-default);
|
2020-07-15 15:13:40 +02:00
|
|
|
|
2022-07-22 00:43:31 +02:00
|
|
|
&:hover {
|
|
|
|
box-shadow: var(--shadow-size-sm) var(--color-error-shadow);
|
|
|
|
}
|
|
|
|
|
2020-05-26 22:49:11 +02:00
|
|
|
&--disabled,
|
|
|
|
&[disabled] {
|
2022-02-25 23:11:22 +01:00
|
|
|
background-color: var(--color-error-disabled);
|
2020-05-26 22:49:11 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
2022-02-25 23:11:22 +01:00
|
|
|
background-color: var(--color-error-alternative);
|
2020-05-26 22:49:11 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-01-19 18:14:32 +01:00
|
|
|
|
|
|
|
.btn--inline {
|
|
|
|
display: inline;
|
2022-03-25 15:02:08 +01:00
|
|
|
padding: 0;
|
2022-01-19 18:14:32 +01:00
|
|
|
font-size: inherit;
|
|
|
|
width: auto;
|
2022-02-25 23:11:22 +01:00
|
|
|
color: var(--color-primary-default);
|
2022-01-19 18:14:32 +01:00
|
|
|
cursor: pointer;
|
|
|
|
background-color: transparent;
|
|
|
|
|
|
|
|
&:hover {
|
2022-02-25 23:11:22 +01:00
|
|
|
color: var(--color-primary-alternative);
|
2022-01-19 18:14:32 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
2022-02-25 23:11:22 +01:00
|
|
|
color: var(--color-primary-alternative);
|
2022-01-19 18:14:32 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
&--disabled,
|
|
|
|
&[disabled] {
|
|
|
|
cursor: auto;
|
|
|
|
opacity: 1;
|
|
|
|
pointer-events: none;
|
2022-02-25 23:11:22 +01:00
|
|
|
color: var(--color-primary-disabled);
|
2022-01-19 18:14:32 +01:00
|
|
|
}
|
|
|
|
}
|