diff --git a/assets/js/src/frontend/navigation.js b/assets/js/src/frontend/navigation.js index 5d1afd3557..70c7b66b97 100644 --- a/assets/js/src/frontend/navigation.js +++ b/assets/js/src/frontend/navigation.js @@ -151,16 +151,17 @@ function handleSearch() { * Handle the mini cart position in nav. */ function handleMiniCartPosition() { - const elem = document.querySelectorAll('.header--row .nv-nav-cart'); - if (elem.length === 0) { + const item = document.querySelector('.header--row .menu-item-nav-cart'); + if (item === null) { return; } - neveEach(elem, (item) => { - const bounding = item.getBoundingClientRect(); - if (bounding.left < 0) { - item.style.left = 0; - } - }); + + const miniCart = item.querySelector('.nv-nav-cart'); + + if (miniCart !== null) { + miniCart.style.left = + item.getBoundingClientRect().left < 350 ? 0 : null; + } } window.addEventListener('resize', handleMiniCartPosition); diff --git a/assets/scss/gutenberg-editor/_typography.scss b/assets/scss/gutenberg-editor/_typography.scss index a6d22df63c..bb3bff970a 100644 --- a/assets/scss/gutenberg-editor/_typography.scss +++ b/assets/scss/gutenberg-editor/_typography.scss @@ -53,11 +53,19 @@ h6 { font-size: 16px; font-weight: normal; font-family: $default-font-family; - color: var(--nv-text-color); line-height: $line-height-base; text-transform: none; letter-spacing: normal; + &.wp-block-group.has-background { + padding: 0; + } + &:not(.wp-block-group.has-text-color){ + .wp-block{ + color: var(--nv-text-color); + } + } + &.components-placeholder { color: initial; } diff --git a/dashboard/inc/Main.php b/dashboard/inc/Main.php index 1689800fee..3147c496f4 100755 --- a/dashboard/inc/Main.php +++ b/dashboard/inc/Main.php @@ -196,14 +196,13 @@ private function get_localization() { 'upgradeURL' => esc_url( apply_filters( 'neve_upgrade_link_from_child_theme_filter', 'https://themeisle.com/themes/neve/upgrade/?utm_medium=aboutneve&utm_source=freevspro&utm_campaign=neve' ) ), 'supportURL' => esc_url( 'https://wordpress.org/support/theme/neve/' ), 'docsURL' => esc_url( 'https://docs.themeisle.com/article/946-neve-doc' ), + 'codexURL' => esc_url( 'https://codex.nevewp.com/' ), 'strings' => [ 'proTabTitle' => wp_kses_post( $plugin_name ), /* translators: %s - Theme name */ 'header' => sprintf( __( '%s Options', 'neve' ), wp_kses_post( $theme_name ) ), /* translators: %s - Theme name */ 'starterSitesCardDescription' => sprintf( __( '%s now comes with a sites library with various designs to pick from. Visit our collection of demos that are constantly being added.', 'neve' ), wp_kses_post( $theme_name ) ), - /* translators: %s - "Public roadmap" */ - 'sidebarCommunityDescription' => sprintf( __( 'Share opinions, ask questions and help each other on our Neve community! Keep up with what we’re working on and vote to help us prioritize on our %s.', 'neve' ), wp_kses_post( '' . __( 'public roadmap', 'neve' ) . '' ) ), /* translators: %s - Theme name */ 'starterSitesTabDescription' => sprintf( __( 'With %s, you can choose from multiple unique demos, specially designed for you, that can be installed with a single click. You just need to choose your favorite, and we will take care of everything else.', 'neve' ), wp_kses_post( $theme_name ) ), /* translators: %s - Theme name */ @@ -222,7 +221,7 @@ private function get_localization() { 'licenseCardDescription' => sprintf( // translators: store name (Themeisle) __( 'Enter your license from %1$s purchase history in order to get plugin updates', 'neve' ), - 'ThemeIsle' + 'ThemeIsle' . esc_html__( '(opens in new tab)', 'neve' ) . '' ), ], 'changelog' => $this->cl_handler->get_changelog( get_template_directory() . '/CHANGELOG.md' ), diff --git a/dashboard/src/Components/Content/FreePro.js b/dashboard/src/Components/Content/FreePro.js index e2d7539faa..828c98a37b 100644 --- a/dashboard/src/Components/Content/FreePro.js +++ b/dashboard/src/Components/Content/FreePro.js @@ -28,8 +28,16 @@ const Pro = () => { 'neve' )}

- diff --git a/dashboard/src/Components/Content/Help.js b/dashboard/src/Components/Content/Help.js index 5f36b62295..b48d63443d 100644 --- a/dashboard/src/Components/Content/Help.js +++ b/dashboard/src/Components/Content/Help.js @@ -3,12 +3,12 @@ import Card from '../Card'; import { __ } from '@wordpress/i18n'; import { Fragment } from '@wordpress/element'; -import { Button, Icon } from '@wordpress/components'; +import { Button, Icon, ExternalLink } from '@wordpress/components'; const Help = (props) => { const { setTab } = props; - let { docsURL, supportURL, whiteLabel, assets } = neveDash; + let { docsURL, codexURL, supportURL, whiteLabel, assets } = neveDash; const { supportCardDescription, docsCardDescription } = neveDash.strings; if (whiteLabel && whiteLabel.agencyURL) { @@ -30,12 +30,9 @@ const Help = (props) => { 'neve' )} > - + )} { title={__('Documentation', 'neve')} description={docsCardDescription} > - + {!whiteLabel && ( - + + {__('(opens in a new tab)', 'neve')} + {__('Join our Facebook Group', 'neve')} - + )} @@ -66,12 +74,9 @@ const Help = (props) => { 'neve' )} > - + )} @@ -80,7 +85,15 @@ const Help = (props) => { title={__('Contact Support', 'neve')} description={supportCardDescription} > - @@ -94,12 +107,9 @@ const Help = (props) => { 'neve' )} > - + )} {!whiteLabel && ( @@ -110,6 +120,7 @@ const Help = (props) => { 'Want to get the gist on the latest theme changes? Just consult our changelog below to get a taste of the recent fixes and features implemented.', 'neve' )} + ßßßßß >