purrfect-pantry-pro / style.css
ctrlplus-zai's picture
make all photos placeholders and fix the layout
fca8bb8 verified
Raw History Blame Contribute Delete
2.23 kB
/* Custom styles that complement Tailwind */
.custom-sidebar {
transition: all 0.3s ease;
z-index: 20;
}
.navbar {
z-index: 30;
}
main {
transition: margin-left 0.3s ease;
}
/* Fix image aspect ratios */
img {
object-fit: cover;
}
/* Responsive adjustments */
@media (max-width: 768px) {
.custom-sidebar {
transform: translateX(-100%);
}
.custom-sidebar.open {
transform: translateX(0);
}
main {
margin-left: 0 !important;
}
.search-input:focus {
width: 100% !important;
}
}
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
body {
font-family: 'Inter', sans-serif;
}
/* Smooth transitions for sidebar */
.custom-sidebar {
transition: all 0.3s ease;
}
/* Custom scrollbar */
::-webkit-scrollbar {
width: 6px;
height: 6px;
}
::-webkit-scrollbar-track {
background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
background: #888;
border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
background: #555;
}
/* Custom badge styles */
.badge {
@apply inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium;
}
.badge-success {
@apply bg-green-100 text-green-800;
}
.badge-warning {
@apply bg-yellow-100 text-yellow-800;
}
.badge-danger {
@apply bg-red-100 text-red-800;
}
/* Custom form inputs */
.form-input {
@apply block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500;
}
/* Custom buttons */
.btn {
@apply inline-flex items-center px-4 py-2 border border-transparent rounded-md shadow-sm text-sm font-medium focus:outline-none focus:ring-2 focus:ring-offset-2;
}
.btn-primary {
@apply bg-indigo-600 text-white hover:bg-indigo-700 focus:ring-indigo-500;
}
.btn-secondary {
@apply bg-white border-gray-300 text-gray-700 hover:bg-gray-50 focus:ring-indigo-500;
}
/* Custom table styles */
.table {
@apply min-w-full divide-y divide-gray-200;
}
.table th {
@apply px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider;
}
.table td {
@apply px-6 py-4 whitespace-nowrap text-sm text-gray-500;
}