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

Side by Side Diff: chrome/browser/resources/settings/controls/dialog_drawer.html

Issue 2465433002: Create implementation of the side panel using a dialog. (Closed)
Patch Set: Address feedback. Created 4 years 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
(Empty)
1 <link rel="import" href="chrome://resources/html/polymer.html">
2
3 <dom-module name="dialog-drawer">
4 <template>
5 <style>
6 :host {
7 background-color: #FFF;
8 border: none;
9 bottom: 0;
10 height: 100%;
11 left: -265px;
12 margin: 0;
13 overflow: hidden;
14 padding: 0;
15 position: absolute;
16 top: 0;
17 transition: left 200ms ease;
18 width: 256px;
dpapad 2016/12/08 22:27:22 What is the relation of 256 and 265 above? Should
hcarmona 2016/12/09 16:14:42 Good catch! Yes, both values should be the same. U
19 }
20
21 :host(.opening) {
22 left: 0;
23 }
24
25 :host([align=right]) {
26 left: auto;
27 right: -256px;
28 transition: right 200ms ease;
29 }
30
31 :host(.opening[align=right]) {
32 right: 0;
33 }
34
35 :host::backdrop {
36 background: rgba(0, 0, 0, 0.5);
37 bottom: 0;
38 left: 0;
39 opacity: 0;
40 position: absolute;
41 right: 0;
42 top: 0;
43 transition: opacity 200ms ease;
44 }
45
46 :host(.opening)::backdrop {
47 opacity: 1;
48 }
49 </style>
50 <content></content>
51 </template>
52 </dom-module>
53 <script src="dialog_drawer.js"></script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698