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

Side by Side Diff: chrome/browser/resources/md_bookmarks/app.html

Issue 2745593004: [MD Bookmarks] Add draggable sidebar. (Closed)
Patch Set: rebase Created 3 years, 9 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/resources/md_bookmarks/app.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/html/cr/ui/splitter.html">
2 <link rel="import" href="chrome://bookmarks/api_listener.html"> 3 <link rel="import" href="chrome://bookmarks/api_listener.html">
3 <link rel="import" href="chrome://bookmarks/list.html"> 4 <link rel="import" href="chrome://bookmarks/list.html">
4 <link rel="import" href="chrome://bookmarks/shared_vars.html"> 5 <link rel="import" href="chrome://bookmarks/shared_vars.html">
5 <link rel="import" href="chrome://bookmarks/sidebar.html"> 6 <link rel="import" href="chrome://bookmarks/sidebar.html">
6 <link rel="import" href="chrome://bookmarks/store.html"> 7 <link rel="import" href="chrome://bookmarks/store.html">
7 <link rel="import" href="chrome://bookmarks/toolbar.html"> 8 <link rel="import" href="chrome://bookmarks/toolbar.html">
8 <link rel="import" href="chrome://bookmarks/util.html"> 9 <link rel="import" href="chrome://bookmarks/util.html">
9 10
10 <dom-module id="bookmarks-app"> 11 <dom-module id="bookmarks-app">
11 <template> 12 <template>
12 <style> 13 <style>
13 :host { 14 :host {
14 display: flex; 15 display: flex;
15 flex-direction: column; 16 flex-direction: column;
16 height: 100%; 17 height: 100%;
17 overflow: hidden;
18 } 18 }
19 19
20 #main-container { 20 #main-container {
21 display: flex; 21 display: flex;
22 flex-direction: row; 22 flex-direction: row;
23 flex-grow: 1; 23 flex-grow: 1;
24 overflow: auto; 24 overflow: auto;
25 } 25 }
26 26
27 #splitter {
28 cursor: e-resize;
29 flex: 0 0 var(--splitter-width);
30 }
31
32 :host-context([dir='rtl']) #splitter {
33 cursor: w-resize;
34 }
35
27 bookmarks-sidebar { 36 bookmarks-sidebar {
28 flex: 0 0 var(--sidebar-width); 37 max-width: 40%;
38 min-width: var(--min-sidebar-width);
39 width: var(--min-sidebar-width);
29 } 40 }
30 41
31 bookmarks-list { 42 bookmarks-list {
32 flex: 1; 43 flex: 1;
44 min-width: 550px;
33 } 45 }
34 </style> 46 </style>
35 <bookmarks-toolbar></bookmarks-toolbar> 47 <bookmarks-toolbar sidebar-width="[[sidebarWidth_]]"></bookmarks-toolbar>
36 <div id="main-container"> 48 <div id="main-container">
37 <bookmarks-sidebar></bookmarks-sidebar> 49 <bookmarks-sidebar id="sidebar"></bookmarks-sidebar>
50 <div id="splitter"></div>
38 <bookmarks-list></bookmarks-list> 51 <bookmarks-list></bookmarks-list>
39 </div> 52 </div>
40 </template> 53 </template>
41 <script src="chrome://bookmarks/app.js"></script> 54 <script src="chrome://bookmarks/app.js"></script>
42 </dom-module> 55 </dom-module>
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/md_bookmarks/app.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698