Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: static/scss/base/_utilities.scss

Issue 29596555: Noissue - Format CSS comments and implement new wd classes (Closed) Base URL: https://hg.adblockplus.org/help.eyeo.com
Patch Set: Created Nov. 3, 2017, 8:46 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 // This file is part of help.eyeo.com. 1 // This file is part of help.eyeo.com.
2 // Copyright (C) 2017 Eyeo GmbH 2 // Copyright (C) 2017 Eyeo GmbH
3 // 3 //
4 // help.eyeo.com is free software: you can redistribute it and/or modify 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 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 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 // help.eyeo.com is distributed in the hope that it will be useful, 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 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 help.eyeo.com. If not, see <http://www.gnu.org/licenses/>. 15 // along with help.eyeo.com. If not, see <http://www.gnu.org/licenses/>.
16 16
17 // Screen reader /////////////////////////////////////////////////////////////// 17 /*******************************************************************************
18 * Utilities
19 ******************************************************************************/
18 20
19 // Use this class to add screen reader / web crawler only content 21 /* Responsive
20 // 22 ******************************************************************************/
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 // Responsive ///////////////////////////////////////////////////////////////
38 23
39 .mobile-only 24 .mobile-only
40 { 25 {
41 @media (min-width: $phablet-breakpoint) 26 @media (min-width: $phablet-breakpoint)
42 { 27 {
43 display: none; 28 display: none;
44 } 29 }
45 } 30 }
46 31
47 .phablet-and-mobile-only 32 .phablet-and-mobile-only
(...skipping 13 matching lines...) Expand all
61 } 46 }
62 47
63 .desktop-only 48 .desktop-only
64 { 49 {
65 @media (max-width: $desktop-breakpoint - 1px) 50 @media (max-width: $desktop-breakpoint - 1px)
66 { 51 {
67 display: none; 52 display: none;
68 } 53 }
69 } 54 }
70 55
71 // Unstyled /////////////////////////////////////////////////////////////// 56 /* Unstyled
57 ******************************************************************************/
72 58
73 .unstyled, 59 .unstyled,
74 .content .unstyled 60 .content .unstyled
75 { 61 {
76 margin: 0; 62 margin: 0;
77 padding: 0; 63 padding: 0;
78 border: 0; 64 border: 0;
79 background: none; 65 background: none;
80 } 66 }
81 67
82 ul.unstyled 68 ul.unstyled
83 { 69 {
84 list-style: none; 70 list-style: none;
85 } 71 }
86 72
87 // Typography /////////////////////////////////////////////////////////////// 73 /* Font colours
88 74 ******************************************************************************/
89 .ta-center
90 {
91 text-align: center;
92 }
93
94 // Font Colours ////////////////////////////////////////////////////////////
95 75
96 .muted 76 .muted
97 { 77 {
98 color: $gray-medium; 78 color: $gray-medium;
99 } 79 }
100 80
101 a.muted, 81 a.muted,
102 .muted a 82 .muted a
103 { 83 {
104 color: $gray-medium !important; 84 color: $gray-medium !important;
105 text-decoration: underline; 85 text-decoration: underline;
106 } 86 }
107 87
108 // Underlined /////////////////////////////////////////////////////////////// 88 /* Underlined
89 ******************************************************************************/
109 90
110 .underlined 91 .underlined
111 { 92 {
112 border-bottom: 1px dotted $gray; 93 border-bottom: 1px dotted $gray;
113 } 94 }
OLDNEW

Powered by Google App Engine
This is Rietveld