Forked from workeffortwaste/woocommerce-to-css-grid.css
Created
January 10, 2024 00:22
-
-
Save bhwebworks/c0e4f7b0c7e4ab10c1cdcc975578fec2 to your computer and use it in GitHub Desktop.
woocommerce-to-css-grid
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Convert the standard WooCommerce products list into a modern responsive grid. */ | |
ul.products { | |
--grid-gap: 32px; | |
--auto-grid-min-size: 200px; | |
grid-template-columns: repeat(auto-fill, minmax(var(--auto-grid-min-size), 1fr)); | |
grid-gap: var(--grid-gap); | |
display: grid; | |
} | |
ul.products:before{ | |
content:unset!important; | |
} | |
ul.products li.product { | |
width: 100%!important; | |
display:flex; | |
flex-direction:column; | |
} | |
ul.products li.product a.woocommerce-loop-product__link { | |
flex-grow: 1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment