remove deep nesting where not really necessary

This commit is contained in:
refael iliaguyev 2017-04-04 20:14:33 +03:00
parent 642b8f4e73
commit 4f5f3f251e
1 changed files with 299 additions and 398 deletions

View File

@ -39,10 +39,8 @@ p.demo_store,
} }
} }
.admin-bar { .admin-bar p.demo_store {
p.demo_store {
top: 32px; top: 32px;
}
} }
/** /**
@ -103,12 +101,10 @@ p.demo_store,
} }
} }
.quantity { .quantity .qty {
.qty {
width: 3.631em; width: 3.631em;
text-align: center; text-align: center;
} }
}
/** /**
* Product Page * Product Page
@ -431,11 +427,9 @@ p.demo_store,
} }
} }
.woocommerce-variation-description { .woocommerce-variation-description p {
p {
margin-bottom: 1em; margin-bottom: 1em;
} }
}
.reset_variations { .reset_variations {
visibility: hidden; visibility: hidden;
@ -514,8 +508,7 @@ p.demo_store,
} }
} }
ul.products { ul.products li.product {
li.product {
.onsale { .onsale {
top: 0; top: 0;
right: 0; right: 0;
@ -581,7 +574,6 @@ p.demo_store,
} }
} }
} }
}
.woocommerce-result-count { .woocommerce-result-count {
margin: 0 0 1em; margin: 0 0 1em;
@ -685,14 +677,12 @@ p.demo_store,
} }
} }
&.added { &.added::after {
&::after {
font-family: 'WooCommerce'; font-family: 'WooCommerce';
content: '\e017'; content: '\e017';
margin-left: 0.53em; margin-left: 0.53em;
vertical-align: bottom; vertical-align: bottom;
} }
}
&:hover { &:hover {
background-color: $secondary - #111; background-color: $secondary - #111;
@ -911,22 +901,17 @@ p.demo_store,
} }
} }
.products { .products .star-rating {
.star-rating {
display: block; display: block;
margin: 0 0 0.5em; margin: 0 0 0.5em;
float: none; float: none;
} }
}
.hreview-aggregate { .hreview-aggregate .star-rating {
.star-rating {
margin: 10px 0 0; margin: 10px 0 0;
} }
}
#review_form { #review_form #respond {
#respond {
@include clearfix(); @include clearfix();
position: static; position: static;
margin: 0; margin: 0;
@ -939,18 +924,15 @@ p.demo_store,
margin: 0 0 10px; margin: 0 0 10px;
} }
.form-submit { .form-submit input {
input {
left: auto; left: auto;
} }
}
textarea { textarea {
box-sizing: border-box; box-sizing: border-box;
width: 100%; width: 100%;
} }
} }
}
p.stars { p.stars {
a { a {
@ -974,20 +956,14 @@ p.demo_store,
text-indent: 0; text-indent: 0;
} }
&:hover { &:hover ~ a::before {
~ a::before {
content: '\e021'; content: '\e021';
} }
} }
}
&:hover { &:hover a::before {
a {
&::before {
content: '\e020'; content: '\e020';
} }
}
}
&.selected { &.selected {
a.active { a.active {
@ -1000,13 +976,11 @@ p.demo_store,
} }
} }
a:not( .active ) { a:not( .active )::before {
&::before {
content: '\e020'; content: '\e020';
} }
} }
} }
}
/** /**
* Tables * Tables
@ -1070,14 +1044,12 @@ p.demo_store,
} }
} }
tbody:first-child { tbody:first-child tr:first-child {
tr:first-child {
th, th,
td { td {
border-top: 0; border-top: 0;
} }
} }
}
tfoot td, tfoot td,
tfoot th, tfoot th,
@ -1121,14 +1093,12 @@ p.demo_store,
&:last-child { &:last-child {
text-align: left; text-align: left;
} }
.woocommerce-MyAccount-downloads-file { .woocommerce-MyAccount-downloads-file::before {
&::before {
content: '\2193'; content: '\2193';
display: inline-block; display: inline-block;
} }
} }
} }
}
td.product-name { td.product-name {
dl.variation, .wc-item-meta { dl.variation, .wc-item-meta {
@ -1161,7 +1131,6 @@ p.demo_store,
min-width: 80px; min-width: 80px;
} }
/** /**
* Cart sidebar * Cart sidebar
*/ */
@ -1237,8 +1206,7 @@ p.demo_store,
} }
} }
.cart_list { .cart_list li {
li {
padding-left: 2em; padding-left: 2em;
position: relative; position: relative;
padding-top: 0; padding-top: 0;
@ -1249,7 +1217,6 @@ p.demo_store,
left: 0; left: 0;
} }
} }
}
.buttons { .buttons {
@include clearfix(); @include clearfix();
@ -1263,8 +1230,7 @@ p.demo_store,
/** /**
* Forms * Forms
*/ */
form { form .form-row {
.form-row {
padding: 3px; padding: 3px;
margin: 0 0 6px; margin: 0 0 6px;
@ -1359,7 +1325,6 @@ p.demo_store,
line-height: normal; line-height: normal;
} }
} }
}
form.login, form.login,
form.checkout_coupon, form.checkout_coupon,
@ -1438,8 +1403,7 @@ p.demo_store,
/** /**
* Layered nav widget * Layered nav widget
*/ */
.widget_layered_nav { .widget_layered_nav ul {
ul {
margin: 0; margin: 0;
padding: 0; padding: 0;
border: 0; border: 0;
@ -1456,19 +1420,13 @@ p.demo_store,
} }
} }
li.chosen { li.chosen a::before {
a {
&::before {
@include iconbefore( '\e013' ); @include iconbefore( '\e013' );
color: $red; color: $red;
} }
} }
}
}
}
.widget_layered_nav_filters { .widget_layered_nav_filters ul {
ul {
margin: 0; margin: 0;
padding: 0; padding: 0;
border: 0; border: 0;
@ -1491,7 +1449,6 @@ p.demo_store,
} }
} }
} }
}
/** /**
* Price filter widget * Price filter widget
@ -1508,9 +1465,6 @@ p.demo_store,
.button { .button {
font-size: 1.15em; font-size: 1.15em;
}
.button {
float: left; float: left;
} }
} }
@ -1575,8 +1529,7 @@ p.demo_store,
/** /**
* Rating Filter Widget * Rating Filter Widget
*/ */
.widget_rating_filter { .widget_rating_filter ul {
ul {
margin: 0; margin: 0;
padding: 0; padding: 0;
border: 0; border: 0;
@ -1598,16 +1551,11 @@ p.demo_store,
} }
} }
li.chosen { li.chosen a::before {
a {
&::before {
@include iconbefore( '\e013' ); @include iconbefore( '\e013' );
color: $red; color: $red;
} }
} }
}
}
}
} }
/** /**
@ -1688,18 +1636,8 @@ button.pswp__button--zoom:hover {
/** /**
* Right to left styles * Right to left styles
*/ */
.rtl { .rtl.woocommerce div.product div.images .flex-control-thumbs li {
&.woocommerce {
div.product {
div.images {
.flex-control-thumbs {
li {
float: right; float: right;
}
}
}
}
}
} }
.woocommerce-message { .woocommerce-message {
@ -1736,8 +1674,7 @@ button.pswp__button--zoom:hover {
@include clearfix(); @include clearfix();
} }
.addresses { .addresses .title {
.title {
@include clearfix(); @include clearfix();
h3 { h3 {
@ -1748,23 +1685,17 @@ button.pswp__button--zoom:hover {
float: right; float: right;
} }
} }
}
ol.commentlist.notes {
li.note {
ol.commentlist.notes li.note {
p.meta { p.meta {
font-weight: 700; font-weight: 700;
margin-bottom: 0; margin-bottom: 0;
} }
.description { .description p:last-child {
p:last-child {
margin-bottom: 0; margin-bottom: 0;
} }
} }
}
}
ul.digital-downloads { ul.digital-downloads {
margin-left: 0; margin-left: 0;
padding-left: 0; padding-left: 0;
@ -1806,9 +1737,7 @@ button.pswp__button--zoom:hover {
vertical-align: middle; vertical-align: middle;
} }
td.actions { td.actions .coupon .input-text {
.coupon {
.input-text {
float: left; float: left;
-webkit-box-sizing: border-box; -webkit-box-sizing: border-box;
-moz-box-sizing: border-box; -moz-box-sizing: border-box;
@ -1819,8 +1748,6 @@ button.pswp__button--zoom:hover {
outline: 0; outline: 0;
line-height: 1; line-height: 1;
} }
}
}
input { input {
margin: 0; margin: 0;
@ -1850,20 +1777,16 @@ button.pswp__button--zoom:hover {
display: block; display: block;
} }
.shipping-calculator-button { .shipping-calculator-button::after {
&::after {
@include iconafter( '\e019' ); @include iconafter( '\e019' );
} }
} }
}
.cart_totals { .cart_totals {
p { p small {
small {
color: $subtext; color: $subtext;
font-size: 0.83em; font-size: 0.83em;
} }
}
table { table {
border-collapse: separate; border-collapse: separate;
@ -1908,14 +1831,10 @@ button.pswp__button--zoom:hover {
} }
} }
.cross-sells { .cross-sells ul.products li.product {
ul.products {
li.product {
margin-top: 0; margin-top: 0;
} }
} }
}
}
.checkout { .checkout {
.col-2 { .col-2 {
h3#ship-to-different-address { h3#ship-to-different-address {
@ -2166,20 +2085,15 @@ button.pswp__button--zoom:hover {
/** /**
* Twenty Eleven specific styles * Twenty Eleven specific styles
*/ */
#content.twentyeleven { #content.twentyeleven .woocommerce-pagination a {
.woocommerce-pagination {
a {
font-size: 1em; font-size: 1em;
line-height: 1; line-height: 1;
}
}
} }
/** /**
* Twenty Thirteen specific styles * Twenty Thirteen specific styles
*/ */
.single-product { .single-product .twentythirteen {
.twentythirteen {
.entry-summary, .entry-summary,
#reply-title, #reply-title,
#respond #commentform { #respond #commentform {
@ -2189,42 +2103,29 @@ button.pswp__button--zoom:hover {
p.stars { p.stars {
clear: both; clear: both;
} }
}
} }
.twentythirteen { .twentythirteen .woocommerce-breadcrumb {
.woocommerce-breadcrumb {
padding-top: 40px; padding-top: 40px;
}
} }
/** /**
* Twenty Fourteen specific styles * Twenty Fourteen specific styles
*/ */
.twentyfourteen { .twentyfourteen ul.products li.product {
ul.products {
li.product {
margin-top: 0 !important; margin-top: 0 !important;
}
}
} }
/** /**
* Twenty Sixteen specific styles * Twenty Sixteen specific styles
*/ */
body:not( .search-results ) { body:not( .search-results ) .twentysixteen .entry-summary {
.twentysixteen {
.entry-summary {
color: inherit; color: inherit;
font-size: inherit; font-size: inherit;
line-height: inherit; line-height: inherit;
}
}
} }
.twentysixteen { .twentysixteen .price ins {
.price ins {
background: inherit; background: inherit;
color: inherit; color: inherit;
}
} }