diff options
author | Franck Cuny <franck@fcuny.net> | 2024-09-22 13:24:30 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2024-09-22 13:24:30 -0700 |
commit | 53db590eed6e90138583e01d2c391b05d2ba3b6f (patch) | |
tree | f1ce3408d360352a51a9f719a84bee20400635f4 /static/css | |
parent | render the TOC correctly for mobile and desktop (diff) | |
download | fcuny.net-53db590eed6e90138583e01d2c391b05d2ba3b6f.tar.gz |
add information about the fog cutter
Diffstat (limited to 'static/css')
-rw-r--r-- | static/css/carousel.css | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/static/css/carousel.css b/static/css/carousel.css new file mode 100644 index 0000000..d1505e1 --- /dev/null +++ b/static/css/carousel.css @@ -0,0 +1,48 @@ +/* File: carousel.css */ + +.carousel { + width: 100%; + max-width: 46rem; /* As per your specification */ + margin: 0 auto; +} + +.carousel-main-image { + width: 100%; + height: auto; + margin-bottom: 20px; +} + +.carousel-main-image img { + width: 100%; + height: auto; + display: block; +} + +.carousel-vignettes { + display: flex; + justify-content: center; + gap: 10px; + overflow-x: auto; + padding: 10px 0; +} + +.vignette { + cursor: pointer; + transition: opacity 0.3s ease; + flex: 0 0 auto; +} + +.vignette:hover { + opacity: 0.8; +} + +.vignette.active { + border: 2px solid #007bff; +} + +.vignette img { + display: block; + width: 120px; + height: 80px; + object-fit: cover; +} |