| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 | 45 |
| 46 /* Device widths | 46 /* Device widths |
| 47 ******************************************************************************/ | 47 ******************************************************************************/ |
| 48 | 48 |
| 49 .phone-width { width: $phone-width; } | 49 .phone-width { width: $phone-width; } |
| 50 .phablet-width { width: $phablet-width; } | 50 .phablet-width { width: $phablet-width; } |
| 51 .tablet-width { width: $tablet-width; } | 51 .tablet-width { width: $tablet-width; } |
| 52 .desktop-width { width: $desktop-width; } | 52 .desktop-width { width: $desktop-width; } |
| 53 .large-desktop-width { width: $large-desktop-width; } | 53 .large-desktop-width { width: $large-desktop-width; } |
| 54 | 54 |
| 55 /* Text alignment |
| 56 ******************************************************************************/ |
| 57 |
| 58 .text-center { text-align: center; } |
| 59 .text-left { text-align: left; } |
| 60 .text-right { text-align: right; } |
| 61 .text-start { text-align: left; } |
| 62 [dir="rtl"] .text-start { text-align: right; } |
| 63 .text-end { text-align: right; } |
| 64 [dir="rtl"] .text-end { text-align: left; } |
| 65 |
| 55 /* Clearfix | 66 /* Clearfix |
| 56 ******************************************************************************/ | 67 ******************************************************************************/ |
| 57 | 68 |
| 58 .clearfix:after, | 69 .clearfix:after, |
| 59 .clearfix:before | 70 .clearfix:before |
| 60 { | 71 { |
| 61 display: table; | 72 display: table; |
| 62 content: " "; | 73 content: " "; |
| 63 } | 74 } |
| 64 | 75 |
| 65 .clearfix:after | 76 .clearfix:after |
| 66 { | 77 { |
| 67 clear: both; | 78 clear: both; |
| 68 } | 79 } |
| 69 | 80 |
| 81 /* Screen reader only |
| 82 ******************************************************************************/ |
| 83 |
| 84 .sr-only |
| 85 { |
| 86 position: absolute; |
| 87 overflow: hidden; |
| 88 clip: rect(0, 0, 0, 0); |
| 89 width: 1px; |
| 90 height: 1px; |
| 91 margin: -1px; |
| 92 padding: 0; |
| 93 border: 0; |
| 94 } |
| 95 |
| 70 /* Backgrounds | 96 /* Backgrounds |
| 71 ******************************************************************************/ | 97 ******************************************************************************/ |
| 72 | 98 |
| 73 .bg-primary | 99 .bg-primary |
| 74 { | 100 { |
| 75 color: $primary-light; | 101 color: $primary-light; |
| 76 background-color: $primary-dark; | 102 background-color: $primary-dark; |
| 77 } | 103 } |
| 78 | 104 |
| 79 .bg-secondary | 105 .bg-secondary |
| 80 { | 106 { |
| 81 color: $secondary-light; | 107 color: $secondary-light; |
| 82 background-color: $secondary-dark; | 108 background-color: $secondary-dark; |
| 83 } | 109 } |
| 84 | 110 |
| 85 .bg-accent | 111 .bg-accent |
| 86 { | 112 { |
| 87 color: $accent-light; | 113 color: $accent-light; |
| 88 background-color: $accent-dark; | 114 background-color: $accent-dark; |
| 89 } | 115 } |
| 90 | 116 |
| 91 .bg-error | 117 .bg-error |
| 92 { | 118 { |
| 93 color: $error-light; | 119 color: $error-light; |
| 94 background-color: $error-dark; | 120 background-color: $error-dark; |
| 95 } | 121 } |
| OLD | NEW |