Skip to content

Commit 6e52756

Browse files
release: fixes
- Updated dependencies
2 parents e822f10 + 6c51e86 commit 6e52756

5 files changed

Lines changed: 49 additions & 9 deletions

File tree

assets/css/src/blocks/_navigation.scss

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,35 @@
2424
.wp-block-navigation__submenu-container {
2525
gap: 24px !important;
2626
}
27+
28+
.wp-block-navigation__responsive-container-content {
29+
30+
.wp-block-navigation-item {
31+
display: flex;
32+
justify-content: space-between;
33+
flex-direction: row;
34+
flex-wrap: wrap;
35+
align-items: center;
36+
padding: 0 24px;
37+
width: 100vw;
38+
box-sizing: border-box;
39+
40+
.wp-block-navigation__submenu-container {
41+
display: none;
42+
}
43+
44+
.wp-block-navigation__submenu-icon {
45+
display: inline-block;
46+
cursor: pointer;
47+
}
48+
49+
&.is-submenu-open > .wp-block-navigation__submenu-container {
50+
display: block;
51+
width: 100%;
52+
padding: 0;
53+
padding-top: var(--wp--style--block-gap, 2em);
54+
}
55+
}
56+
}
57+
2758
}

assets/js/src/script.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/* global jQuery */
2+
3+
jQuery( document ).ready( ( $ ) => {
4+
$( '.wp-block-navigation-submenu__toggle' ).on( 'click', function () {
5+
$( this ).parent( 'li' ).toggleClass( 'is-submenu-open' );
6+
} );
7+
} );

composer.lock

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

inc/Assets_Manager.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ class Assets_Manager {
2020
'editor-css' => 'riverbank-editor',
2121
'welcome-notice' => 'riverbank-welcome-notice',
2222
'design-pack-notice' => 'riverbank-design-pack-notice',
23+
'frontend-js' => 'riverbank-script',
2324
);
2425

2526
/**

inc/Core.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ public function setup() {
9797
*/
9898
public function enqueue() {
9999
Assets_Manager::enqueue_style( Assets_Manager::ASSETS_SLUGS['frontend-css'], 'style' );
100+
Assets_Manager::enqueue_script( Assets_Manager::ASSETS_SLUGS['frontend-js'], 'script', true, array( 'jquery' ) );
100101
}
101102

102103
/**

0 commit comments

Comments
 (0)