Browse Source

Updates grid docs

pull/1009/head
jlukic 10 years ago
parent
commit
1f3b525645
2 changed files with 55 additions and 9 deletions
  1. 54
      server/documents/collections/grid.html.eco
  2. 10
      server/files/stylesheets/semantic.css

54
server/documents/collections/grid.html.eco

@ -18,19 +18,20 @@ themes : ['default']
<div class="peek">
<div class="ui vertical pointing secondary menu">
<a class="item">Introduction</a>
<a class="active item">Types</a>
<a class="item">Elements</a>
<a class="item">Variations</a>
</div>
</div>
<h2 class="ui dividing header">Standard</h2>
<h2 class="ui dividing header">Introduction</h2>
<div class="highlighted example">
<h4 class="ui header">Simple Grid</h4>
<h4 class="ui header">Grid</h4>
<p>A grid is made up of columns of content with gutters to provide negative space between columns.</p>
<div class="ui ignore info message">
<div class="ui ignored message">
<p>A grid does not need to specify rows, content will automatically flow to the next row when all the grid columns are taken in the current row.</p>
All grid systems must assume an arbitrary amount of column rows. Semantic's default theme assumes <b>16 columns</b>
</div>
@ -54,10 +55,13 @@ themes : ['default']
</div>
</div>
</div>
<div class="highlighted example">
<h4 class="ui header">Grid with Rows</h4>
<p>A grid can wrap groups of columns into rows</p>
<div class="ui ignored message">
The bottom and top rows, when rows are specified will sit flush with the edge of the grid.</p>
</div>
<div class="ui ignored positive message">
<h3 class="ui header">The Benefits of Rows</h3>
<p>It's often easier to have dynamic content output without nested rows, but using row wrappers is the only way for variations like <code>equal height</code> and <code>vertically divided</code> to function correctly.</p>
@ -100,6 +104,47 @@ themes : ['default']
</div>
</div>
<div class="highlighted example">
<h4 class="ui header">Nested grids</h4>
<p>A grid can be placed inside another grid</p>
<div class="ui ignored message">
<p>Any grid column can be broken up using a second grid, however for the content of the inner grid to align with the outter grid, you will need to use the <code>fitted grid</code> variation on the inner grid, removing the outer margins from the first and last element.</p>
</div>
<div class="ui ignored info message">
<h3 class="ui header">Column Count</h3>
<p>Each grid is divided into 16 columns, so a grid inside a grid inside a column, <b>sub-divides that column into 16 more columns</b>. This means for example, a <code>eight wide column</code> on a nested grid inside a <code>two wide column</code>, is the same as a <code>one wide column</code> on the outer grid.</p>
</div>
<div class="ui two column grid">
<div class="column">
<div class="ui two column fitted grid">
<div class="column">
<div class="ui segment">
</div>
</div>
<div class="column">
<div class="ui segment">
</div>
</div>
</div>
</div>
<div class="column">
<div class="ui fitted grid">
<div class="eight wide column">
<div class="ui segment">
</div>
</div>
<div class="eight wide column">
<div class="ui segment">
</div>
</div>
</div>
</div>
</div>
</div>
<h2 class="ui dividing header">Types</h2>
<div class="example">
<h4 class="ui header">Page Grid</h4>
@ -136,6 +181,7 @@ themes : ['default']
</div>
<div class="example">
<h4 class="ui header">Divided Grid</h4>
<p>A grid can have dividers between its columns</p>

10
server/files/stylesheets/semantic.css

@ -1107,7 +1107,7 @@ body.guide .main.container > * {
}
#example .highlighted.example {
min-height: 205px;
min-height: 275px;
}
#example .collection.cards {
min-height: 350px;
@ -1131,12 +1131,12 @@ body.guide .main.container > * {
#example .ui.type.cards .image .grid .row:first-child {
border-top: none;
}
#example .highlighted.example .grid .column:first-child,
#example .ui.type.cards .image .grid .column:first-child {
#example .highlighted.example .grid .column:not(.grid):first-child,
#example .ui.type.cards .image .grid .column:not(.grid):first-child {
box-shadow: none;
}
#example .highlighted.example .grid .column,
#example .ui.type.cards .image .grid .column {
#example .highlighted.example .grid .column:not(.grid),
#example .ui.type.cards .image .grid .column:not(.grid) {
min-height: 50px;
-webkit-box-shadow: -1px 0px 0px 0px rgba(0, 0, 0, 0.1);
-moz-box-shadow: -1px 0px 0px 0px rgba(0, 0, 0, 0.1);

Loading…
Cancel
Save