Hotfix for namespacing issue #1749. Turns out `.woocommerce-pge` is the global namespace, not `.woocommerce`.

This commit is contained in:
Brian Feister 2012-11-15 11:39:41 -05:00
parent 58c5bbef55
commit 7c7c6a4326
3 changed files with 883 additions and 890 deletions

File diff suppressed because one or more lines are too long

View File

@ -6,6 +6,7 @@
@tertiarytext: @primarytext; /* Text on tertiary colour bg */
@quaternary: desaturate( darken( @tertiary, 45%), 40% ); /* Price slider bg */
.woocommerce-page { // namespace to avoid conflict with common global class names
/* =Global styles/layout
-------------------------------------------------------------- */
@ -105,7 +106,6 @@ small.note {
/* =Product Page
-------------------------------------------------------------- */
.woocommerce { // namespace to avoid conflict with common global class names
div.product, #content div.product {
margin-bottom: 0;
position: relative;
@ -351,9 +351,8 @@ small.note {
}
}
}
}
/* Sale labels */
.woocommerce { // namespace to avoid conflict with common global class names
span.onsale {
min-height: 32px;
min-width: 32px;
@ -383,10 +382,9 @@ small.note {
inset 0 -1px 0 rgba(0,0,0,0.2),
0 1px 2px rgba(0,0,0,0.2);
}
}
/* Product loops */
.woocommerce { // namespace to avoid conflict with common global class names
.products ul, ul.products {
margin: 0 0 1em;
padding: 0;
@ -476,7 +474,6 @@ small.note {
margin-right: 0;
}
}
}
.woocommerce_result_count {
float: left;
@ -526,7 +523,7 @@ nav.woocommerce_pagination, #content nav.woocommerce_pagination {
/* =Buttons
-------------------------------------------------------------- */
.woocommerce { // namespace to avoid conflict with common global class names
a.button, button.button, input.button, #respond input#submit, #content input.button {
font-size: 100%;
margin: 0;
@ -614,7 +611,6 @@ nav.woocommerce_pagination, #content nav.woocommerce_pagination {
.cart .button, .cart input.button {
float:none;
}
}
/* =Quantity inputs
-------------------------------------------------------------- */
@ -951,7 +947,7 @@ td.product-quantity {
/* =Cart
-------------------------------------------------------------- */
.woocommerce { // namespace to avoid conflict with common global class names
table.cart, #content table.cart {
.product-thumbnail {
min-width: 32px;
@ -1008,7 +1004,6 @@ td.product-quantity {
line-height: 1em;
}
}
}
/* =Cart Sidebar
@ -1163,7 +1158,6 @@ ul.cart_list, ul.product_list_widget {
/* =Forms
-------------------------------------------------------------- */
.woocommerce { // namespace to avoid conflict with common global class names
form {
.form-row {
.clearfix;
@ -1230,7 +1224,7 @@ ul.cart_list, ul.product_list_widget {
text-align:left;
.border_radius(5px);
}
}
ul#shipping_method {
list-style: none outside;
margin: 0;
@ -1249,7 +1243,6 @@ ul#shipping_method {
/* =Checkout
-------------------------------------------------------------- */
.woocommerce { // namespace to avoid conflict with common global class names
.checkout {
.col-2 {
h3 {
@ -1282,7 +1275,6 @@ ul#shipping_method {
}
}
}
}
/* Payment box - appears on checkout and page page */
#payment {
@ -1594,3 +1586,4 @@ ul.digital-downloads {
right: -1px;
}
}
} // end .woocommerce-page namespacing wrap

View File

@ -1604,7 +1604,7 @@ class Woocommerce {
$atts = array(),
$wrapper = array(
'bool' => true,
'class' => 'woocommerce',
'class' => 'woocommerce-page',
'before' => null,
'after' => null
)