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

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

Issue 2846673003: MD Bookmarks: Simplify and improve consistency of CSS (Closed)
Patch Set: Created 3 years, 7 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
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/cr_elements/icons.html"> 2 <link rel="import" href="chrome://resources/cr_elements/icons.html">
3 <link rel="import" href="chrome://resources/html/icon.html"> 3 <link rel="import" href="chrome://resources/html/icon.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-light.html"> 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper -icon-button-light.html">
6 <link rel="import" href="chrome://bookmarks/actions.html"> 6 <link rel="import" href="chrome://bookmarks/actions.html">
7 <link rel="import" href="chrome://bookmarks/shared_style.html"> 7 <link rel="import" href="chrome://bookmarks/shared_style.html">
8 <link rel="import" href="chrome://bookmarks/store_client.html"> 8 <link rel="import" href="chrome://bookmarks/store_client.html">
9 9
10 <dom-module id="bookmarks-item"> 10 <dom-module id="bookmarks-item">
11 <template> 11 <template>
12 <style include="shared-style"> 12 <style include="shared-style">
13 :host { 13 :host {
14 -webkit-padding-start: 20px; 14 -webkit-padding-start: 20px;
15 -webkit-user-select: none; 15 -webkit-user-select: none;
16 align-items: center; 16 align-items: center;
17 cursor: pointer; 17 cursor: pointer;
18 display: flex; 18 display: flex;
19 flex-direction: row; 19 flex-direction: row;
20 height: 40px; 20 height: 40px;
21 position: relative; 21 position: relative;
22 } 22 }
23 23
24 :host([is-selected-item_]) { 24 :host([is-selected-item_]) {
25 background-color: rgb(225, 235, 253); 25 background-color: var(--highlight-color);
26 } 26 }
27 27
28 #website-title { 28 #website-title {
29 color: var(--primary-text-color); 29 color: var(--primary-text-color);
30 flex: 1; 30 flex: 1;
31 overflow: hidden; 31 overflow: hidden;
32 text-decoration: none; 32 text-decoration: none;
33 text-overflow: ellipsis; 33 text-overflow: ellipsis;
34 white-space: nowrap; 34 white-space: nowrap;
35 } 35 }
36 36
37 #icon-wrapper {
38 -webkit-margin-end: 20px;
39 color: var(--secondary-text-color);
40 height: 20px;
41 width: 20px;
42 }
43
44 #folder-icon {
45 display: block;
calamity 2017/05/01 03:52:35 Is this line-height interaction something we want
tsergeant 2017/05/01 04:31:39 I don't necessarily think so. It only comes about
46 }
47
37 #icon { 48 #icon {
38 background-repeat: no-repeat; 49 background-repeat: no-repeat;
39 height: 16px; 50 height: 16px;
40 margin: 2px; 51 margin: 2px;
41 } 52 }
42 53
43 #icon-wrapper { 54 button.more-vert-button {
44 -webkit-margin-end: 20px;
45 height: 20px;
46 width: 20px;
47 }
48
49 .more-vert-button {
50 -webkit-margin-end: 12px; 55 -webkit-margin-end: 12px;
51 } 56 }
52
53 iron-icon {
54 --iron-icon-height: 20px;
55 --iron-icon-width: 20px;
56 color: var(--secondary-text-color);
57 }
58 </style> 57 </style>
calamity 2017/05/01 03:52:35 nit: Unindent tag
tsergeant 2017/05/01 04:31:39 Done.
59 <div id="icon-wrapper"> 58 <div id="icon-wrapper">
60 <iron-icon id="folder-icon" icon="cr:folder" 59 <iron-icon id="folder-icon" icon="cr:folder"
61 hidden$="[[!isFolder_]]"> 60 hidden$="[[!isFolder_]]">
62 </iron-icon> 61 </iron-icon>
63 <div id="icon" hidden$="[[isFolder_]]"></div> 62 <div id="icon" hidden$="[[isFolder_]]"></div>
64 </div> 63 </div>
65 <div id="website-title"> 64 <div id="website-title">
66 [[item_.title]] 65 [[item_.title]]
67 </div> 66 </div>
68 <button is="paper-icon-button-light" class="more-vert-button" 67 <button is="paper-icon-button-light" class="more-vert-button"
69 on-click="onMenuButtonClick_" on-dblclick="onMenuButtonDblClick_"> 68 on-click="onMenuButtonClick_" on-dblclick="onMenuButtonDblClick_">
70 <div></div> 69 <div></div>
71 <div></div> 70 <div></div>
72 <div></div> 71 <div></div>
73 </button> 72 </button>
74 </template> 73 </template>
75 <script src="chrome://bookmarks/item.js"></script> 74 <script src="chrome://bookmarks/item.js"></script>
76 <dom-module> 75 <dom-module>
OLDNEW
« no previous file with comments | « chrome/browser/resources/md_bookmarks/folder_node.html ('k') | chrome/browser/resources/md_bookmarks/shared_style.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698