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

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

Issue 29626562: Issue 6061 - Added important to utilities (Closed) Base URL: https://hg.adblockplus.org/website-defaults
Patch Set: Created Dec. 1, 2017, 3:27 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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; 29 display: block !important;
30 width: 100%; 30 width: 100% !important;
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; 38 width: $container-width !important;
39 max-width: 100%; 39 max-width: 100% !important;
40 margin-right: auto; 40 margin-right: auto !important;
41 margin-left: auto; 41 margin-left: auto !important;
42 padding-right: $small-space; 42 padding-right: $small-space !important;
43 padding-left: $small-space; 43 padding-left: $small-space !important;
44 } 44 }
45 45
46 /* Device widths 46 /* Device widths
47 ******************************************************************************/ 47 ******************************************************************************/
48 48
49 .phone-width { width: $phone-width; } 49 .phone-width { width: $phone-width !important; }
50 .phablet-width { width: $phablet-width; } 50 .phablet-width { width: $phablet-width !important; }
51 .tablet-width { width: $tablet-width; } 51 .tablet-width { width: $tablet-width !important; }
52 .desktop-width { width: $desktop-width; } 52 .desktop-width { width: $desktop-width !important; }
53 .large-desktop-width { width: $large-desktop-width; } 53 .large-desktop-width { width: $large-desktop-width !important; }
54 54
55 /* Text alignment 55 /* Text alignment
56 ******************************************************************************/ 56 ******************************************************************************/
57 57
58 .text-center { text-align: center; } 58 .text-center { text-align: center !important; }
59 .text-left { text-align: left; } 59 .text-left { text-align: left !important; }
60 .text-right { text-align: right; } 60 .text-right { text-align: right !important; }
61 .text-start { text-align: left; } 61 .text-start { text-align: left !important; }
62 [dir="rtl"] .text-start { text-align: right; } 62 [dir="rtl"] .text-start { text-align: right !important; }
63 .text-end { text-align: right; } 63 .text-end { text-align: right !important; }
64 [dir="rtl"] .text-end { text-align: left; } 64 [dir="rtl"] .text-end { text-align: left !important; }
65 65
66 /* Floats 66 /* Floats
67 ******************************************************************************/ 67 ******************************************************************************/
68 68
69 .float-start { float: left; } 69 .float-start { float: left !important; }
70 [dir="rtl"] .float-start { float: right; } 70 [dir="rtl"] .float-start { float: right !important; }
71 .float-end { float: right; } 71 .float-end { float: right !important; }
72 [dir="rtl"] .float-end { float: left; } 72 [dir="rtl"] .float-end { float: left !important; }
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; 80 display: table !important;
81 content: " "; 81 content: " " !important;
82 } 82 }
83 83
84 .clearfix:after 84 .clearfix:after
85 { 85 {
86 clear: both; 86 clear: both !important;
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; 94 position: absolute !important;
95 overflow: hidden; 95 overflow: hidden !important;
96 clip: rect(0, 0, 0, 0); 96 clip: rect(0, 0, 0, 0) !important;
97 width: 1px; 97 width: 1px !important;
98 height: 1px; 98 height: 1px !important;
99 margin: -1px; 99 margin: -1px !important;
100 padding: 0; 100 padding: 0 !important;
101 border: 0; 101 border: 0 !important;
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 109 .content .unstyled
110 { 110 {
111 margin: 0; 111 margin: 0 !important;
112 padding: 0; 112 padding: 0 !important;
113 border: 0; 113 border: 0 !important;
114 background: none; 114 background: none !important;
115 } 115 }
116 116
117 ul.unstyled 117 ul.unstyled
118 { 118 {
119 list-style: none; 119 list-style: none !important;
120 } 120 }
121 121
122 /* Backgrounds 122 /* Backgrounds
123 ******************************************************************************/ 123 ******************************************************************************/
124 124
125 .bg-primary 125 .bg-primary
126 { 126 {
127 color: $primary-light; 127 color: $primary-light !important;
128 background-color: $primary-dark; 128 background-color: $primary-dark !important;
129 } 129 }
130 130
131 .bg-secondary 131 .bg-secondary
132 { 132 {
133 color: $secondary-light; 133 color: $secondary-light !important;
134 background-color: $secondary-dark; 134 background-color: $secondary-dark !important;
135 } 135 }
136 136
137 .bg-accent 137 .bg-accent
138 { 138 {
139 color: $accent-light; 139 color: $accent-light !important;
140 background-color: $accent-dark; 140 background-color: $accent-dark !important;
141 } 141 }
142 142
143 .bg-error 143 .bg-error
144 { 144 {
145 color: $error-light; 145 color: $error-light !important;
146 background-color: $error-dark; 146 background-color: $error-dark !important;
147 } 147 }
148 148
149 /* Lead 149 /* Lead
150 ******************************************************************************/ 150 ******************************************************************************/
151 151
152 .lead 152 .lead
153 { 153 {
154 font-size: 1.25em; 154 font-size: 1.25em !important;
155 } 155 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld