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

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

Issue 2386813002: [MD Extensions] Merge CSS into html files (Closed)
Patch Set: Newlines Created 4 years, 2 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/assert.html"> 1 <link rel="import" href="chrome://resources/html/assert.html">
2 <link rel="import" href="chrome://resources/html/cr.html"> 2 <link rel="import" href="chrome://resources/html/cr.html">
3 <link rel="import" href="chrome://resources/html/i18n_behavior.html"> 3 <link rel="import" href="chrome://resources/html/i18n_behavior.html">
4 <link rel="import" href="chrome://resources/html/load_time_data.html"> 4 <link rel="import" href="chrome://resources/html/load_time_data.html">
5 <link rel="import" href="chrome://resources/html/polymer.html"> 5 <link rel="import" href="chrome://resources/html/polymer.html">
6 <link rel="import" href="chrome://extensions/icons.html"> 6 <link rel="import" href="chrome://extensions/icons.html">
7 <link rel="import" href="chrome://extensions/item_source.html"> 7 <link rel="import" href="chrome://extensions/item_source.html">
8 <link rel="import" href="chrome://extensions/strings.html"> 8 <link rel="import" href="chrome://extensions/strings.html">
9 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icons/iron-icons.h tml"> 9 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icons/iron-icons.h tml">
10 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icons/communicatio n-icons.html"> 10 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icons/communicatio n-icons.html">
11 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-f lex-layout-classes.html"> 11 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-f lex-layout-classes.html">
12 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/shadow.htm l"> 12 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/shadow.htm l">
13 <link rel="import" href="chrome://resources/polymer/v1_0/paper-toggle-button/pap er-toggle-button.html"> 13 <link rel="import" href="chrome://resources/polymer/v1_0/paper-toggle-button/pap er-toggle-button.html">
14 14
15 <dom-module id="extensions-item"> 15 <dom-module id="extensions-item">
16 <style include="iron-flex"></style> 16 <style include="iron-flex"></style>
17 <template> 17 <template>
18 <style>
19 [hidden] {
20 display: none !important;
21 }
22
23 #icon-wrapper {
24 align-self: flex-start;
25 display: flex;
26 padding: 6px;
27 }
28
29 #icon {
30 height: 36px;
31 width: 36px;
32 }
33
34 #card,
35 #card-wrapper {
36 min-height: 154px;
37 width: 400px;
38 }
39
40 #card-wrapper {
41 @apply(--shadow-elevation-2dp);
42 background: white;
43 }
44
45 #card {
46 display: flex;
47 flex-direction: column;
48 font-size: 13px;
49 }
50
51 #card.disabled {
52 opacity: 0.6;
53 }
54
55 #main {
56 display: flex;
57 flex-grow: 1;
58 padding: 16px;
59 }
60
61 #content {
62 -webkit-margin-start: 24px;
63 width: 100%;
64 }
65
66 #name-and-version {
67 margin-bottom: 4px;
68 }
69
70 #name {
71 -webkit-margin-end: 8px;
72 color: var(--paper-grey-800);
73 }
74
75 #description {
76 margin-bottom: 8px;
77 }
78
79 #version,
80 #extension-id,
81 #inspect-views,
82 #button-strip {
83 color: var(--paper-grey-600);
84 }
85
86 #description,
87 #extension-id,
88 #inspect-views {
89 line-height: 20px;
90 }
91
92 #inspect-views paper-button {
93 color: var(--google-blue-700);
94 }
95
96 #button-strip {
97 border-top: 1px solid var(--paper-grey-400);
98 }
99
100 #source-indicator {
101 align-items: center;
102 align-self: flex-end;
103 border-radius: 0 2px;
104 color: var(--paper-grey-800);
105 display: flex;
106 min-height: 32px;
107 padding: 0 8px;
108 position: absolute;
109 white-space: nowrap;
110 }
111
112 #source-indicator iron-icon {
113 height: 16px;
114 width: 16px;
115 }
116
117 #source-indicator span {
118 -webkit-margin-end: 8px;
119 display: none;
120 }
121
122 #source-indicator:hover {
123 background-color: var(--paper-grey-700);
124 color: white;
125 }
126
127 #source-indicator:hover span {
128 display: block;
129 }
130
131 paper-button,
132 paper-toggle-button {
133 cursor: pointer;
134 }
135
136 #button-strip paper-button {
137 align-items: center;
138 display: flex;
139 margin: 4px;
140 min-height: 32px;
141 padding: 0 12px;
142 text-transform: uppercase;
143 }
144
145 #enable-toggle {
146 -webkit-margin-end: 16px;
147 }
148
149 .warning {
150 align-items: center;
151 display: flex;
152 font-size: 13px;
153 justify-content: space-between;
154 padding: 12px 16px;
155 }
156
157 .warning paper-button {
158 -webkit-margin-start: 12px;
159 align-items: center;
160 display: flex;
161 text-transform: uppercase;
162 }
163
164 .severe.warning {
165 background-color: var(--paper-red-50);
166 color: var(--paper-red-700);
167 }
168
169 .mild.warning {
170 background-color: var(--paper-yellow-50);
171 color: var(--paper-grey-600);
172 }
173
174 #blacklisted-warning:empty {
175 display: none;
176 }
177 </style>
18 <div id="card-wrapper" class$="[[computeClasses_(data.state)]]"> 178 <div id="card-wrapper" class$="[[computeClasses_(data.state)]]">
19 <div id="card"> 179 <div id="card">
20 <template is="dom-if" 180 <template is="dom-if"
21 if="[[computeSourceIndicatorIcon_(data.*)]]"> 181 if="[[computeSourceIndicatorIcon_(data.*)]]">
22 <div id="source-indicator"> 182 <div id="source-indicator">
23 <span>[[computeSourceIndicatorText_(data.*)]]</span> 183 <span>[[computeSourceIndicatorText_(data.*)]]</span>
24 <iron-icon icon="[[computeSourceIndicatorIcon_(data.*)]]"> 184 <iron-icon icon="[[computeSourceIndicatorIcon_(data.*)]]">
25 </iron-icon> 185 </iron-icon>
26 </div> 186 </div>
27 </template> 187 </template>
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 <paper-button id="repair-button" on-tap="onRepairTap_"> 236 <paper-button id="repair-button" on-tap="onRepairTap_">
77 $i18n{itemRepair} 237 $i18n{itemRepair}
78 </paper-button> 238 </paper-button>
79 </div> 239 </div>
80 <div id="blacklisted-warning" class="warning severe"><!-- No whitespace 240 <div id="blacklisted-warning" class="warning severe"><!-- No whitespace
81 -->[[data.blacklistText]]<!-- ... so we can use :empty in css 241 -->[[data.blacklistText]]<!-- ... so we can use :empty in css
82 --></div> 242 --></div>
83 </template> 243 </template>
84 </div> 244 </div>
85 </template> 245 </template>
86 <link rel="import" type="css" href="chrome://extensions/item.css">
87 <script src="chrome://extensions/item.js"></script> 246 <script src="chrome://extensions/item.js"></script>
88 </dom-module> 247 </dom-module>
OLDNEW
« no previous file with comments | « chrome/browser/resources/md_extensions/item.css ('k') | chrome/browser/resources/md_extensions/item_list.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698