livebook/assets/css/components.css

103 lines
2.1 KiB
CSS
Raw Normal View History

/* Buttons */
.button {
@apply px-5 py-2 bg-white rounded-lg border border-gray-200 font-medium text-sm text-gray-600;
}
.button:not(:disabled) {
@apply hover:bg-gray-50 focus:bg-gray-50;
}
.button:disabled {
@apply cursor-default pointer-events-none border-transparent bg-gray-100 text-gray-400;
}
.button-sm {
@apply px-3 py-1;
}
.button-danger {
@apply bg-red-50 border border-red-600 text-red-600;
}
.button-danger:not(:disabled) {
@apply hover:bg-red-100 focus:bg-red-100;
}
.button-primary {
@apply border-transparent bg-blue-600 text-white;
}
.button-primary:not(:disabled) {
@apply hover:bg-blue-700 focus:bg-blue-700;
}
.choice-button {
@apply px-5 py-2 rounded-lg border text-gray-700 bg-white border-gray-200;
}
.choice-button.active {
@apply bg-blue-100 border-blue-600;
}
.icon-button {
@apply p-1 flex items-center justify-center text-gray-400 hover:text-gray-800;
}
.icon-button:focus {
@apply rounded-full bg-gray-100;
}
.icon-button i {
line-height: 1;
}
/* Form fields */
.input {
@apply w-full px-3 py-2 bg-gray-50 text-sm border border-gray-200 rounded-lg placeholder-gray-400 text-gray-600;
}
.checkbox {
@apply h-5 w-5 appearance-none border border-gray-300 rounded text-blue-600 cursor-pointer;
}
.checkbox: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;
}
/* 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;
}
/* Tabs */
.tabs {
@apply w-full flex;
}
.tabs .tab {
@apply flex items-center space-x-2 px-3 py-2 border-b-2 text-gray-400 border-gray-100;
}
.tabs .tab.active {
@apply text-blue-600 border-blue-600;
}