Browse Source

Fixes up some formatting on github menu theme, fixes some input variables in menu

pull/636/head
jlukic 10 years ago
parent
commit
765815086b
4 changed files with 14 additions and 8 deletions
  1. 13
      src/collections/menu.less
  2. 2
      src/themes/default/collections/menu.variables
  3. 4
      src/themes/github/collections/menu.overrides
  4. 3
      src/themes/github/collections/menu.variables

13
src/collections/menu.less

@ -141,7 +141,7 @@
right: 0px; right: 0px;
width: @dividerSize; width: @dividerSize;
height: 100%; height: 100%;
background-image: @dividerBackground;
background: @dividerBackground;
} }
.ui.menu .menu.right .item:before, .ui.menu .menu.right .item:before,
.ui.menu .item.right:before { .ui.menu .item.right:before {
@ -202,6 +202,7 @@
top: @inputIconOffset; top: @inputIconOffset;
} }
.ui.menu .item > .input input { .ui.menu .item > .input input {
font-size: @inputSize;
padding-top: @inputVerticalPadding; padding-top: @inputVerticalPadding;
padding-bottom: @inputVerticalPadding; padding-bottom: @inputVerticalPadding;
} }
@ -339,7 +340,7 @@
cursor: pointer; cursor: pointer;
background: @hoverBackground; background: @hoverBackground;
} }
.ui.menu .ui.dropdown.active {
.ui.menu .ui.dropdown.visible {
background: @subtleTransparentBlack; background: @subtleTransparentBlack;
box-shadow: none; box-shadow: none;
border-bottom-right-radius: 0em; border-bottom-right-radius: 0em;
@ -386,9 +387,6 @@
.ui.vertical.menu .active.item .menu .active.item { .ui.vertical.menu .active.item .menu .active.item {
border-left: none; border-left: none;
} }
.ui.vertical.menu .active.item .menu .active.item {
padding-left: 1.5rem;
}
.ui.vertical.menu .item .menu .active.item { .ui.vertical.menu .item .menu .active.item {
background-color: @subMenuActiveColor; background-color: @subMenuActiveColor;
box-shadow: none; box-shadow: none;
@ -523,6 +521,7 @@
margin: @subMenuMargin -@horizontalPadding 0em; margin: @subMenuMargin -@horizontalPadding 0em;
} }
.ui.vertical.menu .item > .menu > .item { .ui.vertical.menu .item > .menu > .item {
background: none;
padding: @subMenuHorizontalPadding @subMenuVerticalPadding; padding: @subMenuHorizontalPadding @subMenuVerticalPadding;
font-size: @subMenuFontSize; font-size: @subMenuFontSize;
} }
@ -1187,10 +1186,10 @@
/*--- Border ---*/ /*--- Border ---*/
.ui.inverted.menu .item:before { .ui.inverted.menu .item:before {
background-image: @invertedDividerBackground;
background: @invertedDividerBackground;
} }
.ui.vertical.inverted.menu .item:before { .ui.vertical.inverted.menu .item:before {
background-image: @invertedVerticalDividerBackground;
background: @invertedVerticalDividerBackground;
} }
/*--- Hover ---*/ /*--- Hover ---*/

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

@ -84,6 +84,7 @@
@labeledButtonPadding: 0.6em; @labeledButtonPadding: 0.6em;
/* Input */ /* Input */
@inputSize: 0.875em;
@inputVerticalMargin: -0.8em; @inputVerticalMargin: -0.8em;
@inputOffset: -0.05em; @inputOffset: -0.05em;
@inputVerticalPadding: 0.5em; @inputVerticalPadding: 0.5em;
@ -153,7 +154,6 @@
/* Vertical */ /* Vertical */
@verticalBackground: #FFFFFF; @verticalBackground: #FFFFFF;
@verticalItemBackground: none; @verticalItemBackground: none;
@verticalDividerBackground: linear-gradient(to right, @verticalDividerBackground: linear-gradient(to right,
rgba(0, 0, 0, 0.03) 0%, rgba(0, 0, 0, 0.03) 0%,
rgba(0, 0, 0, 0.1) 1.5em, rgba(0, 0, 0, 0.1) 1.5em,

4
src/themes/github/collections/menu.overrides

@ -1,3 +1,7 @@
/******************************* /*******************************
Overrides Overrides
*******************************/ *******************************/
.ui.menu .item > .label {
box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
}

3
src/themes/github/collections/menu.variables

@ -32,6 +32,9 @@
@arrowVerticalHoverColor: #F4F4F4; @arrowVerticalHoverColor: #F4F4F4;
@arrowVerticalActiveColor: #F4F4F4; @arrowVerticalActiveColor: #F4F4F4;
@dividerBackground: #E8E8E8;
@verticalDividerBackground: #E8E8E8;
/*------------------- /*-------------------
Elements Elements
--------------------*/ --------------------*/

Loading…
Cancel
Save