Skip to content

Commit

Permalink
Updated component to version 2.2.11
Browse files Browse the repository at this point in the history
  • Loading branch information
Semantic-Pusher-Robot committed Jul 11, 2017
1 parent 1e50ecb commit 0b9f2e2
Show file tree
Hide file tree
Showing 8 changed files with 304 additions and 148 deletions.
9 changes: 9 additions & 0 deletions RELEASE-NOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
### Version 2.2.11 - July 11, 2017

- **Dropdown** - Fixed issue where using `down` key to re-open dropdown when using `search selection dropdown` would start at the top element instead of jumping to selected element [#4506](https://github.com/Semantic-Org/Semantic-UI/issues/4506)
- **Dropdown** - Dropdowns will automatically detect when they are offscreen to the right and will open leftward instead **Thanks @Graveheart** [#4211](https://github.com/Semantic-Org/Semantic-UI/issues/4211)
- **Dropdown** - Improved spacing on `image` inside `menu item` and for selected `text`
- **Dropdown** - Fix dropdown arrow being slightly off center due to em calculation being incorrect due to differences in relative em
- **Dropdown** - Fix `loading dropdown` icon position being slightly offset
- **Dropdown** - Fixed issue where `search selection dropdown` would reset list to top after selection when re-opening dropdown [#4506](https://github.com/Semantic-Org/Semantic-UI/issues/4506)

### Version 2.2.10 - March 28, 2017

- **Dropdown** - Fix search input inside dropdown menu causing dropdown to close before selection when selecting an item #5113
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
"framework"
],
"license": "MIT",
"version": "2.2.10"
"version": "2.2.11"
}
109 changes: 70 additions & 39 deletions dropdown.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* # Semantic UI 2.2.10 - Dropdown
* # Semantic UI 2.2.11 - Dropdown
* http://github.com/semantic-org/semantic-ui/
*
*
Expand Down Expand Up @@ -167,7 +167,6 @@
.ui.dropdown .menu > .input {
width: auto;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
margin: 1.14285714rem 0.78571429rem;
Expand Down Expand Up @@ -215,8 +214,8 @@

.ui.dropdown .menu .menu {
top: 0% !important;
left: 100% !important;
right: auto !important;
left: 100%;
right: auto;
margin: 0em 0em 0em -0.5em !important;
border-radius: 0.28571429rem !important;
z-index: 21 !important;
Expand Down Expand Up @@ -271,8 +270,10 @@
.ui.dropdown .menu > .item > .image,
.ui.dropdown .menu > .item > img {
display: inline-block;
vertical-align: middle;
vertical-align: top;
width: auto;
margin-top: -0.5em;
margin-bottom: -0.5em;
max-height: 2em;
}

Expand Down Expand Up @@ -383,7 +384,7 @@ select.ui.dropdown {
right: 1em;
z-index: 3;
margin: -0.78571429em;
padding: 0.78571429em;
padding: 0.91666667em;
opacity: 0.8;
-webkit-transition: opacity 0.1s ease;
transition: opacity 0.1s ease;
Expand Down Expand Up @@ -765,7 +766,9 @@ select.ui.dropdown {

.ui.loading.dropdown > i.icon {
height: 1em !important;
padding: 1.14285714em 1.07142857em !important;
}
.ui.loading.selection.dropdown > i.icon {
padding: 1.5em 1.28571429em !important;
}
.ui.loading.dropdown > i.icon:before {
position: absolute;
Expand Down Expand Up @@ -851,6 +854,14 @@ select.ui.dropdown {
visibility: hidden;
z-index: -1;
}
.ui.dropdown > .loading.menu {
left: 0px !important;
right: auto !important;
}
.ui.dropdown > .menu .loading.menu {
left: 100% !important;
right: auto !important;
}

/*--------------------
Keyboard Select
Expand Down Expand Up @@ -951,28 +962,34 @@ select.ui.dropdown {
border-radius: 0.28571429rem !important;
}

/* Left Flyout Menu */
/* Leftward Opening Menu */
.ui.dropdown > .left.menu {
left: auto !important;
right: 0px !important;
}
.ui.dropdown > .left.menu .menu,
.ui.dropdown .menu .left.menu {
left: auto !important;
right: 100% !important;
left: auto;
right: 100%;
margin: 0em -0.5em 0em 0em !important;
border-radius: 0.28571429rem !important;
}
.ui.dropdown .item .left.dropdown.icon,
.ui.dropdown .left.menu .item .dropdown.icon {
width: auto;
float: left;
margin: 0em 0.78571429rem 0em 0em;
margin: 0em 0em 0em 0em;
}
.ui.dropdown .item .left.dropdown.icon,
.ui.dropdown .left.menu .item .dropdown.icon {
width: auto;
float: left;
margin: 0em 0.78571429rem 0em 0em;
margin: 0em 0em 0em 0em;
}
.ui.dropdown .item .left.dropdown.icon + .text,
.ui.dropdown .left.menu .item .dropdown.icon + .text {
margin-left: 1em;
margin-right: 0em;
}

/*--------------
Expand Down Expand Up @@ -1210,7 +1227,7 @@ select.ui.dropdown {
transform: rotate(45deg);
width: 0.5em;
height: 0.5em;
box-shadow: -1px -1px 0px 1px rgba(34, 36, 38, 0.15);
box-shadow: -1px -1px 0px 0px rgba(34, 36, 38, 0.15);
background: #FFFFFF;
z-index: 2;
}
Expand Down Expand Up @@ -1244,18 +1261,19 @@ select.ui.dropdown {
transform: rotate(45deg);
}

/* Top Right Pointing */
/* Top Right Pointing */
.ui.top.right.pointing.dropdown > .menu {
top: 100%;
bottom: auto;
right: 0%;
left: auto;
margin: 1em 0em 0em;
}
.ui.top.pointing.dropdown > .left.menu:after,
.ui.top.right.pointing.dropdown > .menu:after {
top: -0.25em;
left: auto;
right: 1em;
left: auto !important;
right: 1em !important;
margin: 0em;
-webkit-transform: rotate(45deg);
transform: rotate(45deg);
Expand All @@ -1275,6 +1293,19 @@ select.ui.dropdown {
-webkit-transform: rotate(-45deg);
transform: rotate(-45deg);
}
.ui.left:not(.top):not(.bottom).pointing.dropdown > .left.menu {
left: auto !important;
right: 100% !important;
margin: 0em 1em 0em 0em;
}
.ui.left:not(.top):not(.bottom).pointing.dropdown > .left.menu:after {
top: 1em;
left: auto;
right: -0.25em;
margin: 0em 0em 0em 0em;
-webkit-transform: rotate(135deg);
transform: rotate(135deg);
}

/* Right Pointing */
.ui.right.pointing.dropdown > .menu {
Expand Down Expand Up @@ -1336,45 +1367,45 @@ select.ui.dropdown {
}

/* Upward pointing */
.ui.upward.pointing.dropdown > .menu,
.ui.upward.top.pointing.dropdown > .menu {
top: auto;
bottom: 100%;
.ui.pointing.upward.dropdown .menu,
.ui.top.pointing.upward.dropdown .menu {
top: auto !important;
bottom: 100% !important;
margin: 0em 0em 0.78571429rem;
border-radius: 0.28571429rem;
}
.ui.upward.pointing.dropdown > .menu:after,
.ui.upward.top.pointing.dropdown > .menu:after {
top: 100%;
bottom: auto;
box-shadow: 1px 1px 0px 1px rgba(34, 36, 38, 0.15);
.ui.pointing.upward.dropdown .menu:after,
.ui.top.pointing.upward.dropdown .menu:after {
top: 100% !important;
bottom: auto !important;
box-shadow: 1px 1px 0px 0px rgba(34, 36, 38, 0.15);
margin: -0.25em 0em 0em;
}

/* Right Pointing Upward */
.ui.upward.right.pointing.dropdown:not(.top):not(.bottom) > .menu {
top: auto;
bottom: 0;
.ui.right.pointing.upward.dropdown:not(.top):not(.bottom) .menu {
top: auto !important;
bottom: 0 !important;
margin: 0em 1em 0em 0em;
}
.ui.upward.right.pointing.dropdown:not(.top):not(.bottom) > .menu:after {
top: auto;
bottom: 0;
.ui.right.pointing.upward.dropdown:not(.top):not(.bottom) .menu:after {
top: auto !important;
bottom: 0 !important;
margin: 0em 0em 1em 0em;
box-shadow: -1px -1px 0px 1px rgba(34, 36, 38, 0.15);
box-shadow: -1px -1px 0px 0px rgba(34, 36, 38, 0.15);
}

/* Left Pointing Upward */
.ui.upward.left.pointing.dropdown:not(.top):not(.bottom) > .menu {
top: auto;
bottom: 0;
.ui.left.pointing.upward.dropdown:not(.top):not(.bottom) .menu {
top: auto !important;
bottom: 0 !important;
margin: 0em 0em 0em 1em;
}
.ui.upward.left.pointing.dropdown:not(.top):not(.bottom) > .menu:after {
top: auto;
bottom: 0;
.ui.left.pointing.upward.dropdown:not(.top):not(.bottom) .menu:after {
top: auto !important;
bottom: 0 !important;
margin: 0em 0em 1em 0em;
box-shadow: -1px -1px 0px 1px rgba(34, 36, 38, 0.15);
box-shadow: -1px -1px 0px 0px rgba(34, 36, 38, 0.15);
}


Expand Down
Loading

0 comments on commit 0b9f2e2

Please sign in to comment.