@kanton-basel-stadt/designsystem
Version:
Unplugin to install the digital design system of the canton of Basel-Stadt
34 lines (27 loc) • 999 B
CSS
@layer components {
.input {
/* Manually setting the height ensures consistent look&feel for all browsers. */
@apply border border-blue-900 bg-white rounded p-10 text-base text-gray-900 transition-all ease-in-out duration-250;
input& {
@apply h-[46px];
}
@apply hover:border-blue-500;
@apply focus:outline-none focus:shadow-purple-600 focus:border-purple-600;
@apply focus-within:outline-none focus-within:shadow-purple-600 focus-within:border-purple-600;
@apply focus-visible:outline-none focus-visible:shadow-purple-600 focus-visible:border-purple-600;
@apply disabled:border-gray-300 disabled:bg-gray-300 disabled:text-gray-800 disabled:cursor-default;
&::placeholder {
@apply text-gray-500;
}
&:disabled::placeholder {
@apply text-gray-800;
}
&[type='date'] {
/* Fix issues on iOS Safari. */
@apply appearance-none;
&::-webkit-date-and-time-value {
@apply text-left;
}
}
}
}