| LEFT | RIGHT |
| 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 | 21 /* Responsive widths |
| 22 ******************************************************************************/ | 22 ******************************************************************************/ |
| 23 | 23 |
| 24 /** | 24 /** |
| 25 * Stretch content (e.g. images) full-width | 25 * Stretch content (e.g. images) full-width |
| 26 */ | 26 */ |
| 27 .full-width | 27 .full-width |
| 28 { | 28 { |
| 29 display: block !important; | 29 display: block; |
| 30 width: 100% !important; | 30 width: 100%; |
| 31 } | 31 } |
| 32 | 32 |
| 33 /** | 33 /** |
| 34 * Center content within a (responsive) fixed width | 34 * Center content within a (responsive) fixed width |
| 35 */ | 35 */ |
| 36 .container | 36 .container |
| 37 { | 37 { |
| 38 width: $container-width !important; | 38 width: $container-width; |
| 39 max-width: 100% !important; | 39 max-width: 100%; |
| 40 margin-right: auto !important; | 40 margin-right: auto; |
| 41 margin-left: auto !important; | 41 margin-left: auto; |
| 42 padding-right: $small-space !important; | 42 padding-right: $small-space; |
| 43 padding-left: $small-space !important; | 43 padding-left: $small-space; |
| 44 } | 44 } |
| 45 | 45 |
| 46 /* Device widths | 46 /* Device widths |
| 47 ******************************************************************************/ | 47 ******************************************************************************/ |
| 48 | 48 |
| 49 .phone-width { width: $phone-width !important; } | 49 .phone-width { width: $phone-width; } |
| 50 .phablet-width { width: $phablet-width !important; } | 50 .phablet-width { width: $phablet-width; } |
| 51 .tablet-width { width: $tablet-width !important; } | 51 .tablet-width { width: $tablet-width; } |
| 52 .desktop-width { width: $desktop-width !important; } | 52 .desktop-width { width: $desktop-width; } |
| 53 .large-desktop-width { width: $large-desktop-width !important; } | 53 .large-desktop-width { width: $large-desktop-width; } |
| 54 | 54 |
| 55 /* Text alignment | 55 /* Text alignment |
| 56 ******************************************************************************/ | 56 ******************************************************************************/ |
| 57 | 57 |
| 58 .text-center { text-align: center !important; } | 58 .text-center { text-align: center; } |
| 59 .text-left { text-align: left !important; } | 59 .text-left { text-align: left; } |
| 60 .text-right { text-align: right !important; } | 60 .text-right { text-align: right; } |
| 61 .text-start { text-align: left !important; } | 61 .text-start { text-align: left; } |
| 62 [dir="rtl"] .text-start { text-align: right !important; } | 62 [dir="rtl"] .text-start { text-align: right; } |
| 63 .text-end { text-align: right !important; } | 63 .text-end { text-align: right; } |
| 64 [dir="rtl"] .text-end { text-align: left !important; } | 64 [dir="rtl"] .text-end { text-align: left; } |
| 65 | 65 |
| 66 /* Floats | 66 /* Floats |
| 67 ******************************************************************************/ | 67 ******************************************************************************/ |
| 68 | 68 |
| 69 .float-start { float: left !important; } | 69 .float-start { float: left; } |
| 70 [dir="rtl"] .float-start { float: right !important; } | 70 [dir="rtl"] .float-start { float: right; } |
| 71 .float-end { float: right !important; } | 71 .float-end { float: right; } |
| 72 [dir="rtl"] .float-end { float: left !important; } | 72 [dir="rtl"] .float-end { float: left; } |
| 73 | 73 |
| 74 /* Clearfix | 74 /* Clearfix |
| 75 ******************************************************************************/ | 75 ******************************************************************************/ |
| 76 | 76 |
| 77 .clearfix:after, | 77 .clearfix:after, |
| 78 .clearfix:before | 78 .clearfix:before |
| 79 { | 79 { |
| 80 display: table !important; | 80 display: table; |
| 81 content: " " !important; | 81 content: " "; |
| 82 } | 82 } |
| 83 | 83 |
| 84 .clearfix:after | 84 .clearfix:after |
| 85 { | 85 { |
| 86 clear: both !important; | 86 clear: both; |
| 87 } | 87 } |
| 88 | 88 |
| 89 /* Screen reader only | 89 /* Screen reader only |
| 90 ******************************************************************************/ | 90 ******************************************************************************/ |
| 91 | 91 |
| 92 .sr-only | 92 .sr-only |
| 93 { | 93 { |
| 94 position: absolute !important; | 94 position: absolute; |
| 95 overflow: hidden !important; | 95 overflow: hidden; |
| 96 clip: rect(0, 0, 0, 0) !important; | 96 clip: rect(0, 0, 0, 0); |
| 97 width: 1px !important; | 97 width: 1px; |
| 98 height: 1px !important; | 98 height: 1px; |
| 99 margin: -1px !important; | 99 margin: -1px; |
| 100 padding: 0 !important; | 100 padding: 0; |
| 101 border: 0 !important; | 101 border: 0; |
| 102 } | 102 } |
| 103 | 103 |
| 104 /* Unstyled elements | 104 /* Unstyled elements |
| 105 ******************************************************************************/ | 105 ******************************************************************************/ |
| 106 | 106 |
| 107 .unstyled, | 107 .unstyled, |
| 108 .unstyled *, | 108 .unstyled * |
| 109 .content .unstyled | |
| 110 { | 109 { |
| 111 margin: 0 !important; | 110 margin: 0 !important; |
| 112 padding: 0 !important; | 111 padding: 0 !important; |
| 113 border: 0 !important; | 112 border: 0 !important; |
| 114 background: none !important; | 113 background: none !important; |
| 115 } | |
| 116 | |
| 117 ul.unstyled | |
| 118 { | |
| 119 list-style: none !important; | 114 list-style: none !important; |
| 120 } | 115 } |
| 121 | 116 |
| 122 /* Backgrounds | 117 /* Backgrounds |
| 123 ******************************************************************************/ | 118 ******************************************************************************/ |
| 124 | 119 |
| 125 .bg-primary | 120 .bg-primary |
| 126 { | 121 { |
| 127 color: $primary-light !important; | 122 color: $primary-light; |
| 128 background-color: $primary-dark !important; | 123 background-color: $primary-dark; |
| 129 } | 124 } |
| 130 | 125 |
| 131 .bg-secondary | 126 .bg-secondary |
| 132 { | 127 { |
| 133 color: $secondary-light !important; | 128 color: $secondary-light; |
| 134 background-color: $secondary-dark !important; | 129 background-color: $secondary-dark; |
| 135 } | 130 } |
| 136 | 131 |
| 137 .bg-accent | 132 .bg-accent |
| 138 { | 133 { |
| 139 color: $accent-light !important; | 134 color: $accent-light; |
| 140 background-color: $accent-dark !important; | 135 background-color: $accent-dark; |
| 141 } | 136 } |
| 142 | 137 |
| 143 .bg-error | 138 .bg-error |
| 144 { | 139 { |
| 145 color: $error-light !important; | 140 color: $error-light; |
| 146 background-color: $error-dark !important; | 141 background-color: $error-dark; |
| 147 } | 142 } |
| 148 | 143 |
| 149 /* Lead | 144 /* Lead |
| 150 ******************************************************************************/ | 145 ******************************************************************************/ |
| 151 | 146 |
| 152 .lead | 147 .lead |
| 153 { | 148 { |
| 154 font-size: 1.25em !important; | 149 font-size: 1.25em; |
| 155 } | 150 } |
| LEFT | RIGHT |