PINES OPAC Carousel CSS
authorTerran McCanna <tmccanna@georgialibraries.org>
Wed, 17 Nov 2021 22:00:08 +0000 (17:00 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Mon, 15 Aug 2022 18:25:03 +0000 (14:25 -0400)
Adds additional CSS for iframe usage that overrides the basic
OPAC usage CSS.

Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Open-ILS/src/templates-bootstrap/opac/carousel.tt2

index bf54466..a2ca144 100644 (file)
@@ -6,3 +6,54 @@
        PROCESS carousels;
        END
 -%]
+<!-- PINES Carousel Customization for iframes -->
+<style type="text/css">
+       .carousel {
+               margin-left: 100px;
+       }
+       .glide__slide {
+               padding:0px;
+               margin:0px;
+               width:120px !important;
+       }
+       .carousel-entry-image {
+               width:auto;
+               height:150px;
+       }
+
+       @media only screen and (max-width: 1200px) {
+               .carousel {
+                       margin-left: 60px;
+                       width: 100%;
+               }
+               .glide__slide {
+                       width:100px !important;
+               }
+               .carousel-entry {
+                       width:100px;
+               }
+           .carousel-entry-image {
+                       width: auto;
+                       height: 110px;
+                       border: 1px solid #999;
+               }
+       }
+
+       @media only screen and (max-width: 1000px) {
+               .carousel {
+                       margin-left: 0px;
+                       width: 100%;
+               }
+               .glide__slide {
+                       width:100px !important;
+               }
+               .carousel-entry {
+                       width:100px;
+               }
+           .carousel-entry-image {
+                       width: auto;
+                       height: 110px;
+                       border: 1px solid #999;
+               }
+       }
+</style>
\ No newline at end of file