| 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 |
| (...skipping 25 matching lines...) Expand all Loading... | |
| 36 .container | 36 .container |
| 37 { | 37 { |
| 38 width: $container-width; | 38 width: $container-width; |
| 39 max-width: 100%; | 39 max-width: 100%; |
| 40 margin-right: auto; | 40 margin-right: auto; |
| 41 margin-left: auto; | 41 margin-left: auto; |
| 42 padding-right: $small-space; | 42 padding-right: $small-space; |
| 43 padding-left: $small-space; | 43 padding-left: $small-space; |
| 44 } | 44 } |
| 45 | 45 |
| 46 /** | |
| 47 * Vertically space sections of content | |
| 48 */ | |
| 49 .section | |
|
ire
2017/10/30 08:07:20
TOL: I'm a bit hesitant about this because this is
juliandoucette
2017/10/30 12:16:46
Nah, I think I like your section more. I want to b
| |
| 50 { | |
| 51 @extend .clearfix; | |
| 52 margin-top: $small-space; | |
|
ire
2017/10/30 08:07:20
Using these variables has the same problem as usin
juliandoucette
2017/10/30 12:16:46
Agreed.
| |
| 53 margin-bottom: $small-space; | |
| 54 padding-top: $small-space; | |
| 55 padding-bottom: $small-space; | |
| 56 | |
| 57 @media(min-width: $tablet-breakpoint) | |
|
ire
2017/10/30 08:07:20
NIT: I think we should decide on if we put a space
juliandoucette
2017/10/30 12:16:46
Agreed.
| |
| 58 { | |
| 59 padding-top: $medium-space; | |
| 60 padding-bottom: $medium-space; | |
| 61 padding-top: $medium-space; | |
| 62 padding-bottom: $medium-space; | |
| 63 } | |
| 64 | |
| 65 @media(min-width: $desktop-breakpoint) | |
| 66 { | |
| 67 padding-top: $large-space; | |
| 68 padding-bottom: $large-space; | |
| 69 padding-top: $large-space; | |
| 70 padding-bottom: $large-space; | |
| 71 } | |
| 72 } | |
| 73 | |
| 74 | |
| 46 /* Device widths | 75 /* Device widths |
| 47 ******************************************************************************/ | 76 ******************************************************************************/ |
| 48 | 77 |
| 49 .phone-width { width: $phone-width; } | 78 .phone-width { width: $phone-width; } |
| 50 .phablet-width { width: $phablet-width; } | 79 .phablet-width { width: $phablet-width; } |
| 51 .tablet-width { width: $tablet-width; } | 80 .tablet-width { width: $tablet-width; } |
| 52 .desktop-width { width: $desktop-width; } | 81 .desktop-width { width: $desktop-width; } |
| 53 .large-desktop-width { width: $large-desktop-width; } | 82 .large-desktop-width { width: $large-desktop-width; } |
| 54 | 83 |
| 55 /* Clearfix | 84 /* Clearfix |
| 56 ******************************************************************************/ | 85 ******************************************************************************/ |
| 57 | 86 |
| 58 .clearfix:after, | 87 .clearfix:after, |
| 59 .clearfix:before | 88 .clearfix:before |
| 60 { | 89 { |
| 61 display: table; | 90 display: table; |
| 62 content: " "; | 91 content: " "; |
| 63 } | 92 } |
| 64 | 93 |
| 65 .clearfix:after | 94 .clearfix:after |
| 66 { | 95 { |
| 67 clear: both; | 96 clear: both; |
| 68 } | 97 } |
| OLD | NEW |