Browse Source

Adjust appearance of labeled icon menu

pull/2743/head
jlukic 9 years ago
parent
commit
c0f3c4ff01
3 changed files with 28 additions and 22 deletions
  1. 4
      RELEASE-NOTES.md
  2. 44
      src/definitions/collections/menu.less
  3. 2
      src/themes/default/collections/menu.variables

4
RELEASE-NOTES.md

@ -2,6 +2,10 @@
### Version 2.x.x - July 23, 2015
**[Enhancements](https://github.com/Semantic-Org/Semantic-UI/issues?q=is%3Aissue+milestone%3A2.1.0+is%3Aclosed)**
- **Menu** - Appearance of `labeled icon menu` has been modified. Horizontal menus now have icons above text, and icons are slightly larger than before.
**[Reported Bugs](https://github.com/Semantic-Org/Semantic-UI/issues?q=is%3Aissue+milestone%3A2.1.0+is%3Aclosed)**
- **Modal** - Fix autofocus setting in modal not working due to improper selector #2737
- **Modal** - Increased `close` specificity, modal will now only close on `> .close` #2736

44
src/definitions/collections/menu.less

@ -1081,35 +1081,38 @@ Floated Menu / Item
Icon Only
---------------*/
/* Vertical Menu */
.ui.vertical.icon.menu {
display: inline-block;
width: auto;
}
/* Item */
.ui.icon.menu .item {
height: auto;
text-align: @iconMenuTextAlign;
color: @iconMenuItemColor;
}
.ui.icon.menu .item > .icon {
margin: 0em;
opacity: 1;
}
/* Icon */
.ui.vertical.icon.menu .item > .icon:not(.dropdown) {
display: block;
opacity: 1;
margin: 0em auto;
float: none;
}
/* Icon Gylph */
.ui.icon.menu .icon:before {
opacity: 1;
}
/* Item Icon Only */
/* (x) Item Icon */
.ui.menu .icon.item > .icon {
width: auto;
margin: 0em auto;
}
/* Vertical */
.ui.vertical.icon.menu {
width: auto;
}
/* Inverted */
.ui.inverted.icon.menu .item {
color: @iconMenuInvertedItemColor;
@ -1119,31 +1122,30 @@ Floated Menu / Item
Labeled Icon
---------------*/
/* Menu */
.ui.labeled.icon.menu {
text-align: center;
}
.ui.fluid.labeled.icon.menu .item {
min-width: 0em;
}
.ui.labeled.icon.menu .item {
/* Item */
.ui.labeled.icon.menu .item {
min-width: @labeledIconMinWidth;
}
.ui.labeled.icon.menu:not(.vertical) .item {
padding-left: @labeledIconItemHorizontalPadding;
padding-right: @labeledIconItemHorizontalPadding;
flex-direction: column;
}
/* Icon */
.ui.labeled.icon.menu .item > .icon:not(.dropdown) {
height: 1em;
display: block;
font-size: @labeledIconSize !important;
margin: 0em @labeledIconTextMargin 0em 0em !important;
}
.ui.vertical.labeled.icon.menu .item > .icon:not(.dropdown) {
margin: 0em auto @labeledIconTextMargin !important;
}
/* Fluid */
.ui.fluid.labeled.icon.menu > .item {
min-width: 0em;
}
/*******************************
Variations

2
src/themes/default/collections/menu.variables

@ -325,7 +325,7 @@
/* Labeled Icon */
@labeledIconItemHorizontalPadding: @relativeMassive;
@labeledIconSize: @relativeHuge;
@labeledIconSize: @relativeMassive;
@labeledIconMinWidth: 6em;
@labeledIconTextMargin: 0.5rem;

Loading…
Cancel
Save