Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Navigation links for site navigation using menu buttons #1499

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
82 changes: 82 additions & 0 deletions examples/menu-button/css/menu-button-links.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
.menu-button-links {
margin: 0;
font-size: 110%;
}

.menu-button-links button {
margin: 0;
padding: 6px;
display: inline-block;
position: relative;
background-color: #034575;
border: 0px solid #034575;
font-size: 0.9em;
color: white;
border-radius: 5px;
}

.menu-button-links [role="menu"] {
display: none;
position: absolute;
margin: 0;
padding: 0;
list-style: none;
}

.menu-button-links [role="menuitem"],
.menu-button-links [role="separator"] {
margin: 0;
padding: 6px;
display: block;
width: 24em;
background-color: #eee;
border: 0px solid #eee;
color: black;
border-radius: 5px;
}

.menu-button-links [role="separator"] {
padding-top: 3px;
background-image: url('../images/separator.svg');
background-position: center;
background-repeat: repeat-x;
}

.menu-button-links button svg.down {
padding-left: 0.125em;
fill: currentColor;
stroke: currentColor;
}

.menu-button-links button[aria-expanded="true"] svg.down {
transform: rotate(180deg);
}

/* focus styling */

.menu-button-links [role="menu"] {
padding: 7px 4px;
border: 2px solid #034575;
border-radius: 5px;
background-color: #eee;
}

.menu-button-links button:hover,
.menu-button-links button:focus,
.menu-button-links button[aria-expanded=true] {
padding: 4px;
border: 2px solid #034575;
background: #eee;
color: #222;
outline: none;
margin: 0;
}

.menu-button-links [role="menuitem"]:focus {
padding: 4px;
border: 2px solid #034575;
background: #034575;
color: #fff;
outline: none;
margin: 0;
}
13 changes: 13 additions & 0 deletions examples/menu-button/css/menu-button-navigation.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.menu-button-navigation {
padding: 0.25em;
background: #eee;
border: 2px solid #eee;
border-radius: 5px;
height: 2em;
}

.menu-button-navigation .menu-button-links {
margin-right: 0.5em;
float: left;
}

Loading