Skip to content

Commit

Permalink
updated button css
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob-korf committed Oct 18, 2023
1 parent 0974620 commit 56c7f0f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion css/ucb-menu.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
}

@media only screen and (max-width: 600px) {
.ucb-mobile-menu-button-div {
line-height: 2em;
}
.ucb-primary-menu-region .ucb-primary-menu-region-container,
.ucb-secondary-menu-region .ucb-secondary-menu-region-container {
padding-left: 0;
Expand Down Expand Up @@ -35,7 +38,7 @@
#example-toggle {
display: block;
max-width: 100px;
font-size: 20px;
font-size: 2em;
margin-left: auto;
}
.ucb-menu,
Expand Down
4 changes: 3 additions & 1 deletion templates/navigation/menu--main.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@
{% import _self as menus %}
{% if items %}
<nav id = "ucb-main-menu-nav">
<button id="example-toggle" aria-label="Toggle example menu">☰</button>
<div class = "ucb-mobile-menu-button-div">
<button id="example-toggle" aria-label="Toggle example menu">☰</button>
</div>
<ul id= "ucb-main-menu" {{ attributes.addClass('ucb-main-menu nav') }}>
{% for item in items %}
{%
Expand Down

0 comments on commit 56c7f0f

Please sign in to comment.