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

Unified Diff: ui/webui/resources/css/text_defaults.css

Issue 830743003: Directly inline shared WebUI CSS declarations into the security and supervised user interstitials. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: revert stuff Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/base/webui/web_ui_util.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/webui/resources/css/text_defaults.css
diff --git a/ui/webui/resources/css/text_defaults.css b/ui/webui/resources/css/text_defaults.css
index 3e9007a00a0510ecf6d841ee66f10032e6fade80..682a858526bc4fad6881b4e1765e08298d733576 100644
--- a/ui/webui/resources/css/text_defaults.css
+++ b/ui/webui/resources/css/text_defaults.css
@@ -6,11 +6,14 @@
* some per-platform/locale styles that dramatically alter the page. This is
* done to reduce flicker, as JS may not run before the page is rendered.
*
- * Include this stylesheet via its chrome://resources/ URL, i.e.:
+ * There are two ways to include this stylesheet:
+ * 1. via its chrome://resources/ URL in HTML, i.e.:
*
- * <link rel="stylesheet" href="chrome://resources/css/font_defaults.css">
+ * <link rel="stylesheet" href="chrome://resources/css/text_defaults.css">
*
- * otherwise its $placeholders wont be expanded. */
+ * 2. via the webui::AppendWebUICSSTextDefaults() method to directly append it
+ * to an HTML string.
+ * Otherwise its $placeholders won't be expanded. */
html {
direction: $1;
« 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