Browse Source

Add equal width grid

pull/1629/merge
jlukic 10 years ago
parent
commit
e517219bfa
2 changed files with 42 additions and 19 deletions
  1. 3
      RELEASE-NOTES.md
  2. 58
      src/definitions/collections/grid.less

3
RELEASE-NOTES.md

@ -7,11 +7,12 @@
- **Project** - Install now let you specify the outputted file permissions and RTL use (express/custom install) - **Project** - Install now let you specify the outputted file permissions and RTL use (express/custom install)
**Enhancements / Changes** **Enhancements / Changes**
- **Grid** - Added `equal width` variation using `flex-box`, `equal height` now also uses `flex-box` (this may have to be removed if causes unexpected browser issues)
- **Sidebar** - Having a sidebar visible on page load is now much simpler. You can include ``ui visible sidebar`` on page load to have a sidebar element appear on page load. To close call `$('.ui.sidebar').sidebar('hide')`
- **Site** - Form input highlighting color added (helps differentiate form colors with autocompleted fields). Default text highlighting color moved from highlighter yellow to a mellow blue. - **Site** - Form input highlighting color added (helps differentiate form colors with autocompleted fields). Default text highlighting color moved from highlighter yellow to a mellow blue.
- **Dropdown** - Dropdown can now be disabled by adding ``disabled` class without requiring `destroy`. **Thanks Psyton** - **Dropdown** - Dropdown can now be disabled by adding ``disabled` class without requiring `destroy`. **Thanks Psyton**
- **Dropdown** - Search dropdown input can now have backgrounds. Fixes issues with autocompleted search dropdowns which have forced yellow "autocompleted" bg. - **Dropdown** - Search dropdown input can now have backgrounds. Fixes issues with autocompleted search dropdowns which have forced yellow "autocompleted" bg.
- **Dropdown** - Fix issue with search selection not correctly matching when values are not strings - **Dropdown** - Fix issue with search selection not correctly matching when values are not strings
- **Sidebar** - Having a sidebar visible on page load is now much simpler. You can include ``ui visible sidebar`` on page load to have a sidebar element appear on page load. To close call `$('.ui.sidebar').sidebar('hide')`
- **Progress* - Progress bars can now display percent or amount left using `{value}` in text templates - **Progress* - Progress bars can now display percent or amount left using `{value}` in text templates
- **Dropdown** - New `upward dropdown` variation, which opens its menu upward. Default animation now uses ``settings.transition = 'auto'` and determines direction of animation based on menu direction - **Dropdown** - New `upward dropdown` variation, which opens its menu upward. Default animation now uses ``settings.transition = 'auto'` and determines direction of animation based on menu direction
- **Dropdown** - Dropdown matching fields without values now trims whitespace by default - **Dropdown** - Dropdown matching fields without values now trims whitespace by default

58
src/definitions/collections/grid.less

@ -1265,20 +1265,6 @@
vertical-align: bottom !important; vertical-align: bottom !important;
} }
/* Flex */
.ui[class*="top aligned"].grid,
.ui.grid > [class*="top aligned"].row {
align-items: flex-start;
}
.ui[class*="middle aligned"].grid,
.ui.grid > [class*="middle aligned"].row {
align-items: center;
}
.ui[class*="bottom aligned"].grid,
.ui.grid > [class*="bottom aligned"].row {
align-items: flex-end;
}
/*---------------------- /*----------------------
Colored Colored
-----------------------*/ -----------------------*/
@ -1404,6 +1390,44 @@
} }
/*----------------------
Equal Width
-----------------------*/
.ui[class*="equal width"].grid {
display: table;
table-layout: fixed;
}
.ui[class*="equal width"].grid > .row,
.ui.grid > [class*="equal width"].row {
display: table;
table-layout: fixed;
width: 100% !important;
}
.ui[class*="equal width"].grid > .column,
.ui[class*="equal width"].grid > .row > .column,
.ui.grid > [class*="equal width"].row > .column {
display: table-cell;
}
/* Flexbox (Experimental / Overrides Where Supported) */
.ui[class*="equal width"].grid {
display: flex;
flex-direction: column;
}
.ui[class*="equal width"].grid > .row,
.ui.grid > [class*="equal width"].row {
display: flex;
flex-direction: row;
align-items: stretch;
}
.ui[class*="equal width"].grid > .column,
.ui[class*="equal width"].grid > .row > .column,
.ui.grid > [class*="equal width"].row > .column {
display: inline-block;
flex-direction: column;
flex: 1 0 auto;
}
/*---------------------- /*----------------------
@ -1427,14 +1451,12 @@
} }
/* Flexbox (Experimental / Overrides Where Supported) */ /* Flexbox (Experimental / Overrides Where Supported) */
.ui[class*="equal height"].grid {
display: flex;
flex-direction: row;
}
.ui[class*="equal height"].grid,
.ui[class*="equal height"].grid > .row, .ui[class*="equal height"].grid > .row,
.ui.grid > [class*="equal height"].row { .ui.grid > [class*="equal height"].row {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: stretch;
} }
.ui[class*="equal height"].grid > .column, .ui[class*="equal height"].grid > .column,
.ui[class*="equal height"].grid > .row > .column, .ui[class*="equal height"].grid > .row > .column,

Loading…
Cancel
Save