Created
September 2, 2015 00:37
-
-
Save drrobotnik/14d2a213a42740f8a73f to your computer and use it in GitHub Desktop.
woo responsive table
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
@media screen and (max-width: 600px) { | |
.woocommerce-cart, | |
.woocommerce-checkout { | |
table { | |
border: none !important; | |
&.shop_table { | |
margin: 0; | |
} | |
thead { | |
display: none; | |
} | |
tr.cart_item { | |
margin-bottom: 10px; | |
display: block; | |
border-bottom: 2px solid #ddd; | |
td { | |
display: block; | |
text-align: right; | |
font-size: 13px; | |
border-right: 1px solid #ccc; | |
border-left: 1px solid #ccc; | |
border-bottom: 1px dotted #ccc; | |
} | |
td:last-child { | |
border-bottom: 0; | |
} | |
td:before { | |
content: attr(class); | |
float: left; | |
text-transform: uppercase; | |
font-weight: bold; | |
font-family: "Steelfish", sans-serif; | |
text-transform: uppercase; | |
font-weight: 400; | |
font-size: 100%; | |
} | |
td.product-remove:before { | |
content: ''; | |
} | |
} | |
tr.cart_item:nth-child(even) { | |
background-color: #f7f7f7; | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment