Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: html/grid.html

Issue 29361708: Issue 4609 - Default grid component (Closed)
Patch Set: Fixed patch to apply to updated content Created Nov. 10, 2016, 2:13 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | scss/_grid.scss » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <!--
3 This file is part of universal-design-language
4 Copyright (C) 2016 Eyeo GmbH
5
6 universal-design-language is free software: you can redistribute it and/or
7 modify it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
10
11 universal-design-language is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with web.starter-kit. If not, see <http://www.gnu.org/licenses/>.
18 -->
19 <html dir="ltr">
20 <head>
21 <meta charset="utf-8">
22 <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to- fit=no">
23 <meta http-equiv="x-ua-compatible" content="ie=edge">
24 <title>Grid</title>
25 <link rel="stylesheet" href="/css/main.css">
26 <style>
27
28 /* NOTE: The following inline styles are meant for this demo **only**. */
juliandoucette 2016/11/10 16:08:15 I should probably explain what I'm doing with the
29
30 .example
31 {
32 color: white;
33 background-color: black;
34 padding: 0.25em 0.5em;
35 margin: 0 0 1em 0;
36 }
37
38 .mobile
39 {
40 width: 540px;
41 }
42
43 .mobile .column,
44 .tablet .column
45 {
46 width: 100%;
47 }
48
49 .tablet
50 {
51 width: 720px;
52 }
53
54 .tablet .column.one-fourth
55 {
56 width: 50%;
57 }
58
59 .clearfix:after
juliandoucette 2016/11/10 16:08:15 This is redundant. _content.scss will define .clea
60 {
61 content: "";
62 display: block;
63 clear: both;
64 }
65
66 </style>
67 </head>
68 <body>
69 <main class="container">
70
71 <h1>Grid</h1>
72 <p>A grid is made up of rows of columns.</p>
73
74 <h3>Rows</h3>
75 <ul>
76 <li>Rows contain one or more columns</li>
77 <li>Rows clear columns</li>
78 <li>
79 Rows negate the the left & right padding of their first & last columns
80 <ul>
81 <li>While preserving consistent padding between columns</li>
82 </ul>
83 </li>
84 </ul>
85
86 <h4>Row with columns</h4>
87 <div class="row">
88 <div class="one-half column"><div class="example">This block is aligned wi th the above heading.</div></div>
89 <div class="one-half column"><div class="example">&nbsp;</div></div>
90 </div>
91
92 <h4>Container with columns</h4>
93 <div class="clearfix">
94 <div class="one-half column"><div class="example">This block is not aligne d with the above heading.</div></div>
95 <div class="one-half column"><div class="example">&nbsp;</div></div>
96 </div>
97
98 <h3>Columns</h3>
99 <ul>
100 <li>Columns are 100% width by default</li>
101 <li>Modifier classes are applied to columns to change their width</li>
102 <li>Modifier classes behave differently on different device widths</li>
103 </ul>
104
105 <div class="desktop">
106 <h4>Desktop</h4>
107 <div class="row">
108 <div class="one-half column"><div class="example">.one-half .column</div ></div>
109 <div class="one-half column"><div class="example">.one-half .column</div ></div>
110 </div>
111 <div class="row">
112 <div class="one-third column"><div class="example">.one-third .column</d iv></div>
113 <div class="one-third column"><div class="example">.one-third .column</d iv></div>
114 <div class="one-third column"><div class="example">.one-third .column</d iv></div>
115 </div>
116 <div class="row">
117 <div class="one-fourth column"><div class="example">.one-fourth .column< /div></div>
118 <div class="one-fourth column"><div class="example">.one-fourth .column< /div></div>
119 <div class="one-fourth column"><div class="example">.one-fourth .column< /div></div>
120 <div class="one-fourth column"><div class="example">.one-fourth .column< /div></div>
121 </div>
122 </div>
123
124 <div class="tablet">
125 <h4>Tablet</h4>
126 <div class="row">
127 <div class="one-half column"><div class="example">.one-half .column</div ></div>
128 <div class="one-half column"><div class="example">.one-half .column</div ></div>
129 </div>
130 <div class="row">
131 <div class="one-third column"><div class="example">.one-third .column</d iv></div>
132 <div class="one-third column"><div class="example">.one-third .column</d iv></div>
133 <div class="one-third column"><div class="example">.one-third .column</d iv></div>
134 </div>
135 <div class="row">
136 <div class="one-fourth column"><div class="example">.one-fourth .column< /div></div>
137 <div class="one-fourth column"><div class="example">.one-fourth .column< /div></div>
138 <div class="one-fourth column"><div class="example">.one-fourth .column< /div></div>
139 <div class="one-fourth column"><div class="example">.one-fourth .column< /div></div>
140 </div>
141 </div>
142
143 <div class="mobile">
144 <h4>Mobile</h4>
145 <div class="row">
146 <div class="one-half column"><div class="example">.one-half .column</div ></div>
147 <div class="one-half column"><div class="example">.one-half .column</div ></div>
148 </div>
149 <div class="row">
150 <div class="one-third column"><div class="example">.one-third .column</d iv></div>
151 <div class="one-third column"><div class="example">.one-third .column</d iv></div>
152 <div class="one-third column"><div class="example">.one-third .column</d iv></div>
153 </div>
154 <div class="row">
155 <div class="one-fourth column"><div class="example">.one-fourth .column< /div></div>
156 <div class="one-fourth column"><div class="example">.one-fourth .column< /div></div>
157 <div class="one-fourth column"><div class="example">.one-fourth .column< /div></div>
158 <div class="one-fourth column"><div class="example">.one-fourth .column< /div></div>
159 </div>
160 </div>
161
162 <h3>Direction</h3>
163 <ul>
164 <li>Columns within rows modified by the <code>.reverse</code> class appear in reverse order</li>
165 <li>Columns within sections modified by the <code>rtl</code> direction app ear in reverse order respectively</li>
166 </ul>
167
168 <h4>Reverse Row</h4>
169 <div class="row reverse">
170 <div class="one-half column"><div class="example">Column 1</div></div>
171 <div class="one-half column"><div class="example">Column 2</div></div>
172 </div>
173
174 <h4>RTL Row</h4>
175 <div dir="rtl">
176 <div class="row">
177 <div class="one-half column"><div class="example">Column 1</div></div>
178 <div class="one-half column"><div class="example">Column 2</div></div>
179 </div>
180 </div>
181
182 <h4>RTL Reverse Row</h4>
183 <div dir="rtl">
184 <div class="row reverse">
185 <div class="one-half column"><div class="example">Column 1</div></div>
186 <div class="one-half column"><div class="example">Column 2</div></div>
187 </div>
188 </div>
189
190 </main>
191 </body>
192 </html>
OLDNEW
« no previous file with comments | « no previous file | scss/_grid.scss » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld