Browse Source

Add several missing variables, resolve dropdown padding to exact pixel values

pull/2034/head
jlukic 10 years ago
parent
commit
3290dbbef9
2 changed files with 8 additions and 5 deletions
  1. 3
      src/definitions/modules/dropdown.less
  2. 10
      src/themes/default/modules/dropdown.variables

3
src/definitions/modules/dropdown.less

@ -258,6 +258,7 @@
.ui.dropdown .menu > .item > .image, .ui.dropdown .menu > .item > .image,
.ui.dropdown .menu > .item > img { .ui.dropdown .menu > .item > img {
margin-left: 0em; margin-left: 0em;
float: @itemElementFloat;
margin-right: @itemElementDistance; margin-right: @itemElementDistance;
} }
@ -606,7 +607,7 @@ select.ui.dropdown {
.ui.dropdown .menu > .item:hover { .ui.dropdown .menu > .item:hover {
background: @hoveredItemBackground; background: @hoveredItemBackground;
color: @hoveredItemColor; color: @hoveredItemColor;
z-index: 12;
z-index: @hoveredZIndex;
} }
/*-------------------- /*--------------------

10
src/themes/default/modules/dropdown.variables

@ -49,10 +49,10 @@
@itemHeight: auto; @itemHeight: auto;
@itemDivider: none; @itemDivider: none;
@itemColor: @textColor; @itemColor: @textColor;
@itemVerticalPadding: 0.65rem;
@itemHorizontalPadding: 1.25rem;
@itemVerticalPadding: @relativeMini;
@itemHorizontalPadding: @relativeLarge;
@itemFontWeight: normal; @itemFontWeight: normal;
@itemLineHeight: 1.2em;
@itemLineHeight: 1em;
@itemLineHeightOffset: (@itemLineHeight - 1em); @itemLineHeightOffset: (@itemLineHeight - 1em);
@itemTextTransform: none; @itemTextTransform: none;
@itemBoxShadow: none; @itemBoxShadow: none;
@ -91,6 +91,7 @@
@menuImageMaxHeight: 2.5em; @menuImageMaxHeight: 2.5em;
/* Item Sub-Element */ /* Item Sub-Element */
@itemElementFloat: none;
@itemElementDistance: 0.75em; @itemElementDistance: 0.75em;
/* Sub-Menu Dropdown Icon */ /* Sub-Menu Dropdown Icon */
@ -212,6 +213,7 @@
/* Hovered */ /* Hovered */
@hoveredItemBackground: @transparentBlack; @hoveredItemBackground: @transparentBlack;
@hoveredItemColor: @selectedTextColor; @hoveredItemColor: @selectedTextColor;
@hoveredZIndex: @menuZIndex + 2;
/* Default Text */ /* Default Text */
@defaultTextColor: rgba(179, 179, 179, 0.7); @defaultTextColor: rgba(179, 179, 179, 0.7);
@ -221,8 +223,8 @@
@loadingZIndex: -1; @loadingZIndex: -1;
/* Active Menu Item */ /* Active Menu Item */
@activeItemBackground: transparent;
@activeItemZIndex: @menuZIndex + 1; @activeItemZIndex: @menuZIndex + 1;
@activeItemBackground: transparent;
@activeItemBoxShadow: none; @activeItemBoxShadow: none;
@activeItemFontWeight: bold; @activeItemFontWeight: bold;
@activeItemColor: @selectedTextColor; @activeItemColor: @selectedTextColor;

Loading…
Cancel
Save