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 24 matching lines...) Expand all Loading... |
35 .clearfix:before | 35 .clearfix:before |
36 { | 36 { |
37 display: table; | 37 display: table; |
38 content: " "; | 38 content: " "; |
39 } | 39 } |
40 | 40 |
41 .clearfix:after | 41 .clearfix:after |
42 { | 42 { |
43 clear: both; | 43 clear: both; |
44 } | 44 } |
| 45 |
| 46 /** |
| 47 * Screen reader only |
| 48 * Use this class to add screen reader / web crawler only content |
| 49 * |
| 50 * EG: |
| 51 * - An h1 for SEO that is not visible |
| 52 * - A skip-to link for screen readers |
| 53 */ |
| 54 |
| 55 .sr-only |
| 56 { |
| 57 position: absolute; |
| 58 overflow: hidden; |
| 59 clip: rect(0, 0, 0, 0); |
| 60 width: 1px; |
| 61 height: 1px; |
| 62 margin: -1px; |
| 63 padding: 0; |
| 64 border: 0; |
| 65 } |
OLD | NEW |