OLD | NEW |
1 <link rel="import" href="chrome://resources/html/polymer.html"> | 1 <link rel="import" href="chrome://resources/html/polymer.html"> |
2 <link rel="import" href="chrome://resources/cr_elements/shared_vars_css.html"> | 2 <link rel="import" href="chrome://resources/cr_elements/shared_vars_css.html"> |
3 | 3 |
4 <dom-module id="cr-drawer"> | 4 <dom-module id="cr-drawer"> |
5 <template> | 5 <template> |
6 <style> | 6 <style> |
7 :host { | 7 :host { |
8 --drawer-width: 256px; | 8 --drawer-width: 256px; |
9 --transition-timing: 200ms ease; | 9 --transition-timing: 200ms ease; |
10 background-color: #fff; | 10 background-color: #fff; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 position: absolute; | 47 position: absolute; |
48 right: 0; | 48 right: 0; |
49 top: 0; | 49 top: 0; |
50 transition: opacity var(--transition-timing); | 50 transition: opacity var(--transition-timing); |
51 } | 51 } |
52 | 52 |
53 :host(.opening)::backdrop { | 53 :host(.opening)::backdrop { |
54 opacity: 1; | 54 opacity: 1; |
55 } | 55 } |
56 | 56 |
57 :host ::content .drawer-header { | 57 .drawer-header { |
58 -webkit-padding-start: 24px; | 58 -webkit-padding-start: 24px; |
59 align-items: center; | 59 align-items: center; |
60 border-bottom: var(--cr-separator-line); | 60 border-bottom: var(--cr-separator-line); |
61 display: flex; | 61 display: flex; |
62 font-size: 123.08%; /* go to 16px from 13px */ | 62 font-size: 123.08%; /* go to 16px from 13px */ |
63 min-height: 56px; | 63 min-height: 56px; |
| 64 outline: none; |
64 } | 65 } |
65 | 66 |
66 :host ::content .drawer-content { | 67 :host ::content .drawer-content { |
67 height: calc(100% - 56px); | 68 height: calc(100% - 56px); |
68 overflow: auto; | 69 overflow: auto; |
69 } | 70 } |
70 </style> | 71 </style> |
71 <div id="container" on-tap="onContainerTap_"> | 72 <div id="container" on-tap="onContainerTap_"> |
| 73 <div class="drawer-header" tabindex="-1">[[title]]</div> |
72 <content></content> | 74 <content></content> |
73 </div> | 75 </div> |
74 </template> | 76 </template> |
75 </dom-module> | 77 </dom-module> |
76 <script src="cr_drawer.js"></script> | 78 <script src="cr_drawer.js"></script> |
OLD | NEW |