135 lines
3.0 KiB
CSS
135 lines
3.0 KiB
CSS
.phone {
|
|
display: grid;
|
|
gap: var(--Spacing-x2);
|
|
grid-template-columns: max(164px) 1fr;
|
|
|
|
--react-international-phone-background-color: var(--Main-Grey-White);
|
|
--react-international-phone-border-color: var(--Scandic-Beige-40);
|
|
--react-international-phone-dropdown-preferred-list-divider-color: var(
|
|
--Scandic-Brand-Pale-Peach
|
|
);
|
|
--react-international-phone-selected-dropdown-item-background-color: var(
|
|
--Scandic-Blue-00
|
|
);
|
|
--react-international-phone-text-color: var(--Main-Grey-100);
|
|
|
|
--react-international-phone-dropdown-preferred-list-divider-margin: 8px;
|
|
|
|
--react-international-phone-height: 60px;
|
|
--react-international-phone-dropdown-top: calc(
|
|
var(--react-international-phone-height) + var(--Spacing-x1)
|
|
);
|
|
}
|
|
|
|
.phone:has(.input:active, .input:focus) {
|
|
--react-international-phone-border-color: var(--Scandic-Blue-90);
|
|
}
|
|
|
|
.phone :global(.react-international-phone-country-selector-dropdown) {
|
|
background: var(--Main-Grey-White);
|
|
border-radius: var(--Corner-radius-Medium);
|
|
box-shadow: 0px 4px 24px 0px rgba(0, 0, 0, 0.08);
|
|
gap: var(--Spacing-x1);
|
|
outline: none;
|
|
padding: var(--Spacing-x2);
|
|
}
|
|
|
|
.phone
|
|
:global(.react-international-phone-country-selector-dropdown__list-item) {
|
|
border-radius: var(--Corner-radius-Medium);
|
|
padding: var(--Spacing-x1) var(--Spacing-x1) var(--Spacing-x1)
|
|
var(--Spacing-x-one-and-half);
|
|
}
|
|
|
|
.phone
|
|
:global(.react-international-phone-country-selector-button__button-content) {
|
|
align-self: center;
|
|
}
|
|
|
|
.inputContainer,
|
|
.select {
|
|
align-content: center;
|
|
background-color: var(--Main-Grey-White);
|
|
border-color: var(--Scandic-Beige-40);
|
|
border-style: solid;
|
|
border-width: 1px;
|
|
border-radius: var(--Corner-radius-Medium);
|
|
display: grid;
|
|
gap: var(--Spacing-x-half);
|
|
grid-template-rows: auto auto;
|
|
height: 60px;
|
|
padding: var(--Spacing-x1) var(--Spacing-x2);
|
|
transition: border-color 200ms ease;
|
|
}
|
|
|
|
.select {
|
|
width: 100%;
|
|
}
|
|
|
|
.select[aria-expanded="true"] .chevron {
|
|
transform: rotate(180deg);
|
|
}
|
|
|
|
.selectContainer {
|
|
background-color: var(--Main-Grey-White);
|
|
border: none;
|
|
display: grid;
|
|
gap: var(--Spacing-x1);
|
|
grid-template-columns: auto 1fr auto;
|
|
height: 18px;
|
|
justify-content: flex-start;
|
|
order: 2;
|
|
}
|
|
|
|
.arrow {
|
|
display: none;
|
|
}
|
|
|
|
.flag {
|
|
height: 18px;
|
|
margin: 0;
|
|
width: 18px;
|
|
}
|
|
|
|
.select .dialCode {
|
|
border: none;
|
|
color: var(--Main-Grey-100);
|
|
line-height: 1;
|
|
justify-self: flex-start;
|
|
padding: 0;
|
|
}
|
|
|
|
.inputContainer:has(.input:not(:focus):placeholder-shown) {
|
|
gap: 0;
|
|
grid-template-rows: 1fr;
|
|
}
|
|
|
|
.inputContainer:has(.input:active, .input:focus) {
|
|
border-color: var(--Scandic-Blue-90);
|
|
}
|
|
|
|
.inputContainer:has(.input[data-invalid="true"], .input[aria-invalid="true"]) {
|
|
border-color: var(--Scandic-Red-60);
|
|
}
|
|
|
|
.input {
|
|
background: none;
|
|
border: none;
|
|
color: var(--Main-Grey-100);
|
|
height: 18px;
|
|
margin: 0;
|
|
order: 2;
|
|
overflow: visible;
|
|
padding: 0;
|
|
}
|
|
|
|
.input:not(:active, :focus):placeholder-shown {
|
|
height: 0px;
|
|
}
|
|
|
|
.input:focus,
|
|
.input:focus:placeholder-shown {
|
|
height: 18px;
|
|
outline: none;
|
|
}
|