forked from jgthms/css-reference
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
97 lines (76 loc) · 5.94 KB
/
Copy pathindex.html
File metadata and controls
97 lines (76 loc) · 5.94 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
---
layout: single
property_name: grid
---
<section id="grid" class="property property--shorthand">
<header class="property-header">
<nav class="property-links">
<a class="property-collection" href="{{site.url}}/css-grid/">
In collection: <strong>CSS Grid</strong>
</a>
<a class="property-links-direct" href="{{site.url}}/property/grid/" data-property-name="grid" data-tooltip="Single page for this property">Permalink</a>
<a class="property-share" data-tooltip="Share on Twitter or Facebook" data-property-name="grid">Share</a>
<a target="_blank" href="http://caniuse.com/#feat=css-grid" data-tooltip="See on Can I use..." rel="external">Can I use</a>
<a target="_blank" href="https://developer.mozilla.org/en/docs/Web/CSS/grid" data-tooltip="See on Mozilla Developer Network" rel="external">MDN</a>
</nav>
<h2 class="property-name">
<a href="#grid"><span>#</span>grid</a>
</h2>
<div class="property-description">
<p>Shorthand property for <code class="shorthand"><a class="hash" href="{{site.url}}/property/grid-template-rows" data-property-name="grid-template-rows">grid-template-rows</a></code> <code class="shorthand"><a class="hash" href="{{site.url}}/property/grid-template-columns" data-property-name="grid-template-columns">grid-template-columns</a></code> <code class="shorthand"><a class="hash" href="{{site.url}}/property/grid-template-areas" data-property-name="grid-template-areas">grid-template-areas</a></code> <code class="shorthand"><a class="hash" href="{{site.url}}/property/grid-auto-rows" data-property-name="grid-auto-rows">grid-auto-rows</a></code> <code class="shorthand"><a class="hash" href="{{site.url}}/property/grid-auto-columns" data-property-name="grid-auto-columns">grid-auto-columns</a></code> and <code class="shorthand"><a class="hash" href="{{site.url}}/property/grid-auto-flow" data-property-name="grid-auto-flow">grid-auto-flow</a></code>.</p>
</div>
</header>
<style type="text/css">.grid { display: grid;padding: 0; }</style>
<section class="example">
<header class="example-header">
<p class="example-name">
<code class="example-value" data-tooltip="Click to copy" data-clipboard-text="grid: "header header header" 50px "sidebar main main" 200px / 100px auto;">grid: "header header header" 50px "sidebar main main" 200px / 100px auto;</code>
</p>
<div class="example-description">
<p>You can use it as <code>grid-template</code> by setting all <strong>explicit</strong> rows, columns, and areas.</p>
</div>
</header>
<aside class="example-preview">
<div class="example-browser"><i></i><i></i><i></i></div>
<div class="example-output">
<div class="example-output-div grid " id="grid-header-header-header-50px-sidebar-main-main-200px--100px-auto"><p class="block block--alpha">Header</p><p class="block block--beta">Sidebar</p><p class="block block--pink">Main</p><p class="block block--purple">Other</p></div>
</div>
</aside>
<style type="text/css">#grid-header-header-header-50px-sidebar-main-main-200px--100px-auto{ grid:"header header header" 50px "sidebar main main" 200px / 100px auto;}</style>
<style type="text/css">#grid-header-header-header-50px-sidebar-main-main-200px--100px-auto .block--alpha { grid-area: header; }#grid-header-header-header-50px-sidebar-main-main-200px--100px-auto .block--beta { grid-area: sidebar; }#grid-header-header-header-50px-sidebar-main-main-200px--100px-auto .block--pink { grid-area: main; }</style>
</section>
<section class="example">
<header class="example-header">
<p class="example-name">
<code class="example-value" data-tooltip="Click to copy" data-clipboard-text="grid: 200px 100px / auto-flow 30%;">grid: 200px 100px / auto-flow 30%;</code>
</p>
<div class="example-description">
<p>You can combine <code>grid-template-rows</code> with <code>grid-auto-columns</code>.</p>
</div>
</header>
<aside class="example-preview">
<div class="example-browser"><i></i><i></i><i></i></div>
<div class="example-output">
<div class="example-output-div grid " id="grid-200px-100px--auto-flow-30"><p class="block block--alpha"><strong>1.</strong> One</p><p class="block block--beta"><strong>2.</strong> Two</p><p class="block block--pink"><strong>3.</strong> Three</p><p class="block block--yellow"><strong>4.</strong> Four</p><p class="block block--purple"><strong>5.</strong> Five</p><p class="block block--orange"><strong>6.</strong> Six</p></div>
</div>
</aside>
<style type="text/css">#grid-200px-100px--auto-flow-30{ grid:200px 100px / auto-flow 30%;}</style>
</section>
<section class="example">
<header class="example-header">
<p class="example-name">
<code class="example-value" data-tooltip="Click to copy" data-clipboard-text="grid: auto-flow 50px / 200px 100px;">grid: auto-flow 50px / 200px 100px;</code>
</p>
<div class="example-description">
<p>You can combine <code>grid-auto-rows</code> with <code>grid-template-columns</code>.</p>
</div>
</header>
<aside class="example-preview">
<div class="example-browser"><i></i><i></i><i></i></div>
<div class="example-output">
<div class="example-output-div grid " id="grid-auto-flow-50px--200px-100px"><p class="block block--alpha"><strong>1.</strong> One</p><p class="block block--beta"><strong>2.</strong> Two</p><p class="block block--pink"><strong>3.</strong> Three</p><p class="block block--yellow"><strong>4.</strong> Four</p><p class="block block--purple"><strong>5.</strong> Five</p><p class="block block--orange"><strong>6.</strong> Six</p></div>
</div>
</aside>
<style type="text/css">#grid-auto-flow-50px--200px-100px{ grid:auto-flow 50px / 200px 100px;}</style>
</section>
</section>