Skip to content

Commit

Permalink
feat: remove unyson in docs navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
mcereda95 committed Sep 18, 2023
1 parent e9287cc commit ffa7c3b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions doc/templates/uno/component/navbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,9 @@
}

/**
* has-children means there is a submenu
* menu-item-has-children means there is a submenu
*/
&.has-children {
&.menu-item-has-children {
// actual submenu
position: relative;

Expand Down Expand Up @@ -236,7 +236,7 @@
* instead of on hover. This is to displays submenus as columns.
*/
&:not([style*="display: none;"]) {
.has-children {
.menu-item-has-children {
ul {
visibility: visible;
opacity: 1;
Expand Down Expand Up @@ -337,7 +337,7 @@
width: 100%;
}

&.has-children {
&.menu-item-has-children {
position: relative;

ul {
Expand Down
2 changes: 1 addition & 1 deletion doc/templates/uno/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ document.addEventListener(
const t = e.target;
if (
window.innerWidth >= 980 ||
!t.matches("#navbar .has-children a")
!t.matches("#navbar .menu-item-has-children a")
)
return;
e.stopImmediatePropagation();
Expand Down
2 changes: 1 addition & 1 deletion doc/templates/uno/styles/main.css

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

2 changes: 1 addition & 1 deletion doc/templates/uno/styles/main.js

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

0 comments on commit ffa7c3b

Please sign in to comment.