feat(SW-1435): Added RateCard component to design system * feat(SW-1435): Added new component: RateCard to design system * feat: added reward night points rate card * fix: set svg icon color to "currentColor" to make them more reusable * fix: added click handler for info icon * fix: added selectedRate Approved-by: Arvid Norlin
97 lines
2.8 KiB
CSS
97 lines
2.8 KiB
CSS
.button {
|
|
border-radius: var(--Corner-radius-rounded);
|
|
border-width: 2px;
|
|
border-style: solid;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.size-large {
|
|
padding: var(--Space-x2) var(--Space-x3);
|
|
}
|
|
|
|
.size-medium {
|
|
padding: var(--Space-x15) var(--Space-x2);
|
|
}
|
|
|
|
.size-small {
|
|
padding: 10px var(--Space-x2);
|
|
}
|
|
|
|
.variant-primary {
|
|
background-color: var(--Component-Button-Brand-Primary-Default);
|
|
border-color: var(--Component-Button-Brand-Primary-Border-Default);
|
|
color: var(--Component-Button-Brand-Primary-On-fill-Default);
|
|
}
|
|
|
|
.variant-primary:hover {
|
|
background-color: var(--Component-Button-Brand-Primary-Hover);
|
|
border-color: var(--Component-Button-Brand-Primary-Border-Hover);
|
|
color: var(--Component-Button-Brand-Primary-On-fill-Hover);
|
|
}
|
|
|
|
.variant-primary:disabled {
|
|
background-color: var(--Component-Button-Brand-Primary-Disabled);
|
|
border-color: var(--Component-Button-Brand-Primary-Border-Disabled);
|
|
color: var(--Component-Button-Brand-Primary-On-fill-Disabled);
|
|
}
|
|
|
|
.variant-secondary {
|
|
background-color: var(--Component-Button-Brand-Secondary-Default);
|
|
border-color: var(--Component-Button-Brand-Secondary-Border-Default);
|
|
color: var(--Component-Button-Brand-Secondary-On-fill-Default);
|
|
}
|
|
|
|
.variant-secondary:hover {
|
|
background-color: var(--Component-Button-Brand-Secondary-Hover);
|
|
border-color: var(--Component-Button-Brand-Secondary-Border-Hover);
|
|
color: var(--Component-Button-Brand-Secondary-On-fill-Hover);
|
|
}
|
|
|
|
.variant-secondary:disabled {
|
|
background-color: var(--Component-Button-Brand-Secondary-Disabled);
|
|
border-color: var(--Component-Button-Brand-Secondary-Border-Disabled);
|
|
color: var(--Component-Button-Brand-Secondary-On-fill-Disabled);
|
|
}
|
|
|
|
.variant-tertiary {
|
|
background-color: var(--Component-Button-Brand-Tertiary-Default);
|
|
border-color: var(--Component-Button-Brand-Tertiary-Border-Default);
|
|
color: var(--Component-Button-Brand-Tertiary-On-fill-Default);
|
|
}
|
|
|
|
.variant-tertiary:hover {
|
|
background-color: var(--Component-Button-Brand-Tertiary-Hover);
|
|
border-color: var(--Component-Button-Brand-Tertiary-Border-Hover);
|
|
color: var(--Component-Button-Brand-Tertiary-On-fill-Hover);
|
|
}
|
|
|
|
.variant-tertiary:disabled {
|
|
background-color: var(--Component-Button-Brand-Tertiary-Disabled);
|
|
border-color: var(--Component-Button-Brand-Tertiary-Border-Disabled);
|
|
color: var(--Component-Button-Brand-Tertiary-On-fill-Disabled);
|
|
}
|
|
|
|
.variant-text {
|
|
background-color: transparent;
|
|
border-color: transparent;
|
|
/* TODO: Missing text variant tokens for button */
|
|
color: var(--Scandic-Red-100);
|
|
padding: var(--Space-x15) 0;
|
|
}
|
|
|
|
.variant-icon {
|
|
background-color: transparent;
|
|
border-color: transparent;
|
|
color: inherit;
|
|
padding: 0;
|
|
margin: 0;
|
|
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.color-icon-default {
|
|
color: var(--Icon-Default);
|
|
}
|