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 /* This file is dynamically processed by a C++ data source handler to fill in | 5 /* This file is dynamically processed by a C++ data source handler to fill in |
6 * some per-platform/locale styles that dramatically alter the page. This is | 6 * some per-platform/locale styles that dramatically alter the page. This is |
7 * done to reduce flicker, as JS may not run before the page is rendered. | 7 * done to reduce flicker, as JS may not run before the page is rendered. |
8 * | 8 * |
9 * Include this stylesheet via its chrome://resources/ URL, i.e.: | 9 * There are two ways to include this stylesheet: |
| 10 * 1. via its chrome://resources/ URL in HTML, i.e.: |
10 * | 11 * |
11 * <link rel="stylesheet" href="chrome://resources/css/font_defaults.css"> | 12 * <link rel="stylesheet" href="chrome://resources/css/text_defaults.css"> |
12 * | 13 * |
13 * otherwise its $placeholders wont be expanded. */ | 14 * 2. via the webui::AppendWebUICSSTextDefaults() method to directly append it |
| 15 * to an HTML string. |
| 16 * Otherwise its $placeholders won't be expanded. */ |
14 | 17 |
15 html { | 18 html { |
16 direction: $1; | 19 direction: $1; |
17 } | 20 } |
18 | 21 |
19 body { | 22 body { |
20 font-family: $2; | 23 font-family: $2; |
21 font-size: $3; | 24 font-size: $3; |
22 } | 25 } |
OLD | NEW |