Browse Source

Adds further fixes for lists inside menu, adds nested grid coupling with popup

pull/1191/head
jlukic 10 years ago
parent
commit
126ecf5598
4 changed files with 22 additions and 2 deletions
  1. 9
      src/definitions/elements/list.less
  2. 10
      src/definitions/modules/popup.less
  3. 1
      src/themes/default/elements/list.variables
  4. 4
      src/themes/default/modules/popup.variables

9
src/definitions/elements/list.less

@ -246,6 +246,14 @@ ol.ui.list ol,
border: none;
background: none;
}
.ui.menu .ui.list .list > .item:first-child,
.ui.menu .ui.list > .item:first-child {
padding-top: 0em;
}
.ui.menu .ui.list .list > .item:last-child,
.ui.menu .ui.list > .item:last-child {
padding-bottom: 0em;
}
/*******************************
@ -496,6 +504,7 @@ ul.ui.list li:before,
.ui.bulleted.list .list > .item:before,
.ui.bulleted.list > .item:before {
position: absolute;
top: auto;
left: @bulletOffset;
content: @bulletCharacter;
opacity: @bulletOpacity;

10
src/definitions/modules/popup.less

@ -177,6 +177,16 @@
box-shadow: @rightArrowBoxShadow;
}
/*******************************
Coupling
*******************************/
/* Immediate Nested Grid */
.ui.popup > .ui.grid:not(.padded) {
width: @nestedGridWidth;
margin: @nestedGridMargin;
}
/*******************************
States
*******************************/

1
src/themes/default/elements/list.variables

@ -2,7 +2,6 @@
List
*******************************/
/*-------------------
View
--------------------*/

4
src/themes/default/modules/popup.variables

@ -60,7 +60,9 @@
Coupling
--------------------*/
@popupButtonWidth: 100%;
/* (padding * @medium) */
@nestedGridMargin: -0.7rem -0.875rem;
@nestedGridWidth: ~"calc(100% + 1.75rem)";
/*-------------------
States

Loading…
Cancel
Save