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 /* Set the global 'box-sizing' state to 'border-box'. | 5 /* Set the global 'box-sizing' state to 'border-box'. |
6 * *::after and *::before used to select pseudo-elements not selectable by *. */ | 6 * *::after and *::before used to select pseudo-elements not selectable by *. */ |
7 | 7 |
8 *, | 8 *, |
9 *::after, | 9 *::after, |
10 *::before { | 10 *::before { |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
61 | 61 |
62 /* Remove most spacing between table cells. */ | 62 /* Remove most spacing between table cells. */ |
63 | 63 |
64 table { | 64 table { |
65 border-collapse: collapse; | 65 border-collapse: collapse; |
66 border-spacing: 0; | 66 border-spacing: 0; |
67 } | 67 } |
68 | 68 |
69 td, | 69 td, |
70 th { | 70 th { |
71 padding: 0; | 71 padding: 0.1rem; |
72 } | 72 } |
73 | 73 |
74 /* Base typography. */ | 74 /* Base typography. */ |
75 | 75 |
76 html { | 76 html { |
77 font-size: 14px; | 77 font-size: 14px; |
78 height: 100%; | 78 height: 100%; |
79 } | 79 } |
80 | 80 |
81 body { | 81 body { |
82 height: 100%; | 82 height: 100%; |
83 line-height: 1.4; | 83 line-height: 1.4; |
84 margin: 0px auto; | 84 margin: 0px auto; |
85 text-rendering: optimizeLegibility; | 85 text-rendering: optimizeLegibility; |
86 transition-property: color, background-color; | 86 transition-property: color, background-color; |
87 transition-duration: 0.5s; | 87 transition-duration: 0.5s; |
88 transition-timing-function: ease; | 88 transition-timing-function: ease; |
89 overflow-x: hidden; | 89 overflow-x: hidden; |
90 -webkit-overflow-scrolling: touch; | 90 -webkit-overflow-scrolling: touch; |
91 } | 91 } |
92 | 92 |
93 /* Classes for light, dark and sepia themes. | 93 /* Classes for light, dark and sepia themes. |
94 * Must agree with classes returned by useTheme() in dom_distiller_viewer.js | 94 * Must agree with classes returned by useTheme() in dom_distiller_viewer.js |
95 * and with CSS class constants in viewer.cc */ | 95 * and with CSS class constants in viewer.cc */ |
96 | 96 |
97 .light { | 97 .light { |
cjhopman
2015/06/19 23:21:18
These themes don't seem to be in line with the rec
wychen
2015/06/23 18:41:29
Updated, but not exactly the same as the recommend
| |
98 color: #333; | 98 color: #424242; |
99 background-color: #FFF; | 99 background-color: #FFF; |
100 } | 100 } |
101 | 101 |
102 .dark { | 102 .dark { |
103 color: #DDD; | 103 color: #E0E0E0; |
104 background-color: #000; | 104 background-color: #000; |
105 } | 105 } |
106 | 106 |
107 .sepia { | 107 .sepia { |
108 color: #000; | 108 color: #000; |
109 background-color: rgb(203, 173, 141); | 109 background-color: rgb(203, 173, 141); |
110 } | 110 } |
111 | 111 |
112 .serif { | 112 .serif { |
113 font-family: serif; | 113 font-family: serif; |
114 } | 114 } |
115 | 115 |
116 .sans-serif { | 116 .sans-serif { |
117 font-family: 'Open Sans', sans-serif; | 117 font-family: 'Roboto', sans-serif; |
118 } | 118 } |
119 | 119 |
120 .monospace { | 120 .monospace { |
121 font-family: monospace; | 121 font-family: monospace; |
122 } | 122 } |
123 | 123 |
124 /* Define vertical rhythm (baseline grid of 4px). */ | 124 /* Define vertical rhythm (baseline grid of 4px). */ |
125 | 125 |
126 blockquote, | 126 blockquote, |
127 caption, | 127 caption, |
128 code, | 128 code, |
129 dd, | 129 dd, |
130 dl, | 130 dl, |
131 fieldset, | 131 fieldset, |
132 figure, | 132 figure, |
133 form, | 133 form, |
134 hr, | 134 hr, |
135 legend, | 135 legend, |
136 ol, | 136 ol, |
137 p, | 137 p, |
138 pre, | 138 pre, |
139 q, | 139 q, |
140 table, | 140 table, |
141 td, | 141 td, |
142 th, | 142 th, |
143 ul { | 143 ul { |
144 margin-bottom: 1rem; | 144 margin-bottom: 1.143rem; |
145 } | 145 } |
146 | 146 |
147 h1, | |
147 h2, | 148 h2, |
148 h3, | 149 h3, |
149 h4, | 150 h4, |
150 h5, | 151 h5, |
151 h6 { | 152 h6 { |
152 line-height: 1.296; | 153 line-height: 1.296; |
153 margin-bottom: 0.444rem; | 154 margin: 1em 0; |
154 } | 155 } |
155 | 156 |
156 /* Content. */ | 157 /* Content. */ |
157 | 158 |
158 /* Margins for Show Original link. */ | 159 /* Margins for Show Original link. */ |
159 | 160 |
160 #closeReaderView { | 161 #closeReaderView { |
161 background-color: #FFFFFF; | 162 background-color: #FFFFFF; |
162 border-top: 1px solid #E0E0E0; | 163 border-top: 1px solid #E0E0E0; |
163 color: #4285F4; | 164 color: #4285F4; |
164 flex: 0 0 auto; | 165 flex: 0 0 auto; |
165 font-family: 'Roboto-Medium', 'Open Sans', sans-serif; | 166 font-family: 'Roboto', sans-serif; |
166 font-weight: 700; | 167 font-weight: 700; |
167 line-height: 14px; | 168 line-height: 14px; |
168 margin-top: 24px; | |
169 padding: 24px 16px; | 169 padding: 24px 16px; |
170 font-size: 14px; | 170 font-size: 14px; |
171 text-align: right; | 171 text-align: right; |
172 text-decoration: none; | 172 text-decoration: none; |
173 text-transform: uppercase; | 173 text-transform: uppercase; |
174 width: 100%; | 174 width: 100%; |
175 } | 175 } |
176 | 176 |
177 #content { | 177 #content { |
178 margin: 0.2rem 2.2%; | 178 margin: 24px 16px 24px 16px; |
179 } | 179 } |
180 | 180 |
181 #mainContent { | 181 #mainContent { |
182 flex: 1 1 auto; | 182 flex: 1 1 auto; |
183 margin: 0px auto; | 183 margin: 0px auto; |
184 max-width: 800px; | 184 max-width: 45em; |
185 width: 100%; | 185 width: 100%; |
186 } | 186 } |
187 | 187 |
188 #articleHeader { | 188 #articleHeader { |
189 background-color: rgb(73, 73, 73); | 189 margin-top: 24px; |
190 color: white; | |
191 min-height: 90px; | |
192 width: 100%; | 190 width: 100%; |
193 } | 191 } |
194 | 192 |
195 #titleCollapse { | 193 #titleHolder { |
196 display: block; | 194 font-size: 1.714rem; |
197 overflow: hidden; | 195 line-height: 1.333; |
196 margin: 0 16px; | |
198 } | 197 } |
199 | 198 |
200 #titleCollapse .verticalCenterOuter { | |
201 min-height: 90px; | |
202 } | |
203 | |
204 #titleHolder { | |
205 padding: 10px 30px; | |
206 } | |
207 | |
208 .verticalCenterOuter { | |
209 display: table; | |
210 height: 100%; | |
211 } | |
212 | |
213 .verticalCenterInner { | |
214 display: table-cell; | |
215 vertical-align: middle; | |
216 } | |
217 | |
218 | |
219 /* Link colors for light, dark and sepia themes */ | 199 /* Link colors for light, dark and sepia themes */ |
220 | 200 |
221 .light a:link, | 201 .light a:link, |
222 .sepia a:link { | 202 .sepia a:link { |
223 color: #55F; | 203 color: #55F; |
224 } | 204 } |
225 | 205 |
226 .dark a:link { | 206 .dark a:link { |
227 color: #88F; | 207 color: #88F; |
228 } | 208 } |
229 | 209 |
230 .light a:visited, | 210 .light a:visited, |
231 .sepia a:visited { | 211 .sepia a:visited { |
232 color: #902290; | 212 color: #902290; |
233 } | 213 } |
234 | 214 |
235 .dark a:visited { | 215 .dark a:visited { |
236 color: #D872D8; | 216 color: #D872D8; |
237 } | 217 } |
238 | 218 |
239 blockquote { | 219 blockquote { |
240 border-left: 4px solid #eee; | 220 border-left: 4px solid #888; |
241 padding-left: 1em; | 221 padding-left: 1em; |
242 } | 222 } |
243 | 223 |
244 cite { | 224 cite { |
245 opacity: .54; | 225 opacity: .8; |
246 font-style: italic; | 226 font-style: italic; |
247 } | 227 } |
248 | 228 |
249 hr { | 229 hr { |
250 opacity: .5; | 230 opacity: .5; |
251 border-style: solid; | 231 border-style: solid; |
252 height: 1px 0 0 0; | 232 height: 1px 0 0 0; |
253 width: 75%; | 233 width: 75%; |
254 } | 234 } |
255 | 235 |
256 h1 { | |
257 font-size: 1.7rem; | |
258 line-height: 1.296; | |
259 margin-bottom: 0.444rem; | |
260 } | |
261 | 236 |
262 q { | 237 q { |
263 opacity: .8; | 238 opacity: .8; |
264 display:block; | 239 display:block; |
265 font-style: italic; | 240 font-style: italic; |
266 font-weight: 600; | 241 font-weight: 600; |
267 line-height: 1.444; | 242 line-height: 1.444; |
268 } | 243 } |
269 | 244 |
270 embed, | 245 embed, |
271 img, | 246 img, |
272 object, | 247 object, |
273 video { | 248 video { |
274 max-width: 100%; | 249 max-width: 100%; |
275 } | 250 } |
276 | 251 |
277 /* TODO(sunangel): make images zoomable. */ | 252 /* TODO(sunangel): make images zoomable. */ |
278 | 253 |
279 img { | 254 img { |
280 display: block; | 255 display: block; |
281 height: auto; | 256 height: auto; |
282 margin: 0 auto 0.6rem auto; | 257 margin: 0.6rem auto 0.6rem auto; |
283 } | 258 } |
284 | 259 |
285 /* TODO(nyquist): set these classes directly in the dom distiller. */ | 260 /* TODO(nyquist): set these classes directly in the dom distiller. */ |
286 | 261 |
287 embed+[class*='caption'], | 262 embed+[class*='caption'], |
288 figcaption, | 263 figcaption, |
289 img+[class*='caption'], | 264 img+[class*='caption'], |
290 object+[class*='caption'], | 265 object+[class*='caption'], |
291 video+[class*='caption'] { | 266 video+[class*='caption'] { |
292 opacity: .54; | 267 opacity: .8; |
293 display: table; | 268 display: table; |
294 font-style: italic; | 269 margin-bottom: 1rem; |
295 margin: 0 auto; | 270 font-size: 0.857rem; |
271 line-height: 1.667; | |
296 } | 272 } |
297 | 273 |
298 ol, | 274 ol, |
299 ul { | 275 ul { |
300 margin-left: 1.296rem; | 276 margin-left: 1.296rem; |
301 } | 277 } |
302 | 278 |
303 .light code, | 279 .light code, |
cjhopman
2015/06/19 23:21:18
Should the colorscheme stuff be all together?
wychen
2015/06/23 18:41:29
Done.
| |
304 .light pre, | 280 .light pre { |
281 background-color: #EEE; | |
282 border-color: #AAA; | |
283 } | |
284 | |
305 .sepia code, | 285 .sepia code, |
306 .sepia pre { | 286 .sepia pre { |
307 background-color: #f8f8f8; | 287 background-color: rgb(217, 196, 175); |
308 border: 1px solid #eee; | 288 border-color: #AAA; |
309 border-radius: 2px; | |
310 } | 289 } |
311 | 290 |
312 .dark code, | 291 .dark code, |
313 .dark pre { | 292 .dark pre { |
314 background-color: #333; | 293 background-color: #333; |
315 border: 1px solid #555; | 294 border-color: #555; |
295 } | |
296 | |
297 code, pre { | |
298 border: 1px solid; | |
316 border-radius: 2px; | 299 border-radius: 2px; |
317 } | 300 } |
318 | 301 |
319 pre code { | 302 pre code { |
320 border: none; | 303 border: none; |
321 padding: 0; | |
322 } | 304 } |
323 | 305 |
324 pre { | 306 pre { |
325 line-height: 1.296; | 307 line-height: 1.296; |
326 overflow-x: scroll; | |
327 padding: .5em; | 308 padding: .5em; |
309 white-space: pre-wrap; | |
328 } | 310 } |
329 | 311 |
330 .hidden { | 312 .hidden { |
331 display: none; | 313 display: none; |
332 } | 314 } |
333 | 315 |
334 /* Footer feedback form. */ | 316 /* Footer feedback form. */ |
335 #contentWrap { | 317 #contentWrap { |
336 display: flex; | 318 display: flex; |
337 flex-flow: column; | 319 flex-flow: column; |
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
828 border-color: rgb(250,36,36); | 810 border-color: rgb(250,36,36); |
829 } | 811 } |
830 | 812 |
831 #loader.red .circle.red .mask.first .mover { | 813 #loader.red .circle.red .mask.first .mover { |
832 background-color: rgb(33,89,189); | 814 background-color: rgb(33,89,189); |
833 } | 815 } |
834 | 816 |
835 #loader.red .circle.red .mask.second .mover { | 817 #loader.red .circle.red .mask.second .mover { |
836 background-color: rgb(250,36,36); | 818 background-color: rgb(250,36,36); |
837 } | 819 } |
OLD | NEW |