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

Unified Diff: chrome/browser/resources/settings/controls/dialog_drawer.html

Issue 2465433002: Create implementation of the side panel using a dialog. (Closed)
Patch Set: Feedback Created 4 years, 1 month 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: chrome/browser/resources/settings/controls/dialog_drawer.html
diff --git a/chrome/browser/resources/settings/controls/dialog_drawer.html b/chrome/browser/resources/settings/controls/dialog_drawer.html
new file mode 100644
index 0000000000000000000000000000000000000000..0843b20e724391432d76d0791cf9d83f5ef991e7
--- /dev/null
+++ b/chrome/browser/resources/settings/controls/dialog_drawer.html
@@ -0,0 +1,53 @@
+<link rel="import" href="chrome://resources/html/polymer.html">
+
+<dom-module name="dialog-drawer">
+ <template>
+ <style>
+ :host {
+ background-color: #FFF;
+ border: none;
+ bottom: 0;
+ height: 100%;
+ left: -265px;
+ margin: 0;
+ overflow: hidden;
+ padding: 0;
+ position: absolute;
+ top: 0;
+ transition: left 200ms ease;
+ width: 256px;
+ }
+
+ :host(.opening) {
+ left: 0;
+ }
+
+ :host([align=right]) {
+ left: auto;
+ right: -256px;
+ transition: right 200ms ease;
+ }
+
+ :host(.opening[align=right]) {
+ right: 0;
+ }
+
+ :host::backdrop {
+ background: rgba(0, 0, 0, 0.5);
+ bottom: 0;
+ left: 0;
+ opacity: 0;
+ position: absolute;
+ right: 0;
+ top: 0;
+ transition: opacity 200ms ease;
+ }
+
+ :host(.opening)::backdrop {
+ opacity: 1;
+ }
+ </style>
+ <content></content>
+ </template>
+</dom-module>
+<script src="dialog_drawer.js"></script>

Powered by Google App Engine
This is Rietveld 408576698