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="/printing_page/cups_add_printer_dialog.html"> | 2 <link rel="import" href="/printing_page/cups_add_printer_dialog.html"> |
| 3 <link rel="import" href="/printing_page/cups_printers_list.html"> | 3 <link rel="import" href="/printing_page/cups_printers_list.html"> |
| 4 <link rel="import" href="/settings_shared_css.html"> | 4 <link rel="import" href="/settings_shared_css.html"> |
| 5 | 5 |
| 6 <dom-module id="settings-cups-printers"> | 6 <dom-module id="settings-cups-printers"> |
| 7 <template> | 7 <template> |
| 8 <style include="settings-shared"> | 8 <style include="settings-shared"> |
| 9 a[is='action-link'] { | 9 a[is='action-link'] { |
| 10 display: inline-block; | 10 display: inline-block; |
| 11 text-decoration: none; | 11 text-decoration: none; |
| 12 } | 12 } |
| 13 | 13 |
| 14 a[is='action-link']:hover { | 14 a[is='action-link']:hover { |
| 15 color: blue; | 15 color: blue; |
| 16 text-decoration: underline; | 16 text-decoration: underline; |
| 17 } | 17 } |
| 18 | |
| 19 .message { | |
| 20 background-color: black; | |
| 21 color: white; | |
| 22 font: 13px; | |
| 23 left: 150px; | |
|
michaelpg
2016/09/20 20:58:42
you'll need to make this work in RTL, e.g.:
.mess
xdai1
2016/09/21 17:40:19
I could not test the exact string since it hasn't
michaelpg
2016/09/21 19:13:23
So the rectangle is centered horizontally at any w
xdai1
2016/09/21 23:16:16
No, it's not... It's always centered horizontally
| |
| 24 padding-bottom: 15px; | |
| 25 padding-top: 15px; | |
| 26 position: absolute; | |
| 27 text-align: center; | |
| 28 top: 550px; | |
| 29 width: 350px; | |
| 30 } | |
| 18 </style> | 31 </style> |
| 19 | 32 |
| 20 <div class="settings-box first"> | 33 <div class="settings-box first"> |
| 21 <a is="action-link" on-tap="onAddPrinterTap_" actionable> | 34 <a is="action-link" on-tap="onAddPrinterTap_" actionable> |
| 22 $i18n{addCupsPrinter} | 35 $i18n{addCupsPrinter} |
| 23 </a> | 36 </a> |
| 24 </div> | 37 </div> |
| 25 | 38 |
| 26 <settings-cups-add-printer-dialog id="addPrinterDialog"> | 39 <settings-cups-add-printer-dialog id="addPrinterDialog"> |
| 27 </settings-cups-add-printer-dialog> | 40 </settings-cups-add-printer-dialog> |
| 28 | 41 |
| 29 <settings-cups-printers-list printers="{{printers}}" | 42 <settings-cups-printers-list printers="{{printers}}" |
| 30 search-term="[[searchTerm]]"> | 43 search-term="[[searchTerm]]"> |
| 31 </settings-cups-printers-list> | 44 </settings-cups-printers-list> |
| 45 | |
| 46 <div class="message" id="addPrinterMessage" hidden> | |
| 47 $i18n{printerAddedSuccessfulMessage} | |
| 48 </div> | |
| 32 </template> | 49 </template> |
| 33 <script src="cups_printers.js"></script> | 50 <script src="cups_printers.js"></script> |
| 34 </dom-module> | 51 </dom-module> |
| OLD | NEW |