Skip to content

Commit

Permalink
Temporarily hide extra Ps.
Browse files Browse the repository at this point in the history
  • Loading branch information
jasmussen committed Mar 22, 2021
1 parent ac90a91 commit 430b010
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion packages/block-library/src/navigation/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@
display: block;
}
}

}

// Menu feature for mobile.
.wp-block-navigation__responsive-container {
display: none;
position: fixed;
Expand All @@ -39,6 +40,7 @@
right: 0;
bottom: 0;
background-color: #fff;

/*
arbitrary, high z-index
@todo: find correct value in order to make sure
Expand All @@ -47,6 +49,7 @@
z-index: 10;
align-items: center;
justify-content: center;

&.is-open {
display: flex;
flex-direction: column;
Expand All @@ -61,19 +64,30 @@
flex-direction: row;
position: relative;
background-color: inherit;

&.is-open {
flex-direction: row;

.wp-block-navigation__container {
flex-direction: row;
}
}
}

// Hide empty paragraph tags caused by wpautop. @todo, need to not output them in the first place.
[data-micromodal-close] > p,
[role="dialog"] > p,
> p {
display: none;
}
}

.wp-block-navigation__responsive-container-open {
@include break-mobile {
display: none;
}
}

.wp-block-navigation__responsive-container-close {
position: absolute;
top: 60px;
Expand All @@ -85,6 +99,7 @@
display: none;
}
}

// Justification.
.items-justified-center > ul {
justify-content: center;
Expand Down

0 comments on commit 430b010

Please sign in to comment.