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/icons.html"> | 2 <link rel="import" href="chrome://resources/cr_elements/icons.html"> |
3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-a11y-keys-behavior /iron-a11y-keys-behavior.html"> | 3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-a11y-keys-behavior /iron-a11y-keys-behavior.html"> |
4 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.htm l"> | 4 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.htm l"> |
5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper -icon-button.html"> | 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper -icon-button.html"> |
6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/color.html "> | 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/color.html "> |
7 <link rel="import" href="chrome://bookmarks/actions.html"> | 7 <link rel="import" href="chrome://bookmarks/actions.html"> |
8 <link rel="import" href="chrome://bookmarks/icons.html"> | 8 <link rel="import" href="chrome://bookmarks/icons.html"> |
9 <link rel="import" href="chrome://bookmarks/shared_style.html"> | 9 <link rel="import" href="chrome://bookmarks/shared_style.html"> |
10 <link rel="import" href="chrome://bookmarks/store_client.html"> | 10 <link rel="import" href="chrome://bookmarks/store_client.html"> |
(...skipping 19 matching lines...) Expand all Loading... | |
30 overflow: hidden; | 30 overflow: hidden; |
31 text-overflow: ellipsis; | 31 text-overflow: ellipsis; |
32 white-space: nowrap; | 32 white-space: nowrap; |
33 } | 33 } |
34 | 34 |
35 #container { | 35 #container { |
36 -webkit-padding-start: | 36 -webkit-padding-start: |
37 calc(var(--node-depth, 0) * var(--padding-start-per-depth)); | 37 calc(var(--node-depth, 0) * var(--padding-start-per-depth)); |
38 cursor: pointer; | 38 cursor: pointer; |
39 height: 40px; | 39 height: 40px; |
40 overflow: hidden; | |
40 position: relative; | 41 position: relative; |
41 } | 42 } |
42 | 43 |
43 #folder-label { | 44 #folder-label { |
44 -webkit-padding-end: 8px; | 45 -webkit-padding-end: 8px; |
45 color: var(--secondary-text-color); | 46 color: var(--secondary-text-color); |
46 flex-grow: 1; | 47 flex-grow: 1; |
47 overflow: hidden; | 48 overflow: hidden; |
48 } | 49 } |
49 | 50 |
(...skipping 25 matching lines...) Expand all Loading... | |
75 #arrow[is-open] { | 76 #arrow[is-open] { |
76 transform: initial; | 77 transform: initial; |
77 } | 78 } |
78 | 79 |
79 [no-children] { | 80 [no-children] { |
80 -webkit-padding-start: 52px; /* The width of the arrow and its margin */ | 81 -webkit-padding-start: 52px; /* The width of the arrow and its margin */ |
81 } | 82 } |
82 </style> | 83 </style> |
83 | 84 |
84 <div id="container" class="v-centered" on-tap="selectFolder_" | 85 <div id="container" class="v-centered" on-tap="selectFolder_" |
85 draggable="[[!isRootFolder_(depth)]]" | 86 draggable="[[!isRootFolder_(depth)]]" tabindex="getTabIndex_(focusable)" |
tsergeant
2017/04/19 01:42:16
needs $="[[]]"
calamity
2017/04/19 04:51:02
Done.
| |
86 hidden="[[!isPositiveDepth_(depth)]]"> | 87 hidden="[[!isPositiveDepth_(depth)]]"> |
87 <template is="dom-if" if="[[hasChildFolder_(item_.children)]]"> | 88 <template is="dom-if" if="[[hasChildFolder_(item_.children)]]"> |
88 <paper-icon-button id="arrow" icon="cr:arrow-drop-down" | 89 <paper-icon-button id="arrow" icon="cr:arrow-drop-down" |
89 is-open$="[[!isClosed_]]" on-tap="toggleFolder_" tabindex="-1"> | 90 is-open$="[[!isClosed_]]" on-tap="toggleFolder_" tabindex="-1"> |
90 </paper-icon-button> | 91 </paper-icon-button> |
91 </template> | 92 </template> |
92 <div id="folder-label" class="v-centered"> | 93 <div id="folder-label" class="v-centered"> |
93 <iron-icon icon="[[getFolderIcon_(isSelectedFolder_)]]" | 94 <iron-icon icon="[[getFolderIcon_(isSelectedFolder_)]]" |
94 no-children$="[[!hasChildFolder_(item_.children)]]"> | 95 no-children$="[[!hasChildFolder_(item_.children)]]"> |
95 </iron-icon> | 96 </iron-icon> |
96 <div class="menu-label">[[item_.title]]</div> | 97 <div class="menu-label">[[item_.title]]</div> |
97 </div> | 98 </div> |
98 </div> | 99 </div> |
99 <div id="descendants" hidden$="[[isClosed_]]"> | 100 <div id="descendants" hidden$="[[isClosed_]]"> |
100 <template is="dom-repeat" | 101 <template is="dom-repeat" |
101 items="[[item_.children]]" | 102 items="[[item_.children]]" |
102 as="child" | 103 as="child" |
103 filter="isFolder_"> | 104 filter="isFolder_"> |
104 <bookmarks-folder-node item-id="[[child]]" | 105 <bookmarks-folder-node item-id="[[child]]" |
105 depth="[[getChildDepth_(depth)]]"> | 106 depth="[[getChildDepth_(depth)]]"> |
106 </bookmarks-folder-node> | 107 </bookmarks-folder-node> |
107 </template> | 108 </template> |
108 </div> | 109 </div> |
109 </template> | 110 </template> |
110 <script src="chrome://bookmarks/folder_node.js"></script> | 111 <script src="chrome://bookmarks/folder_node.js"></script> |
111 </dom-module> | 112 </dom-module> |
OLD | NEW |