Skip to content

Commit

Permalink
Merge branch 'release/1.9.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
Misplon committed Aug 14, 2022
2 parents ba8ea01 + 2f32f5b commit f4fc3f9
Show file tree
Hide file tree
Showing 13 changed files with 532 additions and 224 deletions.
2 changes: 1 addition & 1 deletion inc/customizer-library
2 changes: 1 addition & 1 deletion inc/layouts/home.json

Large diffs are not rendered by default.

50 changes: 40 additions & 10 deletions inc/styles.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ function polestar_build_styles() {
'.breadcrumbs a:hover',
'.widget-area .widget a:hover',
'.site-footer .widget a:hover',
'.widget #wp-calendar tfoot #prev a:hover',
'.widget #wp-calendar tfoot #next a:hover',
'.calendar_wrap .wp-calendar-nav .wp-calendar-nav-prev a:hover',
'.calendar_wrap .wp-calendar-nav .wp-calendar-nav-next a:hover',
'.entry-meta > span a:hover',
'.site-content .more-wrapper a:hover',
'.yarpp-related ol li .related-post-title:hover',
Expand Down Expand Up @@ -128,9 +128,18 @@ function polestar_build_styles() {
'.woocommerce a .star-rating',
'.woocommerce .price ins',
'.woocommerce .product .summary .woocommerce-review-link:hover',
'.woocommerce .product .product-info-wrapper .woocommerce-review-link:hover',
'.woocommerce .product .summary .variations .reset_variations:hover',
'.woocommerce .product .product-info-wrapper .variations .reset_variations:hover',
'.so-panel .variations .reset_variations:hover',
'.so-panel .variations .reset_variations:hover',
'.woocommerce .product .summary .woocommerce-grouped-product-list td a:hover',
'.woocommerce .product .product-info-wrapper .woocommerce-grouped-product-list td a:hover',
'.woocommerce .product .summary .stock',
'.woocommerce .product .product-info-wrapper .stock',
'.woocommerce .product .summary .product_meta a:hover',
'.woocommerce .product .product-info-wrapper .product_meta a:hover',
'.woocommerce .product .woocommerce-tabs .wc-tabs li.active a',
'.woocommerce .product .woocommerce-Reviews .stars a:hover',
'.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover'
),
Expand Down Expand Up @@ -203,8 +212,8 @@ function polestar_build_styles() {
'#mobile-navigation ul li .dropdown-toggle',
'.comment-navigation a',
'.widget #wp-calendar caption',
'.widget #wp-calendar tfoot #prev a',
'.widget #wp-calendar tfoot #next a',
'.calendar_wrap .wp-calendar-nav .wp-calendar-nav-prev a',
'.calendar_wrap .wp-calendar-nav .wp-calendar-nav-next a',
'.site-content .entry-title',
'.site-content .entry-title a',
'.site-content .more-wrapper a',
Expand All @@ -227,7 +236,18 @@ function polestar_build_styles() {
// Color.
Customizer_Library_Styles()->add( array(
'selectors' => array(
'.site-header .shopping-cart-text'
'.site-header .shopping-cart-text',
'.woocommerce .product .summary .variations .label label',
'.woocommerce .product .product-info-wrapper .variations .label label',
'.so-panel .variations .label label',
'.woocommerce form.woocommerce-ordering .ordering-selector-wrapper:hover',
'.woocommerce form .polestar-variations-wrapper .ordering-selector-wrapper:hover',
'.woocommerce form.woocommerce-ordering .ordering-selector-wrapper .ordering-dropdown li:hover',
'.woocommerce form .polestar-variations-wrapper .ordering-selector-wrapper .ordering-dropdown li:hover',
'.woocommerce .product .summary .product_meta',
'.woocommerce .product .product-info-wrapper .product_meta',
'.woocommerce .product .shop_attributes tr th.woocommerce-product-attributes-item__label',
'.site-header .shopping-cart-text',
),
'declarations' => array(
'color' => $color
Expand All @@ -237,7 +257,9 @@ function polestar_build_styles() {
// Fill.
Customizer_Library_Styles()->add( array(
'selectors' => array(
'.site-header .shopping-cart-link svg'
'.site-header .shopping-cart-link svg',
'.woocommerce form.woocommerce-ordering .ordering-selector-wrapper.open-dropdown svg path',
'.woocommerce form .polestar-variations-wrapper .ordering-selector-wrapper.open-dropdown svg path',
),
'declarations' => array(
'fill' => $color
Expand Down Expand Up @@ -304,8 +326,8 @@ function polestar_build_styles() {
// Fill.
Customizer_Library_Styles()->add( array(
'selectors' => array(
'.woocommerce .woocommerce-ordering .ordering-selector-wrapper:hover',
'.woocommerce .woocommerce-ordering .ordering-selector-wrapper:hover svg path'
'.woocommerce form.woocommerce-ordering .ordering-selector-wrapper:hover svg path',
'.woocommerce form .polestar-variations-wrapper .ordering-selector-wrapper:hover svg path'
),
'declarations' => array(
'fill' => $color
Expand Down Expand Up @@ -412,7 +434,12 @@ function polestar_build_styles() {
'.woocommerce .products .product .price',
'.woocommerce .price',
'.woocommerce .product .summary .variations .reset_variations',
'.woocommerce .product .product-info-wrapper .variations .reset_variations',
'.so-panel .variations .reset_variations',
'.woocommerce .product .summary .woocommerce-grouped-product-list td a',
'.woocommerce .product .product-info-wrapper .woocommerce-grouped-product-list td a',
'.woocommerce .product .summary .product_meta a',
'.woocommerce .product .product-info-wrapper .product_meta a',
'.woocommerce .product .woocommerce-Reviews .meta a:hover',
'.woocommerce-cart table.cart .cart_item a',
'.woocommerce-account .woocommerce-MyAccount-navigation ul li a'
Expand All @@ -426,7 +453,8 @@ function polestar_build_styles() {
Customizer_Library_Styles()->add( array(
'selectors' => array(
'.site-header .shopping-cart-link:hover svg',
'.woocommerce .woocommerce-ordering .ordering-selector-wrapper svg path',
'.woocommerce form.woocommerce-ordering .ordering-selector-wrapper svg path',
'.woocommerce form .polestar-variations-wrapper .ordering-selector-wrapper svg path',
),
'declarations' => array(
'fill' => $color
Expand Down Expand Up @@ -482,8 +510,10 @@ function polestar_build_styles() {
'.woocommerce .woocommerce-breadcrumb',
'.woocommerce .woocommerce-breadcrumb a',
'.woocommerce .woocommerce-result-count',
'.woocommerce .woocommerce-ordering .ordering-selector-wrapper .ordering-dropdown li',
'.woocommerce form.woocommerce-ordering .ordering-selector-wrapper .ordering-dropdown li',
'.woocommerce form .polestar-variations-wrapper .ordering-selector-wrapper .ordering-dropdown li',
'.woocommerce .product .summary .woocommerce-review-link',
'.woocommerce .product .product-info-wrapper .woocommerce-review-link',
'.woocommerce .product .woocommerce-Reviews .comment-date',
'.woocommerce-cart table.cart .cart_item a:hover'
),
Expand Down
7 changes: 6 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Contributors: Puro

Tags: one-column, two-columns, left-sidebar, right-sidebar, custom-background, custom-colors, custom-menu, custom-logo, featured-images, footer-widgets, full-width-template, post-formats, sticky-post, theme-options, threaded-comments, translation-ready, blog, e-commerce

Tested up to: 5.9
Tested up to: 6.0
Requires at least: 4.7
Requires PHP: 5.6.20
License: GPLv2 or later
Expand Down Expand Up @@ -152,6 +152,11 @@ Released under [GPL version 2](https://www.gnu.org/licenses/old-licenses/gpl-2.0

== Changelog ==

= 1.9.0 - 14 August 2022 =
* Updated Calendar Widget styling for new markup.
* Updated Customizer Library.
* WooCommerce: Added custom single product variation styling and functionality.

= 1.8.1 - 03 February 2022 =
* WooCommerce: Fixed single product variation drop-down alignment.
* Smooth Scrolling: Update to allow for animation interruption when another page jump is clicked.
Expand Down
31 changes: 19 additions & 12 deletions sass/site/secondary/_widgets.scss
Original file line number Diff line number Diff line change
Expand Up @@ -98,25 +98,32 @@
text-align: center;
}
}
}

tfoot {
font-size: 13px;
.calendar_wrap .wp-calendar-nav {
font-size: 13px;

#prev,
#next {
padding-top: 4px;
.wp-calendar-nav-prev,
.wp-calendar-nav-next {
display: inline-block;
padding-top: 4px;
width: 48%;

a {
color: $color__text-dark;
a {
color: $color__text-dark;
margin-left: 10px;

&:hover {
color: $color__accent;
}
&:hover {
color: $color__accent;
}
}
}

.wp-calendar-nav-next {
text-align: right;

#next {
text-align: right;
a {
margin: 0 10px 0 0;
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion sass/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Author URI: https://purothemes.com/
Theme URI: https://purothemes.com/themes/polestar/
Description: Lead the way with Polestar. It's fast loading, responsive, lightweight and flexible design is perfectly suited for building dynamic pages with SiteOrigin's Page Builder and selling with WooCommerce. Ecommerce features include a menu mini-cart and product quick-view. Polestar features a sticky header, beautiful header search, scroll to top and just the right amount of Customizer theme settings. Page level settings let you adjust the theme layout on a page by page basis, perfect for landing pages. If you run a blog, Polestar is ready with awesome features including a full-width posts slider integrated with Jetpack Featured Content, an author box and related posts section. For assistance, check out our <a href="http://purothemes.com/documentation/">theme documentation</a> (http://purothemes.com/documentation/) or ask a question on our <a href="https://purothemes.com/support/">support forum</a> (https://purothemes.com/support/).
Version: dev
Tested up to: 5.9
Tested up to: 6.0
Requires at least: 4.7
Requires PHP: 5.6.20
License: GNU General Public License v2 or later
Expand Down
98 changes: 1 addition & 97 deletions sass/woocommerce/_archive.scss
Original file line number Diff line number Diff line change
Expand Up @@ -51,103 +51,7 @@
.woocommerce-ordering {
display: block;
float: right;

select {
font-size: 13px;
}

@media (max-width: 768px) {
float: none;
}

.ordering-selector-wrapper {
border: 1px solid $color__background-hr;
border-radius: 2px;
cursor: pointer;
font-size: 13px;
line-height: normal;
padding: 10px 15px;
position: relative;

.current {
display: inline-block;
}

svg {
float: right;
margin: 5px 0 0 10px;
transform: rotate(0deg);

path {
fill: $color__text-medium;
}
}

&:hover {
color: $color__text-dark;

svg path {
fill: $color__text-dark;
}
}

.ordering-dropdown-container {
left: -1px;
min-height: 1px;
position: absolute;
right: -1px;
top: 100%;
z-index: 999;
}

.ordering-dropdown {
background: #fff;
border: 1px solid $color__background-hr;
box-shadow: 0 1px 1px rgba(0, 0, 0, .07);
display: block;
list-style: none;
margin: 0;
opacity: 0;
padding: 5px 0;
position: absolute;
top: 0;
transition: all 0.15s ease-in;
transform-origin: center top;
transform: scale(0.95);
visibility: hidden;
width: 100%;

li {
color: $color__text-light;
cursor: pointer;
padding: 10px 15px;
position: relative;
white-space: nowrap;

&:hover {
color: $color__text-dark;
}
}
}

&.open-dropdown {

.ordering-dropdown {
opacity: 1;
transform: scale(1);
visibility: visible;
}

svg {
transform: rotate(180deg);

path {
fill: $color__text-dark;
}
}
}
}
}
}

// Sale Sticker.
.onsale {
Expand Down
Loading

0 comments on commit f4fc3f9

Please sign in to comment.