2022-12-01 12:05:08 +01:00
|
|
|
.c__button {
|
2023-01-12 17:41:14 +01:00
|
|
|
align-items: center;
|
|
|
|
|
border-radius: var(--c--components--button--border-radius);
|
2023-03-31 17:25:45 +02:00
|
|
|
border: thin solid transparent;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
display: flex;
|
2023-01-12 17:41:14 +01:00
|
|
|
font-weight: var(--c--components--button--font-weight);
|
2023-08-04 17:05:00 +02:00
|
|
|
font-family: var(--c--components--button--font-family);
|
2023-03-31 17:25:45 +02:00
|
|
|
transition: all var(--c--theme--transitions--duration) var(--c--theme--transitions--ease-out);
|
|
|
|
|
user-select: none;
|
|
|
|
|
|
2023-09-01 17:33:15 +02:00
|
|
|
&__icon {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
}
|
|
|
|
|
|
2023-03-31 17:25:45 +02:00
|
|
|
&:hover, &:focus-visible, &:active, &.c__button--active {
|
|
|
|
|
border-radius: var(--c--components--button--border-radius--active);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:focus-visible {
|
|
|
|
|
border-color: #FFF;
|
2023-09-01 11:23:14 +02:00
|
|
|
border-radius: var(--c--components--button--border-radius--focus);
|
|
|
|
|
box-shadow: 0 0 0 2px var(--c--theme--colors--primary-400);
|
2023-03-31 17:25:45 +02:00
|
|
|
outline: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:active, &.c__button--active {
|
|
|
|
|
border-color: currentColor;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:disabled {
|
|
|
|
|
background-color: var(--c--theme--colors--greyscale-200);
|
2023-09-01 11:23:14 +02:00
|
|
|
color: var(--c--theme--colors--greyscale-600);
|
2023-03-31 17:25:45 +02:00
|
|
|
cursor: not-allowed;
|
|
|
|
|
pointer-events: none;
|
|
|
|
|
}
|
2023-01-12 17:41:14 +01:00
|
|
|
|
2023-05-25 15:41:07 +02:00
|
|
|
&--full-width {
|
|
|
|
|
width: 100%;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
}
|
|
|
|
|
|
2023-02-16 14:41:40 +01:00
|
|
|
&--medium {
|
|
|
|
|
height: var(--c--components--button--medium-height);
|
|
|
|
|
font-size: var(--c--components--button--medium-font-size);
|
|
|
|
|
padding: 0 var(--c--theme--spacings--s);
|
|
|
|
|
|
|
|
|
|
&.c__button--icon-only {
|
|
|
|
|
width: var(--c--components--button--medium-height);
|
|
|
|
|
}
|
2023-09-01 17:33:15 +02:00
|
|
|
|
|
|
|
|
.c__button__icon, .c__button__icon * {
|
|
|
|
|
font-size: var(--c--components--button--medium-icon-font-size);
|
|
|
|
|
}
|
2023-02-16 14:41:40 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&--small {
|
|
|
|
|
height: var(--c--components--button--small-height);
|
|
|
|
|
font-size: var(--c--components--button--small-font-size);
|
|
|
|
|
padding: 0 0.75rem;
|
|
|
|
|
|
|
|
|
|
&.c__button--icon-only {
|
|
|
|
|
width: var(--c--components--button--small-height);
|
|
|
|
|
}
|
2023-09-01 17:33:15 +02:00
|
|
|
|
|
|
|
|
.c__button__icon, .c__button__icon * {
|
|
|
|
|
font-size: var(--c--components--button--small-icon-font-size);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
&--nano {
|
|
|
|
|
height: var(--c--components--button--nano-height);
|
|
|
|
|
font-size: var(--c--components--button--nano-font-size);
|
|
|
|
|
padding: 0 0.5rem;
|
|
|
|
|
|
|
|
|
|
&.c__button--icon-only {
|
|
|
|
|
width: var(--c--components--button--nano-height);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.c__button__icon, .c__button__icon * {
|
|
|
|
|
font-size: var(--c--components--button--nano-icon-font-size);
|
|
|
|
|
}
|
2023-02-16 14:41:40 +01:00
|
|
|
}
|
|
|
|
|
|
2023-02-13 12:07:38 +01:00
|
|
|
&--icon-only {
|
|
|
|
|
padding: 0;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
}
|
|
|
|
|
|
2023-01-16 11:17:27 +01:00
|
|
|
&--with-icon--left, &--with-icon--right {
|
|
|
|
|
gap: var(--c--theme--spacings--t);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&--with-icon--left {
|
|
|
|
|
padding: 0 var(--c--theme--spacings--s) 0 var(--c--theme--spacings--t);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&--with-icon--right {
|
|
|
|
|
padding: 0 var(--c--theme--spacings--t) 0 var(--c--theme--spacings--s);
|
|
|
|
|
}
|
|
|
|
|
|
2023-01-12 17:41:14 +01:00
|
|
|
&--primary {
|
2023-09-01 11:23:14 +02:00
|
|
|
background-color: var(--c--theme--colors--primary-400);
|
2023-01-12 17:41:14 +01:00
|
|
|
color: var(--c--theme--colors--primary-text);
|
|
|
|
|
|
2023-03-31 17:25:45 +02:00
|
|
|
&:hover, &:focus-visible {
|
|
|
|
|
background-color: var(--c--theme--colors--primary-800);
|
|
|
|
|
color: var(--c--theme--colors--primary-text);
|
2023-01-12 17:41:14 +01:00
|
|
|
}
|
|
|
|
|
|
2023-02-16 14:40:48 +01:00
|
|
|
&:active, &.c__button--active {
|
2023-03-31 17:25:45 +02:00
|
|
|
background-color: var(--c--theme--colors--greyscale-000);
|
|
|
|
|
color: var(--c--theme--colors--primary-800);
|
2023-02-16 14:41:40 +01:00
|
|
|
}
|
2023-01-12 17:41:14 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&--secondary {
|
2023-03-31 17:25:45 +02:00
|
|
|
background-color: var(--c--theme--colors--primary-100);
|
|
|
|
|
color: var(--c--theme--colors--primary-700);
|
2023-01-12 17:41:14 +01:00
|
|
|
|
2023-03-31 17:25:45 +02:00
|
|
|
&:hover, &:focus-visible {
|
|
|
|
|
background-color: var(--c--theme--colors--primary-500);
|
|
|
|
|
color: var(--c--theme--colors--primary-text);
|
2023-01-12 17:41:14 +01:00
|
|
|
}
|
|
|
|
|
|
2023-02-16 14:40:48 +01:00
|
|
|
&:active, &.c__button--active {
|
2023-03-31 17:25:45 +02:00
|
|
|
background-color: var(--c--theme--colors--primary-text);
|
|
|
|
|
color: var(--c--theme--colors--primary-600);
|
2023-02-16 14:41:40 +01:00
|
|
|
}
|
2023-01-12 17:41:14 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&--tertiary {
|
|
|
|
|
background-color: transparent;
|
|
|
|
|
color: var(--c--theme--colors--greyscale-800);
|
|
|
|
|
|
2023-03-31 17:25:45 +02:00
|
|
|
&:hover, &:focus-visible {
|
2023-04-20 16:25:42 +02:00
|
|
|
background-color: var(--c--theme--colors--greyscale-200);
|
2023-03-31 17:25:45 +02:00
|
|
|
color: var(--c--theme--colors--greyscale-900);
|
2023-01-12 17:41:14 +01:00
|
|
|
}
|
|
|
|
|
|
2023-02-16 14:40:48 +01:00
|
|
|
&:active, &.c__button--active {
|
2023-04-20 16:25:42 +02:00
|
|
|
background-color: var(--c--theme--colors--greyscale-100);
|
2023-03-31 17:25:45 +02:00
|
|
|
color: var(--c--theme--colors--greyscale-800);
|
2023-01-12 17:41:14 +01:00
|
|
|
}
|
2023-02-16 14:41:40 +01:00
|
|
|
|
2023-03-31 17:25:45 +02:00
|
|
|
&:disabled {
|
2023-02-16 14:41:40 +01:00
|
|
|
background-color: transparent;
|
|
|
|
|
}
|
2023-01-12 17:41:14 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&--danger {
|
|
|
|
|
background-color: var(--c--theme--colors--danger-500);
|
|
|
|
|
color: var(--c--theme--colors--danger-text);
|
|
|
|
|
|
2023-03-31 17:25:45 +02:00
|
|
|
&:hover, &:focus-visible {
|
|
|
|
|
background-color: var(--c--theme--colors--danger-800);
|
|
|
|
|
color: var(--c--theme--colors--primary-text);
|
2023-01-12 17:41:14 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:active {
|
2023-03-31 17:25:45 +02:00
|
|
|
background-color: var(--c--theme--colors--greyscale-000);
|
|
|
|
|
color: var(--c--theme--colors--danger-800);
|
2023-02-16 14:41:40 +01:00
|
|
|
}
|
2023-01-12 17:41:14 +01:00
|
|
|
}
|
2023-03-31 17:25:45 +02:00
|
|
|
}
|