Skip to content

Commit

Permalink
Merge branch 'dev' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
razwan committed Jun 17, 2022
2 parents 214efd7 + 7c34e04 commit 12ed01d
Show file tree
Hide file tree
Showing 46 changed files with 167 additions and 231 deletions.
2 changes: 1 addition & 1 deletion dist/css/block-editor-rtl.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/css/block-editor.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/css/blocks/editor-rtl.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/css/blocks/editor.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/css/blocks/nova-blocks/conversations-rtl.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/css/blocks/nova-blocks/conversations.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/css/blocks/style-rtl.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/css/blocks/style.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/css/theme/components-rtl.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/css/theme/components.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/css/theme/style-rtl.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/css/theme/style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/css/woocommerce/block-editor-rtl.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/css/woocommerce/block-editor.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/css/woocommerce/style-rtl.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/css/woocommerce/style.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion inc/integrations/woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ function anima_add_end_wrapper_after_related() {
}

function anima_add_start_main_content() {
echo '<div class="nb-sidecar nb-sidecar--sidebar-right nb-sidecar--sidebar-medium nb-content-layout-grid">' .
echo '<div class="nb-sidecar nb-sidecar--sidebar-none nb-content-layout-grid">' .
'<div class="nb-sidecar-area nb-sidecar-area--content nb-content-layout-grid">';
}

Expand Down
3 changes: 1 addition & 2 deletions src/scss/block-editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ $assets-folder-path: '../../assets';
@import "setup";
@import "social-links";

@import "components/dark-mode-button";
@import "components/search-nav-button";
@import "components/navigation-icons";

.block-editor-button-block-appender {
box-shadow: inset 0 0 0 1px currentColor;
Expand Down
80 changes: 0 additions & 80 deletions src/scss/components/_dark-mode-button.scss

This file was deleted.

91 changes: 91 additions & 0 deletions src/scss/components/_navigation-icons.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
:is(.menu-item--search, .menu-item--dark-mode) {
--menu-item-icon-width: calc( var(--icons-size-multiplier) * var(--current-font-size) );

a {
color: currentColor;
text-decoration: none;

&:hover:after {
background-color: var(--sm-current-accent-color);
}
}

&:not(.no-icon) {

:is(&, #specific) a {
padding-left: calc(var(--menu-item-icon-width) + var(--theme-spacing-smallest));

&:after {
content: '';
position: absolute;
top: 50%;
left: 0;

display: block;
width: var(--menu-item-icon-width);
height: var(--menu-item-icon-width);

background-color: currentColor;

mask: no-repeat 50% 50%;
mask-image: var(--menu-item-icon-mask-image);
mask-size: contain;
-webkit-mask: no-repeat 50% 50%;
-webkit-mask-image: var(--menu-item-icon-mask-image);
-webkit-mask-size: contain;

transition: all .25s $ease;
transform: translateY(-50%);
}

:is(&, #specific):before {
left: calc(var(--menu-item-icon-width) + var(--theme-spacing-smallest))
}
}
}

&.icon-only {

a {
text-indent: -999999px;
height: 100%;

&:before {
content: '';
position: absolute;
top: 50%;
left: 50%;
min-height: 45px;
min-width: 45px;
transform: translate(-50%, -50%);
}

&:after {
left: 50%;
transform: translate(-50%, -50%);
}
}
}
}

.menu-item--dark-mode {
--menu-item-icon-mask-image: url(#{ $icon-dark-mode-path });

.is-dark &:not(.no-icon) a:after {
transform: translateY(-50%) rotate(180deg);
}

.is-dark &.icon-only a:after {
transform: translate(-50%, -50%) rotate(180deg);
}
}

.menu-item--search {
--menu-item-icon-mask-image: url(#{ $icon-search-path });

@include below(lap) {
.nb-navigation & {
display: none;
}
}
}
82 changes: 0 additions & 82 deletions src/scss/components/_search-nav-button.scss

This file was deleted.

6 changes: 2 additions & 4 deletions src/scss/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Theme URI: https://demos.pixelgrade.com/anima
Author: Pixelgrade
Author URI: https://pixelgrade.com
Description: Anima is the soul of Pixelgrade LT's carefully crafted site-solutions. Enjoy the entirety of Pixelgrade LT!
Version: 2.0.7
Version: 2.0.8
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: __theme_txtd
Expand Down Expand Up @@ -70,8 +70,6 @@ Table of Contents
@import "components/form-helpers";
@import "components/subscribe-form";

@import "components/dark-mode-button";

/* 2.1. Site Branding */
@import "components/site-branding";

Expand All @@ -86,12 +84,12 @@ Table of Contents

/* 2.5. Navigation */
@import "components/navigation";
@import "components/navigation-icons";
@import "components/post-navigation";
@import "components/screen-reader-text";

/* 2.6. Search Form */
@import "components/search-overlay";
@import "components/search-nav-button";

/* 2.7. Logo */
@import "components/logo";
Expand Down
Loading

0 comments on commit 12ed01d

Please sign in to comment.