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

Side by Side Diff: scss/_grid.scss

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
OLDNEW
(Empty)
1 /*!
2 * This file is part of universal-design-language
3 * Copyright (C) 2016 Eyeo GmbH
4 *
5 * universal-design-language is free software: you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * universal-design-language is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with web.starter-kit. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19 /** Grid component */
20
21 /**
22 * - .row contains one or more .column(s)
23 * - .row clears .column(s)
24 * - .row negates the left & right padding of it's left-most & right-most
25 * .column(s) while preserving consistent padding between .column(s)
26 */
27 .row
28 {
29 margin: 0px (-$small-space);
30 }
31
32 .row:after
33 {
34 display: block;
35 clear: both;
36 content: "";
37 }
38
39 /**
40 * - .column is 100% width by default
41 * - Modifier classes are applied to .column to change it's width
42 * - Modifier classes behave differently on different device widths
43 */
44 .column
45 {
46 position: relative;
47 width: 100%;
48 min-height: 1px;
49 padding: 0px $small-space;
50 }
51
52 /* - .column(s) within .row .reverse appear in reverse order
53 * - .column(s) within [dir=rtl] appear in reverse order respectively
54 */
55
56 .column,
57 [dir="rtl"] .reverse .column
58 {
59 float: left;
60 }
61
62 .reverse .column,
63 [dir="rtl"] .column
64 {
65 float: right;
66 }
67
68 @media(min-width: $tablet-breakpoint)
69 {
70 .one-fourth
71 {
72 width: 50%;
73 }
74 }
75
76 @media(min-width: $desktop-breakpoint)
77 {
78 .one-half
79 {
80 width: 50%;
81 }
82
83 .one-third
84 {
85 width: 33.333333%;
86 }
87
88 .two-thirds
89 {
90 width: 66.666667%;
91 }
92
93 .one-fourth
94 {
95 width: 25%;
96 }
97
98 .three-fourths
99 {
100 width: 75%;
101 }
102 }
OLDNEW
« html/grid.html ('K') | « html/grid.html ('k') | scss/main.scss » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld