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

Delta Between Two Patch Sets: skin/updates.css

Issue 29592569: Issue 5943 - Implement Updates Page for Adblock Plus extension (Closed) Base URL: https://hg.adblockplus.org/adblockplusui/
Left Patch Set: Addressed initial round of feedback Created Nov. 3, 2017, 10:01 a.m.
Right Patch Set: Addressed seventh round of feedback Created Jan. 12, 2018, 11:35 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « locale/en_US/updates.json ('k') | skin/updates/appstore-bg.svg » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 @font-face
2 {
3 font-family: "Source Sans Pro";
Thomas Greiner 2017/11/03 17:40:01 Coding style: "Indentation: Two spaces per logic l
martin 2017/11/06 16:05:45 Done.
4 font-style: normal;
5 font-weight: 400;
6 font-stretch: normal;
7 src: local ("Ø"),
8 url(fonts/SourceSansPro-Regular.woff) format("woff");
9 }
10
11 @font-face 1 @font-face
12 { 2 {
13 font-family: "Source Sans Pro"; 3 font-family: "Source Sans Pro";
14 font-style: bold; 4 font-style: normal;
15 font-weight: 600; 5 font-weight: 400;
16 font-stretch: normal; 6 font-stretch: normal;
17 src: local ("Ø"), 7 src: local ("Ø"),
18 url(fonts/SourceSansPro-bold.woff) format("woff"); 8 url(fonts/SourceSansPro-Regular.woff) format("woff");
9 }
10
11 @font-face
12 {
13 font-family: "Source Sans Pro";
14 font-style: bold;
15 font-weight: 600;
16 font-stretch: normal;
17 src: local ("Ø"),
18 url(fonts/SourceSansPro-bold.woff) format("woff");
19 } 19 }
20 20
21 html 21 html
22 { 22 {
23 font-family: "Source Sans Pro", Helvetica, Arial, sans-serif; 23 font-family: "Source Sans Pro", Helvetica, Arial, sans-serif;
24 -webkit-font-smoothing: antialiased;
24 } 25 }
25 26
26 body 27 body
27 { 28 {
28 margin: 0; 29 margin: 0;
29 padding: 0; 30 padding: 0;
30 } 31 }
31 32
32 #container 33 #container
33 { 34 {
34 display: flex; 35 display: flex;
35 flex-direction: row; 36 flex-direction: row;
36 align-items: stretch; 37 align-items: stretch;
37 }
38
39 @media(max-width: 960px)
Thomas Greiner 2017/11/03 17:40:00 I'd be curious to hear what Julian's opinion is on
martin 2017/11/06 16:05:43 Moved the query to the bottom of the file.
40 {
41 #container
42 {
43 flex-direction: column;
44 }
45 } 38 }
46 39
47 .column 40 .column
48 { 41 {
49 height: 100vh; 42 height: 100vh;
50 display: flex; 43 display: flex;
51 align-items: center; 44 align-items: center;
52 justify-content: center; 45 justify-content: center;
53 flex: 1; 46 flex: 1;
54 } 47 }
55 48
56 #graphic-column 49 #graphic-column,
57 { 50 .graphic-column
58 background: #8DC446; 51 {
Thomas Greiner 2017/11/03 17:40:00 Detail: I'd recommend avoiding shorthand propertie
martin 2017/11/06 16:05:45 Done.
59 52 background-color: #8DC446;
60 }
61
62 .graphic-column
63 {
64 background: #8DC446;
65 } 53 }
66 54
67 #content 55 #content
68 { 56 {
69 padding: 0 3em; 57 padding: 0 3em;
70 max-width: 760px; 58 max-width: 760px;
71 } 59 }
72 60
73 #content a { 61 #content a
74 color: #C70D2C; 62 {
75 text-decoration: none; 63 color: #C70D2C;
76 } 64 text-decoration: none;
77 65 }
78 #content a:hover { 66
79 text-decoration: underline; 67 #optionsPageLink
68 {
69 color: red;
70 }
71
72 /* Needed in order to achieve standard behavior
73 for links, due to lacking href attribute */
74 #content a:hover
75 {
76 text-decoration: underline;
77 cursor: pointer;
80 } 78 }
81 79
82 #content header 80 #content header
83 { 81 {
84 margin: 0 0 2em 5em; 82 margin: 0 0 2em 5em;
Thomas Greiner 2017/11/03 17:40:00 Detail: This may produce unexpected results for ri
martin 2017/11/06 16:05:45 Done.
83 }
84
85 html[dir="rtl"] #content header
86 {
87 margin: 0 5em 2em 0;
85 } 88 }
86 89
87 #content header p { 90 #content header p {
88 margin: 0; 91 margin: 0;
89 opacity: .5; 92 opacity: 0.5;
Thomas Greiner 2017/11/03 17:40:01 Coding style: "Don't omit the optional leading 0 f
martin 2017/11/06 16:05:44 Done.
martin 2017/11/06 16:05:45 Done.
90 font-weight: normal; 93 font-weight: 400;
Thomas Greiner 2017/11/03 17:40:00 Detail: For consistency, we use numeric values for
martin 2017/11/06 16:05:44 Done.
91 font-size: 1.2em; 94 font-size: 1.2em;
92 } 95 }
93 96
94 #content header h1 97 #content header h1
95 { 98 {
96 margin: 0; 99 margin: 0;
97 } 100 }
98 101
99 .custom-feature-entry 102 .custom-feature-entry
100 { 103 {
101 margin-top: 2em; 104 margin-top: 2em;
102 } 105 }
103 106
104 .custom-feature-entry h2 { 107 .custom-feature-entry h2
105 margin: 0 0 0 3.4em; 108 {
106 } 109 margin: 0 0 0 3.4em;
107 110 }
108 .update-graphic-container 111
109 { 112 html[dir="rtl"] .custom-feature-entry h2
110 width: 560px; 113 {
111 height: 460px; 114 margin: 0 3.4em 0 0;
112 background: url('/skin/updates-page/base-graphic.svg'); 115 }
Thomas Greiner 2017/11/03 17:40:00 Detail: Note that we've been using relative paths
Thomas Greiner 2017/11/03 17:40:00 Suggestion: Mind using the same name for the direc
Thomas Greiner 2017/11/03 17:40:01 Coding style: "Do not use quotation marks in URI v
martin 2017/11/06 16:05:43 Done.
martin 2017/11/06 16:05:44 Done.
martin 2017/11/06 16:05:44 Done.
113 position: relative; 116
114 display: flex; 117 .update-graphic-container
115 align-items: center; 118 {
116 background-repeat: no-repeat; 119 display: flex;
117 background-size: cover; 120 align-items: center;
121 position: relative;
122 width: 560px;
123 height: 460px;
124 background-image: url(./updates/base-graphic.svg);
125 background-repeat: no-repeat;
126 background-size: cover;
118 } 127 }
119 128
120 .update-graphic-container img 129 .update-graphic-container img
121 { 130 {
122 display: block; 131 display: block;
123 width: 162px; 132 width: 162px;
124 height: 162px; 133 height: 162px;
125 } 134 }
126 135
127 .update-graphic-content 136 .update-graphic-content
128 { 137 {
129 position: absolute; 138 display: flex;
130 top: 65px; 139 align-items: center;
131 left: 100px; 140 position: absolute;
Thomas Greiner 2017/11/03 17:40:00 Detail: This may produce unexpected results for ri
martin 2017/11/06 16:05:45 Done.
Thomas Greiner 2017/11/14 12:25:38 How did you address this?
martin 2017/11/20 11:47:28 I checked it out and I guess it looks all right in
Thomas Greiner 2017/11/20 17:06:03 I looked at the page now and see that this is not
132 display: flex; 141 top: 65px;
133 align-items: center; 142 left: 100px;
134 } 143 }
135 144
136 .version-details 145 .version-details
137 { 146 {
138 margin: 0 0 0 1em; 147 margin: 0 1em 0 1em;
139 } 148 }
140 149
141 .version-details h2 150 .version-details h2
142 { 151 {
143 margin: 0; 152 margin: 0;
144 }
145
146 .version-details span
147 {
148 color: #bebebe;
149 } 153 }
150 154
151 .feature-entry 155 .feature-entry
152 { 156 {
153 display: flex; 157 display: flex;
154 align-items: center; 158 align-items: center;
155 padding: 0 1em; 159 padding: 0 1em;
156 } 160 }
157 161
158 .feature-entry img 162 .feature-entry img
159 { 163 {
160 width: 50px; 164 width: 50px;
161 height: 50px; 165 height: 50px;
162 display: block; 166 display: block;
163 margin: 0 1em 0 0; 167 margin: 0 1em 0 0;
Thomas Greiner 2017/11/03 17:40:00 Detail: This may produce unexpected results for ri
martin 2017/11/20 11:47:28 Done.
168 }
169
170 html[dir="rtl"] .feature-entry img
171 {
172 margin: 0 0 0 1em;
173 }
174
175 #block-ads-text > strong
176 {
177 text-decoration: line-through;
178 font-weight: normal;
164 } 179 }
165 180
166 .store-buttons 181 .store-buttons
167 { 182 {
168 width: 100%; 183 height: 58px;
169 hegiht: 58px; 184 margin: 0 0 0 5em;
Thomas Greiner 2017/11/03 17:40:01 Typo: Replace "hegiht" with "height"
martin 2017/11/06 16:05:43 Done.
170 margin-left: 5em; 185 }
Thomas Greiner 2017/11/03 17:40:00 Detail: This may produce unexpected results for ri
martin 2017/11/06 16:05:44 Done.
186
187 html[dir="rtl"] .store-buttons
188 {
189 margin: 0 5em 0 0;
171 } 190 }
172 191
173 .store-button 192 .store-button
174 { 193 {
175 display: block; 194 display: block;
176 width: 180px; 195 height: 58px;
177 height: 58px; 196 border-radius: 6px;
178 border-radius: 6px; 197 background-color: #000;
179 background: #000; 198 float: left;
180 float: left; 199 margin-bottom: 1em;
Thomas Greiner 2017/11/03 17:40:01 Detail: This may produce unexpected results for ri
martin 2017/11/06 16:05:45 Done.
181 margin-bottom: 1em; 200 }
182 } 201
183 202 html[dir="rtl"] .store-button
184 .store-button > img 203 {
185 { 204 float: right;
186 height: 54px; 205 }
206
207 .store-button > img
208 {
209 height: 100%;
187 } 210 }
188 211
189 .applestore-button 212 .applestore-button
190 { 213 {
191 margin-right: 1em; 214 margin-right: 1em;
192 } 215 }
193 216
194 [dir="rtl"] .appstore-button 217 html[dir="rtl"] .applestore-button
195 { 218 {
196 margin-right: 0; 219 margin-right: 0;
197 margin-left: 1em; 220 margin-left: 1em;
198 } 221 }
222
223 @media(max-width: 960px)
224 {
225 #container
226 {
227 flex-direction: column;
228 }
229 }
230
231 @media(max-width: 480px)
232 {
233 #content header
234 {
235 margin: 2em 0 2em 5em;
236 }
237
238 .column
239 {
240 align-items: flex-start;
241 }
242
243 html[dir="rtl"] .applestore-button
244 {
245 margin: 0 0 1em 0;
246 }
247 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld