-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #56 from eBay/3.3.0
Merge 3.3.0 milestone branch into master prior to release
- Loading branch information
Showing
39 changed files
with
948 additions
and
412 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ _cdn | |
_site | ||
docs/.jekyll-metadata | ||
node_modules | ||
npm-debug.log.* | ||
npm-debug.log* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,246 @@ | ||
.menu, | ||
.fake-menu, | ||
.listbox { | ||
line-height: normal; | ||
position: relative; | ||
} | ||
span.menu, | ||
span.fake-menu, | ||
span.listbox { | ||
display: inline-block; | ||
} | ||
.menu .expand-btn[aria-expanded="true"], | ||
.fake-menu .expand-btn[aria-expanded="true"], | ||
.listbox .expand-btn[aria-expanded="true"] { | ||
border-bottom: 0; | ||
} | ||
.menu .expand-btn[aria-expanded="true"] ~ .menu__items[role="menu"], | ||
.listbox .expand-btn[aria-expanded="true"] ~ .listbox__options[role="listbox"], | ||
.fake-menu .expand-btn[aria-expanded="true"] ~ .fake-menu__items { | ||
display: block; | ||
} | ||
.menu .expand-btn ~ .menu__items[role="menu"], | ||
.listbox .expand-btn ~ .listbox__options[role="listbox"], | ||
.fake-menu .expand-btn ~ .fake-menu__items { | ||
display: none; | ||
position: absolute; | ||
z-index: 1; | ||
} | ||
.menu__items[role="menu"], | ||
.listbox__options[role="listbox"], | ||
.fake-menu__items { | ||
background-color: #ffffff; | ||
border: 1px solid #c7c7c7; | ||
box-sizing: border-box; | ||
width: 100%; | ||
} | ||
span.menu__items[role="menu"], | ||
div.listbox__options[role="listbox"], | ||
span.fake-menu__items { | ||
display: inline-block; | ||
} | ||
.fake-menu__items { | ||
list-style-type: none; | ||
margin: 0; | ||
} | ||
div.menu__item[role^="menuitem"], | ||
div.listbox__option[role^="option"], | ||
a.fake-menu__item, | ||
button.fake-menu__item { | ||
background-color: #ffffff; | ||
box-sizing: border-box; | ||
cursor: pointer; | ||
display: -webkit-inline-box; | ||
display: -ms-inline-flexbox; | ||
display: inline-flex; | ||
font-size: 0.875rem; | ||
height: 100%; | ||
-webkit-box-pack: justify; | ||
-ms-flex-pack: justify; | ||
justify-content: space-between; | ||
line-height: 2.5; | ||
padding: 0 16px; | ||
width: 100%; | ||
} | ||
div.menu__item[role^="menuitem"] span:not([class*="menu__status"]), | ||
div.listbox__option[role^="option"] span:not([class*="menu__status"]), | ||
a.fake-menu__item span:not([class*="menu__status"]), | ||
button.fake-menu__item span:not([class*="menu__status"]), | ||
div.menu__item[role^="menuitem"] span:not([class*="listbox__status"]), | ||
div.listbox__option[role^="option"] span:not([class*="listbox__status"]), | ||
a.fake-menu__item span:not([class*="listbox__status"]), | ||
button.fake-menu__item span:not([class*="listbox__status"]) { | ||
overflow: hidden; | ||
white-space: nowrap; | ||
text-overflow: ellipsis; | ||
} | ||
div.menu__item[role^="menuitem"]:focus, | ||
div.listbox__option[role^="option"]:focus, | ||
a.fake-menu__item:focus, | ||
button.fake-menu__item:focus, | ||
div.menu__item[role^="menuitem"]:hover, | ||
div.listbox__option[role^="option"]:hover, | ||
a.fake-menu__item:hover, | ||
button.fake-menu__item:hover { | ||
background-color: #f5f5f5; | ||
} | ||
div.menu__item[role^="menuitem"]:focus, | ||
div.listbox__option[role^="option"]:focus, | ||
a.fake-menu__item:focus, | ||
button.fake-menu__item:focus { | ||
outline: 1px solid #c7c7c7; | ||
} | ||
div.menu__item[role^="menuitem"]:active, | ||
div.listbox__option[role^="option"]:active, | ||
a.fake-menu__item:active, | ||
button.fake-menu__item:active { | ||
font-weight: bold; | ||
} | ||
div.menu__item[role^="menuitem"]:active .menu__status, | ||
div.listbox__option[role^="option"]:active .menu__status, | ||
a.fake-menu__item:active .menu__status, | ||
button.fake-menu__item:active .menu__status, | ||
div.menu__item[role^="menuitem"]:active .listbox__status, | ||
div.listbox__option[role^="option"]:active .listbox__status, | ||
a.fake-menu__item:active .listbox__status, | ||
button.fake-menu__item:active .listbox__status, | ||
div.menu__item[role^="menuitem"]:active .fake-menu__status, | ||
div.listbox__option[role^="option"]:active .fake-menu__status, | ||
a.fake-menu__item:active .fake-menu__status, | ||
button.fake-menu__item:active .fake-menu__status { | ||
color: #c7c7c7; | ||
} | ||
div.menu__item[role^="menuitem"]:not(:last-child), | ||
div.listbox__option[role^="option"]:not(:last-child), | ||
a.fake-menu__item:not(:last-child), | ||
button.fake-menu__item:not(:last-child) { | ||
margin-bottom: 1px; | ||
} | ||
div.menu__item[role^="menuitem"][aria-checked="true"] .menu__status, | ||
div.listbox__option[role^="option"][aria-selected="true"] .menu__status, | ||
div.menu__item[role^="menuitem"][aria-checked="true"] .listbox__status, | ||
div.listbox__option[role^="option"][aria-selected="true"] .listbox__status { | ||
visibility: visible; | ||
} | ||
a.fake-menu__item { | ||
color: #111820; | ||
text-decoration: none; | ||
} | ||
a.fake-menu__item:hover, | ||
a.fake-menu__item:focus { | ||
text-decoration: underline; | ||
} | ||
a.fake-menu__item[aria-current="page"] .fake-menu__status { | ||
visibility: visible; | ||
} | ||
button.fake-menu__item { | ||
background-color: #ffffff; | ||
border: 0; | ||
color: #111820; | ||
display: block; | ||
text-align: left; | ||
} | ||
.menu__status, | ||
.listbox__status, | ||
.fake-menu__status { | ||
-ms-flex-item-align: center; | ||
-ms-grid-row-align: center; | ||
align-self: center; | ||
color: #111820; | ||
fill: currentColor; | ||
height: 1em; | ||
stroke: currentColor; | ||
stroke-width: 0; | ||
visibility: hidden; | ||
width: 1em; | ||
} | ||
span.menu__status, | ||
span.listbox__status, | ||
span.fake-menu__status { | ||
background-image: url('data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%278%27%20height%3D%277%27%3E%3Cpath%20fill%3D%22none%22%20stroke%3D%22%23111820%22%20d%3D%22M0%203.70913219%202.21049749%206%208%200%22%3E%3C/path%3E%3C/svg%3E'); | ||
background-position: right center; | ||
background-repeat: no-repeat; | ||
height: 1em; | ||
-ms-flex-negative: 0; | ||
flex-shrink: 0; | ||
width: 1em; | ||
} | ||
.menu__items--grow[role="menu"], | ||
.menu__items--grow-reverse[role="menu"], | ||
.listbox__options--grow[role="listbox"], | ||
.listbox__options--grow-reverse[role="listbox"], | ||
.fake-menu__items--grow, | ||
.fake-menu__items--grow-reverse { | ||
min-width: calc(100%); | ||
width: auto; | ||
} | ||
.menu__items--grow-reverse[role="menu"], | ||
.listbox__options--grow-reverse[role="listbox"], | ||
.fake-menu__items--grow-reverse { | ||
right: 0; | ||
} | ||
.listbox { | ||
display: inline-block; | ||
box-sizing: border-box; | ||
width: 100%; | ||
} | ||
.listbox:hover > .listbox__control > input { | ||
border-color: #4295ff; | ||
} | ||
.listbox__control > input { | ||
background-color: #ffffff; | ||
border: 1px solid #c7c7c7; | ||
box-sizing: border-box; | ||
color: transparent; | ||
cursor: default; | ||
font-family: inherit; | ||
font-size: 16px; | ||
height: 40px; | ||
padding: 0 16px; | ||
text-shadow: 0 0 0 #006efc; | ||
vertical-align: middle; | ||
width: 100%; | ||
} | ||
.listbox__control > input:focus { | ||
border-color: #4295ff; | ||
} | ||
.listbox__control > input[disabled], | ||
.listbox__control > input[aria-disabled="true"] { | ||
border-color: #c7c7c7; | ||
color: transparent; | ||
text-shadow: 0 0 0 #c7c7c7; | ||
} | ||
.listbox__control > input[aria-expanded="true"] { | ||
border-bottom: 0; | ||
padding-bottom: 1px; | ||
} | ||
.listbox__control > input::-moz-selection { | ||
background: #ffffff; | ||
} | ||
.listbox__control > input::selection { | ||
background: #ffffff; | ||
} | ||
.listbox__control + div.listbox__options { | ||
display: none; | ||
position: absolute; | ||
z-index: 1; | ||
} | ||
.listbox__control--expanded + div.listbox__options { | ||
display: block; | ||
} | ||
span.listbox__arrow { | ||
background-image: url('data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%278%27%20height%3D%275%27%3E%3Cpath%20fill%3D%22%230654ba%22%20d%3D%22M0.758714126%2C0.14644663%20C0.585147774%2C-0.048815516%200.303741117%2C-0.0488155166%200.130174765%2C0.146446629%20C-0.0433915877%2C0.341708774%20-0.0433915882%2C0.658291264%200.130174763%2C0.85355341%20L3.68573029%2C4.85355339%20C3.85929664%2C5.04881554%204.1407033%2C5.04881554%204.31426965%2C4.85355339%20L7.86982523%2C0.853553392%20C8.04339159%2C0.658291247%208.04339159%2C0.341708758%207.86982524%2C0.146446611%20C7.69625889%2C-0.0488155358%207.41485223%2C-0.0488155372%207.24128588%2C0.146446608%20L3.99999997%2C3.79289322%20L0.758714126%2C0.14644663%20Z%22%3E%3C/path%3E%3C/svg%3E'); | ||
background-repeat: no-repeat; | ||
background-position: right center; | ||
content: ""; | ||
height: 40px; | ||
margin-left: 8px; | ||
position: absolute; | ||
right: 16px; | ||
top: 0; | ||
width: 8px; | ||
} | ||
.listbox__control--expanded span.listbox__arrow { | ||
-webkit-transform: rotate(180deg); | ||
transform: rotate(180deg); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.