-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathobjects.layout.html
36 lines (31 loc) · 7.41 KB
/
objects.layout.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<!DOCTYPE html><html><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><link href="http://fonts.googleapis.com/css?family=Open+Sans:400,700" rel="stylesheet" type="text/css"><link href="http://fonts.googleapis.com/css?family=Bitter:400,700" rel="stylesheet" type="text/css"><link href="http://fonts.googleapis.com/css?family=Inconsolata:400,700" rel="stylesheet" type="text/css"><title>inuit kitchen sink | _objects.layout.scss</title><meta name="description" content="inuit kitchen sink lists you all modules of inuitcss and helps you getting started with the framework."><meta name="viewport" content="width=device-width,minimum-scale=1"><link rel="stylesheet" href="build/assets/css/style.css"><link rel="shortcut icon" href="src/assets/img/favicon.png" type="image/png"></head><body><header class="[ page-head ] [ pv- mb ]"><div class="[ page-wrap ] [ clearfix ]"><h6 class="[ float--left ] [ mb0 ]"><a class="site-logo" href="index.html">inuit kitchen sink</a></h6><a class="[ site-nav-trigger ] [ float--right ]" href="#site-nav"></a></div></header><div class="page-wrap"><div class="[ layout layout--rev ]"><div class="[ layout__item 8/12 portable-1/1 ] [ mb++ ]"><h1 class="mb0">_objects.layout.scss</h1><div class="mb"><a class="zeta" href="https://github.com/inuitcss/objects.layout/blob/master/_objects.layout.scss">View source</a><br><a class="zeta" href="layout.html">Demo</a></div><p>The layout object is the basic grid system. It is used alongside with <a href="trumps.widths.html">trumps.widths</a> and <a href="trumps.widths-responsive.html">trumps.widths-responsive</a>.</p><h3 id="markup">Markup</h3><pre><code class="language-html"><div class="layout">
<div class="layout__item 1/3">
Foo
</div><!--
--><div class="layout__item 1/3">
Bar
</div><!--
--><div class="layout__item 1/3">
Baz
</div>
</div></code></pre><p><strong>You need to remove the whitespace!</strong> My advice is to use comments as above.</p><h3 id="modifiers">Modifiers</h3><p>The layout object provides the following modifiers:</p><ul><li><code>.layout--tiny</code></li><li><code>.layout--small</code></li><li><code>.layout--large</code></li><li><code>.layout--huge</code></li><li><code>.layout--flush</code></li><li><code>.layout--rev</code></li><li><code>.layout--middle</code></li><li><code>.layout--bottom</code></li><li><code>.layout--right</code></li><li><code>.layout--center</code></li><li><code>.layout--auto</code></li></ul><p><code>.layout--tiny</code>, <code>.layout--small</code>, <code>.layout--large</code>, <code>.layout--huge</code> all vary the spacing between the layout-items. Each one has its own dedicated variable to control that spacing:</p><pre><code class="language-scss">$inuit-layout-gutter--tiny<span class="value">: quarter($inuit-layout-gutter) !default;</span>
$inuit-layout-gutter--<span class="tag">small</span><span class="value">: halve($inuit-layout-gutter) !default;</span>
$inuit-layout-gutter--large<span class="value">: double($inuit-layout-gutter) !default;</span>
$inuit-layout-gutter--huge<span class="value">: quadruple($inuit-layout-gutter) !default;</span></code></pre><p><code>.layout--flush</code> will eliminate the spacing completely.</p><p><code>.layout--rev</code> reverses the order of the layout-items.</p><p><code>.layout--middle</code> aligns the layout-items vertically.</p><p><code>.layout--bottom</code> aligns the layout-items on the bottom.</p><p><code>.layout--right</code> makes the layout-items fill up the <code>.layout</code> container from the right. <strong>This just makes sense if a <code>.layout</code> row is not full-width, e.g.:</strong></p><pre><code class="language-html"><div class="layout layout--right">
<div class="layout__item 1/3">
Foo
</div><!--
--><div class="layout__item 1/3">
Bar
</div>
</div></code></pre><p><code>.layout--center</code> makes the layout-items fill up the <code>.layout</code> container from the center outward. <strong>This also just makes sense if a <code>.layout</code> row is not full-width as above.</strong> <a href="layout.html#-layout-right-">Check demo for clarification</a>.</p><p><code>.layout--auto</code> causes the layout-items to take up a non-explicit amount of width. <strong>It is critical not to assign a width-class here!</strong></p><pre><code class="language-html"><div class="layout layout--auto">
<div class="layout__item">
Foo
</div><!--
--><div class="layout__item">
Bar
</div><!--
--><div class="layout__item">
Baz
</div>
</div></code></pre><h3 id="-demo-layout-html-"><a href="layout.html">Demo</a></h3><ul class="[ tabs ] [ ui-tabs ] [ mt+ ]"><li class="tabs__item"><a class="tabs__link" href="objects.tables.html" title="objects.tables">prev</a></li><li class="tabs__item"><a class="tabs__link" href="trumps.headings.html" title="trumps.headings">next</a></li></ul></div><div class="[ layout__item 4/12 portable-1/1 ]"><nav role="navigation"><ul id="site-nav" class="[ site-nav ] [ list-bare ] [ portable-p- ]"><li><p class="[ gamma ] [ weight--700 ] [ mb0 ]">settings</p><ul class="[ site-nav__sub ] [ list-bare ] [ mb ]"><li><a href="settings.default.html">default</a></li><li><a href="settings.responsive.html">responsive</a></li></ul></li><li><p class="[ gamma ] [ weight--700 ] [ mb0 ]">tools</p><ul class="[ site-nav__sub ] [ list-bare ] [ mb ]"><li><a href="tools.functions.html">functions</a></li><li><a href="tools.mixins.html">mixins</a></li><li><a href="tools.responsive.html">responsive</a></li></ul></li><li><p class="[ gamma ] [ weight--700 ] [ mb0 ]">base</p><ul class="[ site-nav__sub ] [ list-bare ] [ mb ]"><li><a href="base.headings.html">headings</a></li><li><a href="base.paragraphs.html">paragraphs</a></li></ul></li><li><p class="[ gamma ] [ weight--700 ] [ mb0 ]">objects</p><ul class="[ site-nav__sub ] [ list-bare ] [ mb ]"><li><a href="objects.media.html">media</a></li><li><a href="objects.flag.html">flag</a></li><li><a href="objects.block.html">block</a></li><li><a href="objects.pack.html">pack</a></li><li><a href="objects.box.html">box</a></li><li><a href="objects.list-bare.html">list-bare</a></li><li><a href="objects.list-inline.html">list-inline</a></li><li><a href="objects.list-block.html">list-block</a></li><li><a href="objects.list-ui.html">list-ui</a></li><li><a href="objects.tabs.html">tabs</a></li><li><a href="objects.buttons.html">buttons</a></li><li><a href="objects.tables.html">tables</a></li><li><a href="objects.layout.html">layout</a></li></ul></li><li><p class="[ gamma ] [ weight--700 ] [ mb0 ]">trumps</p><ul class="[ site-nav__sub ] [ list-bare ] [ mb ]"><li><a href="trumps.headings.html">headings</a></li><li><a href="trumps.spacing.html">spacing</a></li><li><a href="trumps.spacing-responsive.html">spacing-responsive</a></li><li><a href="trumps.widths.html">widths</a></li><li><a href="trumps.widths-responsive.html">widths-responsive</a></li><li><a href="trumps.clearfix.html">clearfix</a></li></ul></li></ul></nav></div></div></div><footer class="[ page-foot ] [ pv+ ]"><ul class="[ list-inline ] [ page-wrap ]"><li><a href="https://github.com/csshugs/inuit-kitchen-sink">Contribute on GitHub</a></li></ul></footer></body></html>