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: Minor documentation changes. Created Nov. 17, 2016, 6:26 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 /* These styles are for demo purposes **only**. */
29
30 .bg-inverse
saroyanm 2016/11/21 19:14:46 Deatail: I think this is used as a container, but
juliandoucette 2016/11/30 18:27:43 Acknowledged.
31 {
32 color: white;
33 background-color: black;
34 padding: 5px 10px
35 }
36
37 .column
38 {
39 margin-bottom: 20px;
40 }
41
42 .mobile,
43 .tablet
44 {
45 max-width: 100%;
46 padding: 16px 0;
47 }
48
49 .mobile
50 {
51 width: 540px;
52 }
53
54 .mobile .column,
55 .tablet .column
56 {
57 width: 100%;
58 }
59
60 .tablet
61 {
62 width: 720px;
63 }
64
65 @media(min-width: 576px)
66 {
67 .tablet .column.one-fourth
68 {
69 width: 50%;
70 }
71 }
72 </style>
73 </head>
74 <body>
75 <div class="container">
76
77 <h1>Grid</h1>
78 <p>A grid is made up of one or more rows that clear and contain one or more columns. Column widths are set by modifier classes and may behave differently at different device widths. Columns may also be displayed in reverse order and/or right-to-left direction. See bg-inverses below.</p>
79
80 <div class="desktop">
81 <h2>Desktop width</h2>
82 <div class="row">
83 <div class="one-half column"><div class="bg-inverse">.one-half .column</ div></div>
84 <div class="one-half column"><div class="bg-inverse">.one-half .column</ div></div>
85 </div>
86 <div class="row">
87 <div class="one-third column"><div class="bg-inverse">.one-third .column </div></div>
88 <div class="one-third column"><div class="bg-inverse">.one-third .column </div></div>
89 <div class="one-third column"><div class="bg-inverse">.one-third .column </div></div>
90 </div>
91 <div class="row">
92 <div class="one-fourth column"><div class="bg-inverse">.one-fourth .colu mn</div></div>
93 <div class="one-fourth column"><div class="bg-inverse">.one-fourth .colu mn</div></div>
94 <div class="one-fourth column"><div class="bg-inverse">.one-fourth .colu mn</div></div>
95 <div class="one-fourth column"><div class="bg-inverse">.one-fourth .colu mn</div></div>
96 </div>
97 </div>
98
99 <div class="tablet">
100 <h2>Tablet width</h2>
101 <div class="row">
102 <div class="one-half column"><div class="bg-inverse">.one-half .column</ div></div>
103 <div class="one-half column"><div class="bg-inverse">.one-half .column</ div></div>
104 </div>
105 <div class="row">
106 <div class="one-third column"><div class="bg-inverse">.one-third .column </div></div>
107 <div class="one-third column"><div class="bg-inverse">.one-third .column </div></div>
108 <div class="one-third column"><div class="bg-inverse">.one-third .column </div></div>
109 </div>
110 <div class="row">
111 <div class="one-fourth column"><div class="bg-inverse">.one-fourth .colu mn</div></div>
112 <div class="one-fourth column"><div class="bg-inverse">.one-fourth .colu mn</div></div>
113 <div class="one-fourth column"><div class="bg-inverse">.one-fourth .colu mn</div></div>
114 <div class="one-fourth column"><div class="bg-inverse">.one-fourth .colu mn</div></div>
115 </div>
116 </div>
117
118 <div class="mobile">
119 <h2>Mobile width</h2>
120 <div class="row">
121 <div class="one-half column"><div class="bg-inverse">.one-half .column</ div></div>
122 <div class="one-half column"><div class="bg-inverse">.one-half .column</ div></div>
123 </div>
124 <div class="row">
125 <div class="one-third column"><div class="bg-inverse">.one-third .column </div></div>
126 <div class="one-third column"><div class="bg-inverse">.one-third .column </div></div>
127 <div class="one-third column"><div class="bg-inverse">.one-third .column </div></div>
128 </div>
129 <div class="row">
130 <div class="one-fourth column"><div class="bg-inverse">.one-fourth .colu mn</div></div>
131 <div class="one-fourth column"><div class="bg-inverse">.one-fourth .colu mn</div></div>
132 <div class="one-fourth column"><div class="bg-inverse">.one-fourth .colu mn</div></div>
133 <div class="one-fourth column"><div class="bg-inverse">.one-fourth .colu mn</div></div>
134 </div>
135 </div>
136
137 <h2>Reverse order</h2>
138 <div class="row reverse">
139 <div class="one-half column"><div class="bg-inverse">Column 1</div></div>
140 <div class="one-half column"><div class="bg-inverse">Column 2</div></div>
141 </div>
142
143 <h2>Right-to-left direction</h2>
144 <div dir="rtl">
145 <div class="row">
146 <div class="one-half column"><div class="bg-inverse">Column 1</div></div >
147 <div class="one-half column"><div class="bg-inverse">Column 2</div></div >
148 </div>
149 </div>
150
151 <h2>Reverse order and right-to-left direction</h2>
152 <div dir="rtl">
153 <div class="row reverse">
154 <div class="one-half column"><div class="bg-inverse">Column 1</div></div >
155 <div class="one-half column"><div class="bg-inverse">Column 2</div></div >
156 </div>
157 </div>
158
159 </div>
160 </body>
161 </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