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

Unified 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: comment spacing 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/webui/resources/cr_elements/shared_vars_css.html
diff --git a/ui/webui/resources/cr_elements/shared_vars_css.html b/ui/webui/resources/cr_elements/shared_vars_css.html
index dceff2a6f51ecad120ccdfab787e658b72069049..6a08b57a3acd284181efbd655d37377e34e2cefd 100644
--- a/ui/webui/resources/cr_elements/shared_vars_css.html
+++ b/ui/webui/resources/cr_elements/shared_vars_css.html
@@ -9,4 +9,12 @@
--cr-focused-item-color: var(--google-grey-300);
--cr-separator-line: 1px solid rgba(0, 0, 0, 0.06);
}
+
+ /* Because everyone assumes [hidden] overrides {display: foo}.
+ * TODO(michaelpg): Rename to shared_global_css.html and import only from
+ * entry points (md_foo.html and tests). Eventually find alternative solution
+ * to this deprecated /deep/ selector (crbug.com/498405). */
+ :root /deep/ [hidden] {
+ display: none !important;
+ }
</style>
« 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