Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* Copyright 2014 The Chromium Authors. All rights reserved. | 1 /* Copyright 2014 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 * Incognito and guest mode NTP shared CSS. | 5 * Incognito and guest mode NTP shared CSS. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 h1 { | 8 h1 { |
| 9 font-size: 200%; | 9 font-size: 200%; |
| 10 font-weight: normal; | 10 font-weight: 300; |
| 11 margin-bottom: 1.33em; | 11 margin-bottom: 1.33333em; |
| 12 } | 12 } |
| 13 | 13 |
| 14 p { | 14 p { |
| 15 line-height: 1.7; | 15 line-height: 1.5; |
| 16 margin-bottom: 2em; | 16 margin-bottom: 2em; |
| 17 text-align: start; | 17 text-align: start; |
| 18 } | 18 } |
| 19 | 19 |
| 20 a { | 20 a { |
| 21 font-size: 108.3%; | 21 font-size: 108.3%; |
| 22 text-decoration: none; | 22 text-decoration: none; |
| 23 text-transform: uppercase; | 23 text-transform: uppercase; |
| 24 } | 24 } |
| 25 | 25 |
| 26 a:hover { | 26 a:hover { |
| 27 text-decoration: underline; | 27 text-decoration: underline; |
| 28 } | 28 } |
| 29 | 29 |
| 30 .content { | 30 .content { |
| 31 box-sizing: border-box; | 31 box-sizing: border-box; |
| 32 margin: 3.5em auto 0; | 32 margin: 3.5em auto 0; |
| 33 max-width: 420px; | |
| 34 min-width: 300px; | |
|
Evan Stade
2015/12/15 19:25:14
I still don't think this needs to change. The curr
edwardjung
2015/12/17 13:32:57
I disagree, since most horizontal scrolling on web
| |
| 33 padding: 30px 35px; | 35 padding: 30px 35px; |
| 34 text-align: center; | 36 text-align: center; |
| 35 width: 420px; | |
| 36 } | 37 } |
| 37 | 38 |
| 38 html[hascustombackground='true'] .content { | 39 html[hascustombackground='true'] .content { |
| 39 border-radius: 2px; | 40 border-radius: 2px; |
| 40 box-shadow: 0 4px 6px 1px rgba(0, 0, 0, 0.4); | 41 box-shadow: 0 4px 6px 1px rgba(0, 0, 0, 0.4); |
| 41 } | 42 } |
| 42 | 43 |
| 43 .content > span { | 44 .content > span { |
| 44 display: block; | 45 display: block; |
| 45 } | 46 } |
| 46 | 47 |
| 47 @media (max-width:700px) { | 48 @media (max-width:700px) { |
| 48 body { | 49 body { |
| 49 margin: 1em 2em 2em; | 50 margin: 1em 2em 2em; |
| 50 } | 51 } |
| 51 } | 52 } |
| 52 | 53 |
| 53 @media (max-width:400px) { | 54 @media (max-width:400px) { |
| 54 body { | 55 body { |
| 55 margin: 3em 1.5em 2em; | 56 margin: 3em 1.5em 2em; |
| 56 } | 57 } |
| 58 | |
| 59 .content { | |
| 60 padding: 30px 12px; | |
| 61 } | |
| 57 } | 62 } |
| 58 | 63 |
| 59 @media (max-height:480px) and (max-width:400px) { | 64 @media (max-height:480px) and (max-width:400px) { |
| 60 .content { | 65 .content { |
| 61 margin: auto; | 66 margin: auto; |
| 62 } | 67 } |
| 63 } | 68 } |
| OLD | NEW |