Chromium Code Reviews| 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/html/cr/ui/splitter.html"> | 2 <link rel="import" href="chrome://resources/html/cr/ui/splitter.html"> |
| 3 <link rel="import" href="chrome://bookmarks/api_listener.html"> | 3 <link rel="import" href="chrome://bookmarks/api_listener.html"> |
| 4 <link rel="import" href="chrome://bookmarks/constants.html"> | 4 <link rel="import" href="chrome://bookmarks/constants.html"> |
| 5 <link rel="import" href="chrome://bookmarks/dnd_manager.html"> | 5 <link rel="import" href="chrome://bookmarks/dnd_manager.html"> |
| 6 <link rel="import" href="chrome://bookmarks/list.html"> | 6 <link rel="import" href="chrome://bookmarks/list.html"> |
| 7 <link rel="import" href="chrome://bookmarks/router.html"> | 7 <link rel="import" href="chrome://bookmarks/router.html"> |
| 8 <link rel="import" href="chrome://bookmarks/shared_vars.html"> | 8 <link rel="import" href="chrome://bookmarks/shared_vars.html"> |
| 9 <link rel="import" href="chrome://bookmarks/store.html"> | 9 <link rel="import" href="chrome://bookmarks/store.html"> |
| 10 <link rel="import" href="chrome://bookmarks/toolbar.html"> | 10 <link rel="import" href="chrome://bookmarks/toolbar.html"> |
| (...skipping 12 matching lines...) Expand all Loading... | |
| 23 } | 23 } |
| 24 | 24 |
| 25 #main-container { | 25 #main-container { |
| 26 display: flex; | 26 display: flex; |
| 27 flex-direction: row; | 27 flex-direction: row; |
| 28 flex-grow: 1; | 28 flex-grow: 1; |
| 29 overflow: auto; | 29 overflow: auto; |
| 30 } | 30 } |
| 31 | 31 |
| 32 #splitter { | 32 #splitter { |
| 33 box-sizing: border-box; | |
| 33 cursor: e-resize; | 34 cursor: e-resize; |
| 34 flex: 0 0 var(--splitter-width); | 35 flex: 0 0 var(--splitter-width); |
| 36 opacity: 0; | |
| 37 } | |
| 38 | |
| 39 #splitter:hover { | |
| 40 border-left: 1px solid rgba(0, 0, 0, 0.1); | |
|
tsergeant
2017/05/05 00:36:22
-webkit-border-start for RTL friendliness.
calamity
2017/05/05 05:09:54
Done.
| |
| 41 opacity: 1; | |
| 42 transition: opacity 100ms ease-out; | |
| 35 } | 43 } |
| 36 | 44 |
| 37 :host-context([dir='rtl']) #splitter { | 45 :host-context([dir='rtl']) #splitter { |
| 38 cursor: w-resize; | 46 cursor: w-resize; |
| 39 } | 47 } |
| 40 | 48 |
| 41 #sidebar { | 49 #sidebar { |
| 42 -webkit-padding-start: 3px; | 50 -webkit-padding-start: 3px; |
| 43 display: block; | 51 display: block; |
| 44 max-width: 40%; | 52 max-width: 40%; |
| (...skipping 15 matching lines...) Expand all Loading... | |
| 60 <div id="sidebar"> | 68 <div id="sidebar"> |
| 61 <bookmarks-folder-node item-id="0" depth="-1"></bookmarks-folder-node> | 69 <bookmarks-folder-node item-id="0" depth="-1"></bookmarks-folder-node> |
| 62 </div> | 70 </div> |
| 63 <div id="splitter"></div> | 71 <div id="splitter"></div> |
| 64 <bookmarks-list></bookmarks-list> | 72 <bookmarks-list></bookmarks-list> |
| 65 </div> | 73 </div> |
| 66 <bookmarks-router></bookmarks-router> | 74 <bookmarks-router></bookmarks-router> |
| 67 </template> | 75 </template> |
| 68 <script src="chrome://bookmarks/app.js"></script> | 76 <script src="chrome://bookmarks/app.js"></script> |
| 69 </dom-module> | 77 </dom-module> |
| OLD | NEW |