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

Unified Diff: ui/webui/resources/cr_elements/shared_style_css.html

Issue 2169603002: MD WebUI: Move some settings CSS to shared_style_css (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@issue_521040_internet_cleanup_1
Patch Set: . Created 4 years, 5 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
Index: ui/webui/resources/cr_elements/shared_style_css.html
diff --git a/ui/webui/resources/cr_elements/shared_style_css.html b/ui/webui/resources/cr_elements/shared_style_css.html
index 1f6cf1a50454d530929e1a586ac3ec515b7f8c2e..e58e61a2e8da2430fce92d82b5023d97edb64749 100644
--- a/ui/webui/resources/cr_elements/shared_style_css.html
+++ b/ui/webui/resources/cr_elements/shared_style_css.html
@@ -1,10 +1,19 @@
<link rel="import" href="chrome://resources/html/polymer.html">
<!-- Common styles for Material Design WebUI. Included directly in
- settings_shared_css.html. -->
+ settings_root_css.html. This should be kept lightweight, or we shoud
+ separate the :root section into shared_root_css.html. -->
<dom-module id="cr-shared-style">
<template>
<style>
+ :root {
+ --cr-actionable: {
+ cursor: pointer;
+ };
+ --cr-focused-item-color: var(--google-grey-300);
+ --cr-separator-line: 1px solid rgba(0, 0, 0, 0.06);
+ }
dschuyler 2016/07/21 00:04:48 Suggestion: the :root only needs to be included on
michaelpg 2016/07/21 04:26:51 I think the comment added on line 4 is reasonable,
+
.action-button {
background: var(--google-blue-500);
color: white;
@@ -27,6 +36,10 @@
.cancel-button {
font-weight: 500;
}
+
+ [actionable] {
+ @apply(--cr-actionable);
+ }
</style>
</template>
</dom-module>

Powered by Google App Engine
This is Rietveld 408576698