Left: | ||
Right: |
OLD | NEW |
---|---|
1 // This file is part of website-defaults | 1 // This file is part of website-defaults |
2 // Copyright (C) 2016-present eyeo GmbH | 2 // Copyright (C) 2016-present eyeo GmbH |
3 // | 3 // |
4 // website-defaults is free software: you can redistribute it and/or | 4 // website-defaults is free software: you can redistribute it and/or |
5 // modify it under the terms of the GNU General Public License as published by | 5 // modify it under the terms of the GNU General Public License as published by |
6 // the Free Software Foundation, either version 3 of the License, or | 6 // the Free Software Foundation, either version 3 of the License, or |
7 // (at your option) any later version. | 7 // (at your option) any later version. |
8 // | 8 // |
9 // website-defaults is distributed in the hope that it will be useful, | 9 // website-defaults is distributed in the hope that it will be useful, |
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 // but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 // GNU General Public License for more details. | 12 // GNU General Public License for more details. |
13 // | 13 // |
14 // You should have received a copy of the GNU General Public License | 14 // You should have received a copy of the GNU General Public License |
15 // along with website-defaults. If not, see <http://www.gnu.org/licenses/>. | 15 // along with website-defaults. If not, see <http://www.gnu.org/licenses/>. |
16 | 16 |
17 /******************************************************************************* | 17 /******************************************************************************* |
18 * Utilities | 18 * Utilities |
19 ******************************************************************************/ | 19 ******************************************************************************/ |
20 | 20 |
21 /* Responsive widths | |
22 ******************************************************************************/ | |
23 | |
21 /** | 24 /** |
22 * Stretch content full-width | 25 * Stretch content (e.g. images) full-width |
23 */ | 26 */ |
24 .full-width | 27 .full-width |
25 { | 28 { |
26 display: block; | 29 display: block; |
27 width: 100%; | 30 width: 100%; |
28 margin: $small-space 0px; | |
juliandoucette
2017/10/24 14:08:34
Because width says nothing about vertical spacing.
ire
2017/10/25 09:20:00
Acknowledged.
| |
29 } | 31 } |
30 | 32 |
31 /** | 33 /** |
32 * Clearfix content | 34 * Center content within a (responsive) fixed width |
33 */ | 35 */ |
36 .container | |
37 { | |
38 width: $container-width; | |
39 max-width: 100%; | |
40 margin-right: auto; | |
41 margin-left: auto; | |
42 padding-right: $small-space; | |
43 padding-left: $small-space; | |
44 } | |
45 | |
46 /* Device widths | |
47 ******************************************************************************/ | |
48 | |
49 .phone-width { width: $phone-width; } | |
50 .phablet-width { width: $phablet-width; } | |
51 .tablet-width { width: $tablet-width; } | |
52 .desktop-width { width: $desktop-width; } | |
53 .large-desktop-width { width: $large-desktop-width; } | |
54 | |
55 /* Clearfix | |
56 ******************************************************************************/ | |
57 | |
34 .clearfix:after, | 58 .clearfix:after, |
35 .clearfix:before | 59 .clearfix:before |
36 { | 60 { |
37 display: table; | 61 display: table; |
38 content: " "; | 62 content: " "; |
39 } | 63 } |
40 | 64 |
41 .clearfix:after | 65 .clearfix:after |
42 { | 66 { |
43 clear: both; | 67 clear: both; |
44 } | 68 } |
OLD | NEW |