livebook/assets/css/components.css
Jonatan Kłosko a2d1e2f934
Initial redesign (#75)
* Add Remix icons

* Replace existing icons with Remix icons

* Update fonts

* Redesign homepage

* Redesign shortcuts modal

* Fix tests
2021-03-12 11:57:01 +01:00

92 lines
2 KiB
CSS

/* Buttons */
.button-base {
@apply px-5 py-2 bg-white rounded-lg border border-gray-200 font-medium text-sm text-gray-600;
}
.button-base:not(:disabled) {
@apply hover:bg-gray-50;
}
.button-base:disabled {
@apply opacity-50 cursor-default;
}
.button-sm {
@apply px-3 py-1;
}
.button-danger {
@apply border border-red-300 text-red-500;
}
.button-danger:not(:disabled) {
@apply hover:bg-red-50;
}
.button-primary {
@apply border-transparent bg-blue-600 text-white;
}
.button-primary:not(:disabled) {
@apply hover:bg-blue-500;
}
/* Form fields */
.input-base {
@apply w-full p-3 bg-white border border-gray-200 rounded-lg placeholder-gray-400 text-gray-600;
}
.checkbox-base {
@apply h-5 w-5 appearance-none border border-gray-300 rounded text-blue-600 cursor-pointer;
}
.checkbox-base:checked {
background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
border-color: transparent;
background-color: currentColor;
background-size: 100% 100%;
background-position: center;
background-repeat: no-repeat;
}
.radio-button-group {
@apply flex;
}
.radio-button-group .radio-button:first-child .radio-button__label {
@apply rounded-l-md border-l;
}
.radio-button-group .radio-button:last-child .radio-button__label {
@apply rounded-r-md;
}
.radio-button .radio-button__label {
@apply block px-3 py-1 cursor-pointer border border-l-0 border-gray-700 text-gray-700 hover:bg-gray-100;
}
.radio-button .radio-button__input {
@apply hidden;
}
.radio-button .radio-button__input[checked] + .radio-button__label {
@apply bg-gray-700 text-white;
}
/* Custom scrollbars */
.tiny-scrollbar::-webkit-scrollbar {
width: 0.4rem;
height: 0.4rem;
}
.tiny-scrollbar::-webkit-scrollbar-thumb {
border-radius: 0.25rem;
@apply bg-gray-400;
}
.tiny-scrollbar::-webkit-scrollbar-track {
@apply bg-gray-100;
}