| 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://md-settings/certificate_manager_page/certifica
tes_browser_proxy.html"> | 2 <link rel="import" href="chrome://md-settings/certificate_manager_page/certifica
tes_browser_proxy.html"> |
| 3 <link rel="import" href="chrome://resources/cr_elements/cr_expand_button/cr_expa
nd_button.html"> | 3 <link rel="import" href="chrome://resources/cr_elements/cr_expand_button/cr_expa
nd_button.html"> |
| 4 <link rel="import" href="chrome://resources/polymer/v1_0/iron-dropdown/iron-drop
down.html"> | 4 <link rel="import" href="chrome://resources/polymer/v1_0/iron-dropdown/iron-drop
down.html"> |
| 5 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icons/iron-icons.h
tml"> | 5 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icons/iron-icons.h
tml"> |
| 6 <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-icon-button/paper
-icon-button.html"> |
| 7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-item/paper-item.h
tml"> | 7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-item/paper-item.h
tml"> |
| 8 <link rel="import" href="chrome://md-settings/settings_shared_css.html"> | 8 <link rel="import" href="chrome://md-settings/settings_shared_css.html"> |
| 9 | 9 |
| 10 <dom-module id="settings-certificate-subentry"> | 10 <dom-module id="settings-certificate-subentry"> |
| 11 <template> | 11 <template> |
| 12 <style include="settings-shared"> | 12 <style include="settings-shared"> |
| 13 .dropdown-content { | 13 .dropdown-content { |
| 14 background: white; | 14 background: white; |
| 15 /* TODO(dpapad): Use a CSS variable for box-shadow and unify with other | 15 /* TODO(dpapad): Use a CSS variable for box-shadow and unify with other |
| 16 * such menus (like in search engines section) */ | 16 * such menus (like in search engines section) */ |
| 17 box-shadow: 0 2px 6px grey; | 17 box-shadow: 0 2px 6px grey; |
| 18 } | 18 } |
| 19 | 19 |
| 20 .container { | |
| 21 display: flex; | |
| 22 line-height: 30px; | |
| 23 } | |
| 24 | |
| 25 .name { | 20 .name { |
| 26 flex: auto; | 21 flex: auto; |
| 27 margin: auto; | 22 } |
| 23 |
| 24 .untrusted { |
| 25 color: var(--settings-error-color); |
| 26 font-weight: 500; |
| 27 text-transform: uppercase; |
| 28 -webkit-margin-end: 16px; |
| 28 } | 29 } |
| 29 | 30 |
| 30 paper-item:hover { | 31 paper-item:hover { |
| 31 background-color: var(--google-grey-300); | 32 background-color: var(--settings-hover-color); |
| 32 } | 33 } |
| 33 </style> | 34 </style> |
| 34 <div class="container"> | 35 <div class="list-item underbar"> |
| 35 <paper-icon-button icon="image:brightness-1"></paper-icon-button> | 36 <div class="untrusted" hidden$="[[!model.untrusted]]"> |
| 37 $i18n{certificateManagerUntrusted} |
| 38 </div> |
| 36 <div class="name">[[model.name]]</div> | 39 <div class="name">[[model.name]]</div> |
| 37 <paper-icon-button id="dots" icon="more-vert" toggles | 40 <paper-icon-button id="dots" icon="more-vert" toggles |
| 38 active="{{menuOpened}}"></paper-icon-button> | 41 active="{{menuOpened}}"></paper-icon-button> |
| 39 <!-- TODO(dpapad): Figure out RTL for this menu --> | 42 <!-- TODO(dpapad): Figure out RTL for this menu --> |
| 40 <template is="dom-if" if="[[menuOpened]]"> | 43 <template is="dom-if" if="[[menuOpened]]"> |
| 41 <iron-dropdown vertical-align="top" horizontal-align="right" | 44 <iron-dropdown vertical-align="top" horizontal-align="right" |
| 42 opened="{{menuOpened}}"> | 45 opened="{{menuOpened}}"> |
| 43 <div class="dropdown-content"> | 46 <div class="dropdown-content"> |
| 44 <paper-item id="view" on-tap="onViewTap_"> | 47 <paper-item id="view" on-tap="onViewTap_"> |
| 45 $i18n{certificateManagerView} | 48 $i18n{certificateManagerView} |
| (...skipping 13 matching lines...) Expand all Loading... |
| 59 on-tap="onDeleteTap_"> | 62 on-tap="onDeleteTap_"> |
| 60 $i18n{certificateManagerDelete} | 63 $i18n{certificateManagerDelete} |
| 61 </paper-item> | 64 </paper-item> |
| 62 </div> | 65 </div> |
| 63 </iron-dropdown> | 66 </iron-dropdown> |
| 64 </template> | 67 </template> |
| 65 <div> | 68 <div> |
| 66 </template> | 69 </template> |
| 67 <script src="certificate_subentry.js"></script> | 70 <script src="certificate_subentry.js"></script> |
| 68 </dom-module> | 71 </dom-module> |
| OLD | NEW |