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

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

Issue 2838963003: WebUI: Unify [hidden] attribute styling rules. (Closed)
Patch Set: Update MD Bookmarks too Created 3 years, 8 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/hidden_style_css.html
diff --git a/ui/webui/resources/cr_elements/hidden_style_css.html b/ui/webui/resources/cr_elements/hidden_style_css.html
new file mode 100644
index 0000000000000000000000000000000000000000..4c22288edac7ea8a8adabe979adb3ef7b9cf92ff
--- /dev/null
+++ b/ui/webui/resources/cr_elements/hidden_style_css.html
@@ -0,0 +1,15 @@
+<link rel="import" href="chrome://resources/html/polymer.html">
+
+<!-- Common style for Material Design WebUI, such that the |hidden| attributes
+ works within Shadow DOM. -->
+<dom-module id="cr-hidden-style">
+ <template>
+ <style>
+ /* Included here so we don't have to include "iron-positioning" in every
+ * stylesheet. See crbug.com/498405. */
+ [hidden] {
+ display: none !important;
+ }
+ </style>
+ </template>
+</dom-module>
« no previous file with comments | « chrome/browser/resources/settings/settings_shared_css.html ('k') | ui/webui/resources/cr_elements/shared_style_css.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698