OLD | NEW |
1 /*! | 1 /*! |
2 * This file is part of website-defaults | 2 * This file is part of website-defaults |
3 * Copyright (C) 2016-present eyeo GmbH | 3 * Copyright (C) 2016-present eyeo GmbH |
4 * | 4 * |
5 * website-defaults is free software: you can redistribute it and/or | 5 * website-defaults is free software: you can redistribute it and/or |
6 * modify it under the terms of the GNU General Public License as published by | 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 | 7 * the Free Software Foundation, either version 3 of the License, or |
8 * (at your option) any later version. | 8 * (at your option) any later version. |
9 * | 9 * |
10 * website-defaults is distributed in the hope that it will be useful, | 10 * website-defaults is distributed in the hope that it will be useful, |
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 * GNU General Public License for more details. | 13 * GNU General Public License for more details. |
14 * | 14 * |
15 * You should have received a copy of the GNU General Public License | 15 * You should have received a copy of the GNU General Public License |
16 * along with website-defaults. If not, see <http://www.gnu.org/licenses/>. | 16 * along with website-defaults. If not, see <http://www.gnu.org/licenses/>. |
17 */ | 17 */ |
18 | 18 |
19 /******************************************************************************* | 19 /******************************************************************************* |
20 * Grid component | 20 * Grid component |
21 ******************************************************************************/ | 21 ******************************************************************************/ |
22 | 22 |
| 23 $half-breakpoint: $tablet-breakpoint !default; |
| 24 $third-breakpoint: $desktop-breakpoint !default; |
| 25 $fourth-breakpoint: $desktop-breakpoint !default; |
| 26 |
23 /** | 27 /** |
24 * - .row contains one or more .column(s) | 28 * - .row contains one or more .column(s) |
25 * - .row clears .column(s) | 29 * - .row clears .column(s) |
26 * - .row negates the left & right padding of it's left-most & right-most | 30 * - .row negates the left & right padding of it's left-most & right-most |
27 * .column(s) while preserving consistent padding between .column(s) | 31 * .column(s) while preserving consistent padding between .column(s) |
28 */ | 32 */ |
29 .row | 33 .row |
30 { | 34 { |
31 margin: 0px (-$small-space); | 35 margin: 0px (-$small-space); |
32 } | 36 } |
(...skipping 27 matching lines...) Expand all Loading... |
60 { | 64 { |
61 float: left; | 65 float: left; |
62 } | 66 } |
63 | 67 |
64 .reverse .column, | 68 .reverse .column, |
65 [dir="rtl"] .column | 69 [dir="rtl"] .column |
66 { | 70 { |
67 float: right; | 71 float: right; |
68 } | 72 } |
69 | 73 |
70 @media(min-width: $tablet-breakpoint) | 74 @media(min-width: $half-breakpoint) |
71 { | 75 { |
| 76 .one-half, |
72 .one-fourth | 77 .one-fourth |
73 { | 78 { |
74 width: 50%; | 79 width: 50%; |
75 } | 80 } |
76 } | 81 } |
77 | 82 |
78 @media(min-width: $desktop-breakpoint) | 83 @media(min-width: $third-breakpoint) |
79 { | 84 { |
80 .one-half | |
81 { | |
82 width: 50%; | |
83 } | |
84 | |
85 .one-third | 85 .one-third |
86 { | 86 { |
87 width: 33.333333%; | 87 width: 33.333333%; |
88 } | 88 } |
89 | 89 |
90 .two-thirds | 90 .two-thirds |
91 { | 91 { |
92 width: 66.666667%; | 92 width: 66.666667%; |
93 } | 93 } |
| 94 } |
94 | 95 |
| 96 @media(min-width: $fourth-breakpoint) |
| 97 { |
95 .one-fourth | 98 .one-fourth |
96 { | 99 { |
97 width: 25%; | 100 width: 25%; |
98 } | 101 } |
99 | 102 |
100 .three-fourths | 103 .three-fourths |
101 { | 104 { |
102 width: 75%; | 105 width: 75%; |
103 } | 106 } |
104 } | 107 } |
OLD | NEW |