73 lines
1.3 KiB
CSS
Raw Normal View History

2024-11-09 13:12:16 +07:00
.card-number {
--codex-card-number-label-color: #7b7b7b;
--codex-card-number-unit-color: #969696;
2024-09-13 12:25:30 +02:00
2024-11-09 13:12:16 +07:00
&[aria-invalid] {
--codex-card-number-label-color: var(--codex-input-color-error);
--codex-card-number-unit-color: var(--codex-input-color-error);
}
2024-09-13 12:25:30 +02:00
2024-11-09 13:12:16 +07:00
position: relative;
2024-08-22 17:41:44 +02:00
2024-11-09 13:12:16 +07:00
label {
color: var(--codex-card-number-label-color);
}
2024-08-22 17:41:44 +02:00
2024-11-09 13:12:16 +07:00
input {
font-family: Inter;
font-size: 24px;
font-weight: 500;
line-height: 32px;
letter-spacing: -0.015em;
width: 100%;
background-color: transparent;
2024-08-29 18:45:52 +02:00
2024-11-09 13:12:16 +07:00
&::-webkit-outer-spin-button,
&::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
2024-08-29 18:45:52 +02:00
2024-11-09 13:12:16 +07:00
& {
-moz-appearance: textfield;
}
}
2024-08-29 18:45:52 +02:00
2024-11-09 13:12:16 +07:00
.tooltip {
position: absolute;
right: 0px;
top: 0px;
}
2024-08-29 18:45:52 +02:00
2024-11-09 13:12:16 +07:00
svg {
color: var(--codex-card-number-unit-color);
}
2024-08-22 17:41:44 +02:00
2024-11-09 13:12:16 +07:00
/* svg::after {
content: attr(data-title);
background-color: #2f2f2f;
color: #fff;
padding: 8px;
border-radius: 4px;
font-size: 12px;
line-height: 14px;
display: block;
white-space: nowrap;
position: absolute;
right: 1rem;
overflow: visible;
} */
2024-09-13 12:25:30 +02:00
2024-11-09 13:12:16 +07:00
span {
font-family: Inter;
font-size: 12px;
font-weight: 400;
line-height: 16px;
text-align: left;
color: var(--codex-card-number-unit-color);
position: absolute;
top: 54px;
right: 16px;
}
2024-08-22 17:41:44 +02:00
}