OLD | NEW |
---|---|
1 /* Copyright 2013 The Chromium Authors. All rights reserved. | 1 /* Copyright 2013 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 { | |
6 background: #fafafa !important; | |
Evan Stade
2014/04/16 22:10:57
if you don't want to respect the theme bg color, y
edwardjung
2014/04/17 13:07:07
Done.
| |
7 } | |
8 | |
5 body { | 9 body { |
6 margin: 10px 8px; | 10 font-family: Arial, sans-serif; |
Evan Stade
2014/04/16 22:10:57
still need to remove this
edwardjung
2014/04/17 13:07:07
Done.
| |
11 line-height: 1.5; | |
12 } | |
13 | |
14 h1 { | |
15 color: #000; | |
Evan Stade
2014/04/16 22:10:57
prefer 'black'
but also, I don't think you need t
edwardjung
2014/04/17 13:07:07
Done.
| |
16 font-size: 1.7em !important; | |
Evan Stade
2014/04/16 22:10:57
you don't need this !important. font-size: em alre
edwardjung
2014/04/17 13:07:07
Done.
| |
17 font-weight: normal; | |
18 line-height: 1.2em; | |
19 margin: 0 0 .6em; | |
Evan Stade
2014/04/16 22:10:57
If you made this just margin-top: 0, the only diff
edwardjung
2014/04/17 13:07:07
Now that we're back to the system fonts it's a tin
| |
20 } | |
21 | |
22 a { | |
23 color: rgb(39, 110, 242); | |
24 text-decoration: none; | |
25 } | |
26 | |
27 a:hover { | |
28 text-decoration: underline; | |
29 } | |
30 | |
31 p { | |
32 margin: 0 0 1em; | |
Evan Stade
2014/04/16 22:10:57
you don't need this, it doesn't do anything (defau
edwardjung
2014/04/17 13:07:07
Done.
| |
7 } | 33 } |
8 | 34 |
9 .icon { | 35 .icon { |
10 -webkit-margin-end: 3px; | 36 content: -webkit-image-set( |
11 -webkit-margin-start: 6px; | 37 url('../../../browser/resources/ntp4/images/incognito_illustration_sml.png ') 1x, |
38 url('../../../browser/resources/ntp4/images/2x/incognito_illustration_sml. png') 2x); | |
39 height: 128px; | |
40 width: 128px; | |
12 } | 41 } |
13 | 42 |
14 html[dir='ltr'] .icon { | 43 html[dir='ltr'] .icon { |
15 -webkit-transform: scaleX(-1); | |
16 float: right; | 44 float: right; |
45 margin: 4px 0 10px 25px; | |
17 } | 46 } |
18 | 47 |
19 html[dir='rtl'] .icon { | 48 html[dir='rtl'] .icon { |
20 float: left; | 49 float: left; |
50 margin: 4px 35px 10px 0; | |
Evan Stade
2014/04/16 22:10:57
why is this not the inverse of the ltr case?
also
edwardjung
2014/04/17 13:07:07
My oversight. Thanks for the -webkit-margin tip.
| |
21 } | 51 } |
22 | 52 |
23 .content { | 53 .content { |
24 background-color: #eee; | 54 background-color: #fff; |
Evan Stade
2014/04/16 22:10:57
prefer 'white'
edwardjung
2014/04/17 13:07:07
Done.
| |
25 border-radius: 5px; | 55 border-radius: 2px; |
56 box-shadow: 0 4px 6px 1px rgba(50, 50, 50, 0.14); | |
57 box-sizing: border-box; | |
26 color: black; | 58 color: black; |
27 margin-left: auto; | 59 line-height: 1.5; |
28 margin-right: auto; | 60 margin: 5.5em auto 0; |
Evan Stade
2014/04/16 22:10:57
this can just be margin-top: 5.5em;
edwardjung
2014/04/17 13:07:07
Without the auto left and right margins, the conte
Evan Stade
2014/04/17 16:25:07
either way is fine. I guess I prefer individual be
edwardjung
2014/04/22 14:24:35
Good to know. Thanks
| |
29 margin-top: 66px; | 61 max-width: 640px; |
30 max-width: 600px; | 62 padding: 30px 35px 30px 37px; |
31 padding: 10px; | 63 width: 100%; |
32 } | 64 } |
33 | 65 |
34 .extensions-message { | 66 .content > span { |
35 -webkit-padding-start: 39px; | 67 display: block; |
36 margin-top: 15px; | 68 max-width: 416px; |
37 position: relative; | |
38 } | 69 } |
39 | 70 |
40 .extension-icon { | 71 .content p:last-child { |
41 content: -webkit-image-set( | 72 margin-bottom: 4px; |
42 url('../../../app/theme/default_100_percent/extensions_section.png') 1x, | |
43 url('../../../app/theme/default_200_percent/extensions_section.png') 2x); | |
44 display: inline-block; | |
45 left: 0; | |
46 margin-top: -15px; | |
47 position: absolute; | |
48 right: 0; | |
49 top: 50%; | |
50 width: 30px; | |
51 } | 73 } |
74 | |
75 @media (max-width:700px) { | |
76 body { | |
77 margin: 3em 2em 2em; | |
78 } | |
79 } | |
80 | |
81 @media (max-width:400px) { | |
82 body { | |
83 margin: 3em 1.5em 2em; | |
84 } | |
85 | |
86 .icon { | |
87 height: 96px; | |
88 width: 96px; | |
89 } | |
90 | |
91 html[dir='ltr'] .icon { | |
92 margin: 4px 0 10px 15px; | |
93 } | |
94 | |
95 html[dir='rtl'] .icon { | |
96 margin: 4px 15px 10px 0; | |
97 } | |
98 } | |
99 | |
100 @media (max-height:480px) and (max-width:400px) { | |
101 .content { | |
102 margin: auto; | |
103 } | |
104 } | |
OLD | NEW |