Created
September 25, 2014 16:02
-
-
Save tessguefen/9e0911057aed423cf1e0 to your computer and use it in GitHub Desktop.
OOPC Responsive CSS (ish)
This file contains 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
/* Fixes for OOPC to be responsive | |
IMPORTANT! make sure there is not a set width on the OOPC "container" */ | |
@media (max-width: 979px) { | |
#opc_left { | |
width: 405px; | |
margin:0 auto; | |
display: block; | |
} | |
#opc_left div#customer-fields.opc-section { | |
width: 475px; | |
margin-bottom: 10px; | |
} | |
#opc_right { | |
display: block; | |
width: 405px; | |
margin:0 auto; | |
} | |
} | |
@media (max-width: 767px) { | |
#opc_left, | |
#opc_right, | |
#opc_left div#customer-fields.opc-section, | |
#opc-form #basket-contents, | |
#opc-form #shipping, | |
.opc-section, | |
#opc-form #payment { | |
width: 100%; | |
} | |
#opc-form label, #opc-form #payment-fields label { | |
text-align: left; | |
display: block; | |
width: 100%; | |
float: none; | |
} | |
#opc-form select, | |
div#shipping.opc-section select { | |
width: 93%; | |
} | |
div#payment-fields select { | |
width: 40%; | |
} | |
#opc-form .textfield, #opc-form #payment input[type="text"] { | |
width: 90%; | |
} | |
#OOPC .tablescroll_head, | |
#OOPC .tablescroll_wrapper, | |
#OOPC #basket-content-table, | |
#OOPC .tablescroll_foot { | |
width: 100% !important; | |
overflow: inherit !important; | |
height: 100% !important; | |
} | |
#OOPC .tablescroll .item-name { | |
width: 45% !important; | |
} | |
#OOPC .tablescroll .item-quantity, | |
#OOPC .tablescroll .item-price, | |
#OOPC .tablescroll .item-total { | |
width:15% !important; | |
} | |
#OOPC #opc-form #basket-contents .item-image { | |
max-width: 24%; | |
margin: 0 1% 0 0; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment