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

Side by Side Diff: ui/webui/resources/cr_elements/shared_vars_css.html

Issue 2231593003: Add [hidden] rule to cr-elements :root stylesheet (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 | « no previous file | 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 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/color.html "> 1 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/color.html ">
2 2
3 <!-- Common css variables for Material Design WebUI. --> 3 <!-- Common css variables for Material Design WebUI. -->
4 <style is="custom-style"> 4 <style is="custom-style">
5 :root { 5 :root {
6 --cr-actionable: { 6 --cr-actionable: {
7 cursor: pointer; 7 cursor: pointer;
8 }; 8 };
9 --cr-focused-item-color: var(--google-grey-300); 9 --cr-focused-item-color: var(--google-grey-300);
10 --cr-separator-line: 1px solid rgba(0, 0, 0, 0.06); 10 --cr-separator-line: 1px solid rgba(0, 0, 0, 0.06);
11 } 11 }
12
13 /*
14 * Because everyone assumes [hidden] overrides {display: foo}.
15 * TODO(michaelpg): Rename to shared_global_css.html and import only from
16 * entry points (md_foo.html and tests). Eventually find alternative solution
17 * to this deprecated /deep/ selector (crbug.com/498405).
18 */
Dan Beam 2016/08/10 16:16:36 nit: /* Everybody seems to love useless lines. *
michaelpg 2016/08/10 16:27:56 okay, that's our CSS style, but i have no love for
Dan Beam 2016/08/10 16:29:24 no, it's not. if you show me all the other places
19 :root /deep/ [hidden] {
Dan Beam 2016/08/10 16:16:36 why do we need the /deep/ though? also, why is th
michaelpg 2016/08/10 16:27:56 see description
dschuyler 2016/08/10 18:58:26 It was named root and got renamed to vars. Please
20 display: none !important;
21 }
12 </style> 22 </style>
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698