Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(405)

Side by Side Diff: chrome/browser/resources/ntp4/md_incognito_tab.css

Issue 2873573003: Small CSS improvements on the new Incognito NTP (Closed)
Patch Set: Use a name for the named color. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
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 /* Copyright 2017 The Chromium Authors. All rights reserved. 1 /* Copyright 2017 The Chromium Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be 2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file. */ 3 * found in the LICENSE file. */
4 4
5 html.md { 5 html.md {
6 background-color: #303030; 6 background-color: #303030;
7 } 7 }
8 8
9 body { 9 body {
10 -webkit-font-smoothing: antialiased; 10 -webkit-font-smoothing: antialiased;
11 font-size: 100%; 11 font-size: 100%;
12 margin: 0; 12 margin: 0;
13 } 13 }
14 14
15 /** Typography -------------------------------------------------------------- */ 15 /** Typography -------------------------------------------------------------- */
16 16
17 .content { 17 .content {
18 background-color: #303030; 18 background-color: #303030;
19 color: rgb(179, 179, 179); 19 color: rgba(255, 255, 255, 0.7);
20 font-size: calc(100% - 2px); 20 font-size: calc(100% - 2px);
21 line-height: calc(100% + 6px); 21 line-height: calc(100% + 6px);
22 min-width: 240px; 22 min-width: 240px;
23 } 23 }
24 24
25 h1 { 25 h1 {
26 color: rgb(204, 204, 204); 26 color: rgba(255, 255, 255, 0.8);
27 font-size: calc(100% + 8px); 27 font-size: calc(100% + 8px);
28 font-weight: 400; 28 font-weight: 400;
29 line-height: calc(100% + 8px); 29 line-height: calc(100% + 8px);
30 } 30 }
31 31
32 em { 32 em {
33 color: white; 33 color: white;
34 font-style: normal; 34 font-style: normal;
35 } 35 }
36 36
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 .bulletpoints { 173 .bulletpoints {
174 margin: 0; 174 margin: 0;
175 } 175 }
176 176
177 .bulletpoints + .bulletpoints { 177 .bulletpoints + .bulletpoints {
178 -webkit-margin-start: 40px; 178 -webkit-margin-start: 40px;
179 } 179 }
180 180
181 .bulletpoints + .bulletpoints.tooWide { 181 .bulletpoints + .bulletpoints.tooWide {
182 -webkit-margin-start: 0; 182 -webkit-margin-start: 0;
183 margin-top: 24px; 183 margin-top: 1.5rem;
184 } 184 }
185 185
186 /* Wide screens. */ 186 /* Wide screens. */
187 @media (min-width: 720px) { 187 @media (min-width: 720px) {
188 .icon, 188 .icon,
189 h1, 189 h1,
190 #subtitle, 190 #subtitle,
191 .learn-more-button { 191 .learn-more-button {
192 margin-bottom: 24px; 192 margin-bottom: 1.5rem;
193 margin-top: 24px; 193 margin-top: 1.5rem;
194 } 194 }
195 195
196 .content { 196 .content {
197 margin-top: 40px; 197 margin-top: 40px;
198 min-width: 240px; 198 min-width: 240px;
199 padding: 8px 48px 24px; 199 padding: 8px 48px 24px;
200 } 200 }
201 201
202 /* Snap the content box to the whole height on short screens. */ 202 /* Snap the content box to the whole height on short screens. */
203 @media (max-height: 480px) { 203 @media (max-height: 480px) {
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 @media (max-width: 720px) { 240 @media (max-width: 720px) {
241 .content { 241 .content {
242 padding: 72px 32px; 242 padding: 72px 32px;
243 min-width: 176px; 243 min-width: 176px;
244 } 244 }
245 245
246 .icon, 246 .icon,
247 h1, 247 h1,
248 #subtitle, 248 #subtitle,
249 .learn-more-button { 249 .learn-more-button {
250 margin-bottom: 24px; 250 margin-bottom: 1.5rem;
251 margin-top: 24px; 251 margin-top: 1.5rem;
252 } 252 }
253 253
254 /* The two columns of bulletpoints are moved under each other. */ 254 /* The two columns of bulletpoints are moved under each other. */
255 .bulletpoints + .bulletpoints { 255 .bulletpoints + .bulletpoints {
256 -webkit-margin-start: 0; 256 -webkit-margin-start: 0;
257 margin-top: 24px; 257 margin-top: 1.5rem;
258 } 258 }
259 259
260 /* Smaller offsets on smaller screens. */ 260 /* Smaller offsets on smaller screens. */
261 @media (max-height: 600px) { 261 @media (max-height: 600px) {
262 .content { 262 .content {
263 padding-top: 48px; 263 padding-top: 48px;
264 } 264 }
265 265
266 .icon, 266 .icon,
267 h1, 267 h1,
268 #subtitle, 268 #subtitle,
269 .learn-more-button { 269 .learn-more-button {
270 margin-bottom: 16px; 270 margin-bottom: 1rem;
271 margin-top: 16px; 271 margin-top: 1rem;
272 } 272 }
273 273
274 .bulletpoints + .bulletpoints { 274 .bulletpoints + .bulletpoints {
275 margin-top: 16px; 275 margin-top: 1rem;
276 } 276 }
277 } 277 }
278 278
279 /* Small top offset on very small screens. */ 279 /* Small top offset on very small screens. */
280 @media (max-height: 480px) { 280 @media (max-height: 480px) {
281 .content { 281 .content {
282 padding-top: 32px; 282 padding-top: 32px;
283 } 283 }
284 } 284 }
285 285
286 /* Undo the first and last elements margins. */ 286 /* Undo the first and last elements margins. */
287 .icon { 287 .icon {
288 margin-top: 0; 288 margin-top: 0;
289 } 289 }
290 290
291 .learn-more-button { 291 .learn-more-button {
292 margin-bottom: 0; 292 margin-bottom: 0;
293 } 293 }
294 } 294 }
295 295
296 /* Very narrow screens. */ 296 /* Very narrow screens. */
297 @media (max-width: 240px) { 297 @media (max-width: 240px) {
298 .content { 298 .content {
299 min-width: 192px; 299 min-width: 192px;
300 padding-left: 24px; 300 padding-left: 24px;
301 padding-right: 24px; 301 padding-right: 24px;
302 } 302 }
303 } 303 }
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 408576698