Hi
Could you please guide me how can I have different customized CSS rules for the same elements?
I needed to customize Woocommerce cart page and used this CSS code to have two columns cart page:
/* Two Columns Cart Page Modifications */
.woocommerce-cart .woocommerce {
display: flex;
}
/* The table containing the list of products and our custom elements */
.woocommerce-cart .woocommerce-cart-form {
flex: 1 0 75%; /* 100% at small screens; 70% on larger screens */
margin-right: 2rem;
}
/* The element that contains the cart totals */
.woocommerce-cart .cart-collaterals {
flex: 1 0 25%; /* 100% at small screens; 30% on larger screens */
margin-right: 2rem;
}
/* Some minor tweak to make sure the cart totals fill the space */
.woocommerce-cart .cart-collaterals .cart_totals {
width: 100%;
padding: 0 20px 70px;
border: 2px solid darkslategray;
margin: 0px 0px !important ;
}
Above parameters work good on LTR page but for the RTL page I need to replace margin-right: 2rem;
with margin-left: 2rem;
to gain better result. Is there any solution for it?
Thanks in advance
Omid