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

Side by Side 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 unified diff | Download patch
OLDNEW
1 <link rel="import" href="chrome://resources/html/polymer.html"> 1 <link rel="import" href="chrome://resources/html/polymer.html">
2 2
3 <!-- Common styles for Material Design WebUI. Included directly in 3 <!-- Common styles for Material Design WebUI. Included directly in
4 settings_shared_css.html. --> 4 settings_root_css.html. This should be kept lightweight, or we shoud
5 separate the :root section into shared_root_css.html. -->
5 <dom-module id="cr-shared-style"> 6 <dom-module id="cr-shared-style">
6 <template> 7 <template>
7 <style> 8 <style>
9 :root {
10 --cr-actionable: {
11 cursor: pointer;
12 };
13 --cr-focused-item-color: var(--google-grey-300);
14 --cr-separator-line: 1px solid rgba(0, 0, 0, 0.06);
15 }
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,
16
8 .action-button { 17 .action-button {
9 background: var(--google-blue-500); 18 background: var(--google-blue-500);
10 color: white; 19 color: white;
11 --paper-button-flat-keyboard-focus: { 20 --paper-button-flat-keyboard-focus: {
12 background-color: rgb(58, 117, 215); /* 88% of --google-blue-500 */ 21 background-color: rgb(58, 117, 215); /* 88% of --google-blue-500 */
13 }; 22 };
14 } 23 }
15 24
16 .action-button[disabled] { 25 .action-button[disabled] {
17 opacity: .25; /* TODO(dbeam): check this value with bettes. */ 26 opacity: .25; /* TODO(dbeam): check this value with bettes. */
18 } 27 }
19 28
20 .cancel-button { 29 .cancel-button {
21 --paper-button-flat-keyboard-focus: { 30 --paper-button-flat-keyboard-focus: {
22 background-color: rgba(0, 0, 0, .12); 31 background-color: rgba(0, 0, 0, .12);
23 }; 32 };
24 } 33 }
25 34
26 .action-button, 35 .action-button,
27 .cancel-button { 36 .cancel-button {
28 font-weight: 500; 37 font-weight: 500;
29 } 38 }
39
40 [actionable] {
41 @apply(--cr-actionable);
42 }
30 </style> 43 </style>
31 </template> 44 </template>
32 </dom-module> 45 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698