Gny's picture
a single page for news with a picture, a carrousel for the articles with anchor links for each article in the bottom. the page must resize to every format.
3e0e17d verified
Raw History Blame Contribute Delete
2.19 kB
/* Custom scrollbar */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: #0f172a;
}
::-webkit-scrollbar-thumb {
background: #334155;
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: #475569;
}
/* Hide scrollbar for anchor nav */
.no-scrollbar::-webkit-scrollbar {
display: none;
}
.no-scrollbar {
-ms-overflow-style: none;
scrollbar-width: none;
}
/* Smooth scroll behavior */
html {
scroll-behavior: smooth;
}
/* Selection styling */
::selection {
background: rgba(14, 165, 233, 0.3);
color: #fff;
}
/* Focus styles */
*:focus-visible {
outline: 2px solid #0ea5e9;
outline-offset: 2px;
}
/* Article anchor active state */
.article-anchor.active {
background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(217, 70, 239, 0.2));
color: #fff;
border: 1px solid rgba(14, 165, 233, 0.3);
}
/* Gradient text utility */
.text-gradient {
background: linear-gradient(135deg, #38bdf8, #e879f9);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
/* Glass morphism enhancement */
.glass {
background: rgba(15, 23, 42, 0.7);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
}
/* Image loading placeholder */
img {
background: linear-gradient(135deg, #1e293b, #0f172a);
}
/* Carousel touch support */
#carousel {
touch-action: pan-y pinch-zoom;
}
/* Prevent text selection during drag */
.carousel-item {
user-select: none;
}
/* Responsive typography adjustments */
@media (max-width: 640px) {
.font-display {
letter-spacing: -0.02em;
}
}
/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
}
/* Print styles */
@media print {
.fixed,
nav {
display: none !important;
}
body {
background: white !important;
color: black !important;
}
}