2022-12-01 12:05:08 +01:00
|
|
|
.c__button {
|
2023-01-12 17:41:14 +01:00
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
2022-12-01 12:05:08 +01:00
|
|
|
border: none;
|
2023-01-04 15:52:24 +01:00
|
|
|
cursor: pointer;
|
2023-01-12 17:41:14 +01:00
|
|
|
transition: background-color var(--c--theme--transitions--duration) var(--c--theme--transitions--ease-out);
|
|
|
|
|
border-radius: var(--c--components--button--border-radius);
|
|
|
|
|
font-weight: var(--c--components--button--font-weight);
|
|
|
|
|
|
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);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&--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-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 {
|
|
|
|
|
background-color: var(--c--theme--colors--primary-500);
|
|
|
|
|
color: var(--c--theme--colors--primary-text);
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
background-color: var(--c--theme--colors--primary-600);
|
|
|
|
|
}
|
|
|
|
|
|
2023-02-16 14:40:48 +01:00
|
|
|
&:active, &.c__button--active {
|
2023-01-12 17:41:14 +01:00
|
|
|
background-color: var(--c--theme--colors--primary-500);
|
|
|
|
|
}
|
2023-02-16 14:41:40 +01:00
|
|
|
|
|
|
|
|
&[disabled] {
|
|
|
|
|
background-color: var(--c--theme--colors--greyscale-200);
|
|
|
|
|
}
|
2023-01-12 17:41:14 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&--secondary {
|
|
|
|
|
background-color: var(--c--theme--colors--secondary-500);
|
|
|
|
|
color: var(--c--theme--colors--secondary-text);
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
background-color: var(--c--theme--colors--secondary-600);
|
|
|
|
|
}
|
|
|
|
|
|
2023-02-16 14:40:48 +01:00
|
|
|
&:active, &.c__button--active {
|
2023-01-12 17:41:14 +01:00
|
|
|
background-color: var(--c--theme--colors--secondary-500);
|
|
|
|
|
}
|
2023-02-16 14:41:40 +01:00
|
|
|
|
|
|
|
|
&[disabled] {
|
|
|
|
|
background-color: var(--c--theme--colors--greyscale-200);
|
|
|
|
|
}
|
2023-01-12 17:41:14 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&--tertiary {
|
|
|
|
|
background-color: transparent;
|
|
|
|
|
color: var(--c--theme--colors--greyscale-800);
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
color: var(--c--theme--colors--greyscale-900);
|
2023-02-16 14:41:40 +01:00
|
|
|
background-color: var(--c--theme--colors--greyscale-100);
|
2023-01-12 17:41:14 +01:00
|
|
|
}
|
|
|
|
|
|
2023-02-16 14:40:48 +01:00
|
|
|
&:active, &.c__button--active {
|
2023-01-12 17:41:14 +01:00
|
|
|
color: var(--c--theme--colors--greyscale-800);
|
2023-02-16 14:40:48 +01:00
|
|
|
background-color: var(--c--theme--colors--greyscale-200);
|
2023-01-12 17:41:14 +01:00
|
|
|
}
|
2023-02-16 14:41:40 +01:00
|
|
|
|
|
|
|
|
&[disabled] {
|
|
|
|
|
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);
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
background-color: var(--c--theme--colors--danger-600);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
|
background-color: var(--c--theme--colors--danger-500);
|
|
|
|
|
}
|
2023-02-16 14:41:40 +01:00
|
|
|
|
|
|
|
|
&[disabled] {
|
|
|
|
|
background-color: var(--c--theme--colors--greyscale-200);
|
|
|
|
|
}
|
2023-01-12 17:41:14 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&[disabled] {
|
|
|
|
|
cursor: not-allowed;
|
|
|
|
|
color: var(--c--theme--colors--greyscale-400);
|
|
|
|
|
}
|
2022-12-01 12:05:08 +01:00
|
|
|
}
|