Left: | ||
Right: |
OLD | NEW |
---|---|
(Empty) | |
1 // This file is part of help.eyeo.com. | |
2 // Copyright (C) 2017 Eyeo GmbH | |
3 // | |
4 // help.eyeo.com is free software: you can redistribute it and/or modify | |
5 // 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 | |
7 // (at your option) any later version. | |
8 // | |
9 // help.eyeo.com is distributed in the hope that it will be useful, | |
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 // GNU General Public License for more details. | |
13 // | |
14 // You should have received a copy of the GNU General Public License | |
15 // along with help.eyeo.com. If not, see <http://www.gnu.org/licenses/>. | |
16 | |
17 // Screen reader /////////////////////////////////////////////////////////////// | |
18 | |
19 // Use this class to add screen reader / web crawler only content | |
20 // | |
21 // EG: | |
22 // - An h1 for SEO that is not visible | |
23 // - A skip-to link for screen readers | |
24 | |
25 .sr-only | |
26 { | |
27 position: absolute; | |
28 overflow: hidden; | |
29 clip: rect(0, 0, 0, 0); | |
30 width: 1px; | |
31 height: 1px; | |
32 margin: -1px; | |
33 padding: 0; | |
34 border: 0; | |
35 } | |
36 | |
37 // Clearfix /////////////////////////////////////////////////////////////// | |
38 | |
39 .clearfix:after | |
40 { | |
41 display: table; | |
42 clear: both; | |
43 content: ""; | |
44 } | |
45 | |
46 // Responsive /////////////////////////////////////////////////////////////// | |
juliandoucette
2017/08/29 16:17:23
It may be worth proposing that we rename $size-bre
| |
47 | |
48 .mobile-only | |
49 { | |
50 @media (min-width: $mobile-breakpoint) | |
juliandoucette
2017/08/23 14:39:05
See comment [here](https://codereview.adblockplus.
ire
2017/08/25 08:27:08
Acknowledged.
juliandoucette
2017/08/29 16:17:24
Note: This should be min-width $tablet-breakpoint
ire
2017/09/01 10:57:18
Done.
| |
51 { | |
52 display: none; | |
53 } | |
54 } | |
55 | |
56 .tablet-and-mobile-only | |
juliandoucette
2017/08/23 14:39:05
The website-default grid considers anything less t
ire
2017/08/25 08:27:08
Ack. See my reply on the quoted comment.
juliandoucette
2017/08/29 16:17:23
On 2017/08/25 08:27:08, ire wrote:
Ack. See my rep
ire
2017/09/01 10:57:17
This is changed to .phablet-and-mobile-only, width
| |
57 { | |
58 @media (min-width: $tablet-breakpoint) | |
59 { | |
60 display: none; | |
61 } | |
62 } | |
63 | |
64 .tablet-and-desktop-only | |
65 { | |
66 @media (max-width: $mobile-breakpoint) | |
67 { | |
68 display: none; | |
69 } | |
70 } | |
71 | |
72 .desktop-only | |
juliandoucette
2017/08/23 14:39:05
The website-default grid considers anything more t
ire
2017/08/25 08:27:09
Ack. See my reply on the quoted comment.
juliandoucette
2017/08/29 16:17:24
Note: This should be min-width: $desktop-breakpoin
ire
2017/09/01 10:57:17
This is max-width: $desktop-breakpoint, because I'
juliandoucette
2017/09/01 11:43:44
Acknowledged. But it should be $tablet-breakpoint
ire
2017/09/01 12:12:03
Done.
| |
73 { | |
74 @media (max-width: $tablet-breakpoint) | |
75 { | |
76 display: none; | |
77 } | |
78 } | |
79 | |
80 // Unstyled /////////////////////////////////////////////////////////////// | |
81 | |
82 .unstyled | |
83 { | |
84 margin: 0; | |
85 padding: 0; | |
86 border: 0; | |
87 background: none; | |
88 } | |
OLD | NEW |