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

Side by Side Diff: ui/webui/resources/css/text_defaults.css

Issue 1647583003: Revert of [Template Expressions] changing ${ leader to $i18n{ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 | « ui/base/webui/web_ui_util.cc ('k') | 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 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 * There are two ways to include this stylesheet: 9 * There are two ways to include this stylesheet:
10 * 1. via its chrome://resources/ URL in HTML, i.e.: 10 * 1. via its chrome://resources/ URL in HTML, i.e.:
11 * 11 *
12 * <link rel="stylesheet" href="chrome://resources/css/text_defaults.css"> 12 * <link rel="stylesheet" href="chrome://resources/css/text_defaults.css">
13 * 13 *
14 * 2. via the webui::AppendWebUICSSTextDefaults() method to directly append it 14 * 2. via the webui::AppendWebUICSSTextDefaults() method to directly append it
15 * to an HTML string. 15 * to an HTML string.
16 * Otherwise its $placeholders won't be expanded. */ 16 * Otherwise its $placeholders won't be expanded. */
17 17
18 html { 18 html {
19 direction: $i18n{textDirection}; 19 direction: ${textDirection};
20 } 20 }
21 21
22 body { 22 body {
23 font-family: $i18n{fontFamily}; 23 font-family: ${fontFamily};
24 font-size: $i18n{fontSize}; 24 font-size: ${fontSize};
25 } 25 }
26 26
27 button { 27 button {
28 font-family: $i18n{fontFamily}; 28 font-family: ${fontFamily};
29 } 29 }
OLDNEW
« no previous file with comments | « ui/base/webui/web_ui_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698