MrBoBo69

Category CSS - Shopify

Feb 5th, 2025
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.89 KB | Source Code | 0 0
  1. .custom_cat_sec {
  2.     width: 100%;
  3.     height: 100%;
  4.     display: grid;
  5.     gap: 20px;
  6.     padding: 10px 30px;
  7.     margin-bottom: 0;
  8.     justify-content: center;
  9.     grid-auto-flow:column;
  10.     overflow-x:auto;
  11.     scroll-snap-type: x mandatory;
  12.     scroll-padding:30px;
  13.     scroll-behavior: smooth;
  14.     }
  15.   .custom_cat_sec::-webkit-scrollbar{
  16.     display:none;
  17.   }
  18.   .custom_grids{
  19.     padding: 20px 0;
  20.     scroll-snap-align:start;
  21.     -webkit-tap-highlight-color: transparent;
  22.   }
  23.   .custom_grids p{
  24.       text-align: center;
  25.       font-size: clamp(90%,2.5vw,100%);
  26.       word-break: normal;
  27.       margin-top: 0.8rem;
  28.       line-height: 1.2em;
  29.       width: var(--img-width);
  30.       height: auto;
  31.   }
  32.  
  33.     .collage_Images {
  34.       border-radius: var(--img-radius);
  35.       width: var(--img-width);
  36.       aspect-ratio: 1;
  37.     }
  38.  
  39.    .objfitCover{
  40.       object-fit: var(--img-fit) !important;
  41.     }
  42.     .custom_grids:hover .collage_Images{
  43.       transform: scale(1.04) translateY(-1px);
  44.       box-shadow: rgba(17, 17, 26, 0.1) 0px 2px 8px,
  45.                   rgba(17, 17, 26, 0.1) 0px 4px 12px,
  46.                   rgba(17, 17, 26, 0.1) 0px 8px 23px;
  47.       border: 2px solid white;
  48.       border-radius: var(--img-radius);
  49.       transition: transform 0.2s ease;
  50.       cursor: pointer;
  51.     }
  52.    
  53.     @media screen and (max-width: 580px) {
  54.           .custom_cat_sec {
  55.             max-width: max-content;
  56.             padding: 5px 20px;
  57.             gap: 10px;
  58.             justify-content: var(--content-align-mo);
  59.           }
  60.   }
  61.  
  62.           .collage_Title,.collage_Description{
  63.             margin: 1% 0;
  64.             text-align: center;
  65.             line-height: 1em;
  66.             padding: 0 2rem;
  67.           }
  68.           .collage_Description{
  69.             padding: 0 1em 1em;
  70.   }
  71.         .image_outline{
  72.             border: var(--img-border) solid var(--border-color);
  73.           }
Tags: CSS
Advertisement
Add Comment
Please, Sign In to add comment