mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
75 lines
1.1 KiB
CSS
75 lines
1.1 KiB
CSS
.text-field {
|
|
display: flex;
|
|
align-items: center;
|
|
box-sizing: border-box;
|
|
|
|
gap: var(--space-3);
|
|
|
|
border-radius: var(--max-size);
|
|
|
|
background-color: var(--gray-1);
|
|
box-shadow: var(--shadow-interactive), var(--shadow-cavity);
|
|
cursor: text;
|
|
|
|
font: inherit;
|
|
color: var(--gray-11);
|
|
|
|
&[data-has-icon="true"] {
|
|
padding-left: var(--space-3);
|
|
|
|
input {
|
|
padding-left: 0;
|
|
}
|
|
}
|
|
|
|
&:focus-within {
|
|
outline: var(--outline-focus);
|
|
box-shadow: var(--shadow-focus);
|
|
}
|
|
|
|
&[data-disabled="true"] {
|
|
cursor: not-allowed;
|
|
background-color: var(--gray-3);
|
|
|
|
color: var(--gray-9);
|
|
|
|
input::placeholder {
|
|
color: var(--gray-9);
|
|
}
|
|
}
|
|
|
|
svg {
|
|
width: 1em;
|
|
height: 1em;
|
|
}
|
|
|
|
input {
|
|
min-width: 0;
|
|
flex: 1;
|
|
|
|
background: none;
|
|
border: none;
|
|
cursor: inherit;
|
|
|
|
font: inherit;
|
|
padding: var(--space-3) var(--space-4);
|
|
|
|
color: var(--gray-12);
|
|
|
|
&::placeholder {
|
|
color: var(--gray-11);
|
|
}
|
|
|
|
&:focus {
|
|
outline: none;
|
|
}
|
|
|
|
&[data-align="center"] {
|
|
text-align: center;
|
|
}
|
|
&[data-align="right"] {
|
|
text-align: right;
|
|
}
|
|
}
|
|
}
|