blog/resources/css/app.css

87 lines
1.7 KiB
CSS

@import 'tailwindcss';
@plugin "@tailwindcss/typography";
@source '../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php';
@source '../../storage/framework/views/*.php';
@source '../**/*.blade.php';
@source '../**/*.js';
@theme {
--font-sans: 'DM Sans', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
'Segoe UI Symbol', 'Noto Color Emoji';
--font-serif: 'Playfair Display', ui-serif, Georgia, Cambria, 'Times New Roman', Times, serif;
}
/* Custom scrollbar */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: #f5f5f4;
}
::-webkit-scrollbar-thumb {
background: #d6d3d1;
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: #a8a29e;
}
/* Line clamp utilities */
.line-clamp-2 {
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.line-clamp-3 {
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
}
/* Smooth page transitions */
html {
scroll-behavior: smooth;
}
/* Image aspect ratio fix */
img {
max-width: 100%;
height: auto;
}
/* Pagination styling */
nav[role="navigation"] {
display: flex;
justify-content: center;
}
nav[role="navigation"] .flex {
gap: 0.5rem;
}
nav[role="navigation"] a,
nav[role="navigation"] span {
padding: 0.5rem 1rem;
border-radius: 9999px;
font-size: 0.875rem;
font-weight: 500;
transition: all 0.2s;
}
nav[role="navigation"] a:hover {
background-color: #f5f5f4;
}
nav[role="navigation"] span[aria-current="page"] {
background-color: #1c1917;
color: white;
}