]> xenbits.xensource.com Git - www-xenproject-org.git/commitdiff
optimize carousel css
authorArnaud Guéras <arnaudgs@gmail.com>
Sun, 24 Nov 2024 15:58:17 +0000 (16:58 +0100)
committerArnaud Guéras <arnaudgs@gmail.com>
Sun, 24 Nov 2024 15:58:17 +0000 (16:58 +0100)
themes/xen-project/assets/css/components/carousel.scss

index e67523e3cefa6cbfce3b47508ee35b3a68f48ca8..c6aafd1b33ab8b079cfe86e6031d3f632dd70dc3 100644 (file)
@@ -13,6 +13,7 @@
   --negative-margin-multiplier: 3;
   --carousel-negative-margin: calc((var(--item-width) + var(--gap)) * -1 * var(--negative-margin-multiplier));
   --color-background: var(--color-surface-secondary);
+  --item-shadow-height: 26px;
   overflow: hidden;
 
   @include phone {
@@ -85,6 +86,7 @@
     overflow-x: scroll;
     scroll-snap-type: x mandatory;
     scrollbar-width: none;
+    padding: 0 0 var(--item-shadow-height);
 
     &::-webkit-scrollbar {
       display: none;
     max-width: 100px;
     margin-left: auto;
     margin-right: auto;
-    margin-top: var(--sp-sm-md);
+    //margin-top: calc(var(--item-shadow-height) * -1);
 
     @include tablet {
       position: absolute;