oxedyne/daimond/ext/popup.html
3.1 KiB, 1 run
created by r2519314175:885, which is this file's identity for as long as the history lasts, whatever it is later renamed to
download · who wrote it · its history
| 1 | <!doctype html> |
| 2 | <html lang="en"> |
| 3 | <head> |
| 4 | <meta charset="utf-8"> |
| 5 | <title>Daimond Hands</title> |
| 6 | <link rel="icon" type="image/svg+xml" href="daimond_mark.svg"> |
| 7 | <style> |
| 8 | :root { color-scheme: light dark; } |
| 9 | body { |
| 10 | font: 14px/1.5 system-ui, sans-serif; |
| 11 | margin: 0; |
| 12 | padding: 16px; |
| 13 | width: 320px; |
| 14 | background: Canvas; |
| 15 | color: CanvasText; |
| 16 | } |
| 17 | h1 { font-size: 15px; margin: 0 0 2px; display: flex; align-items: center; gap: 7px; } |
| 18 | /* The mark's facets are pale, so it carries its own dark ground rather |
| 19 | than disappearing into a light palette. */ |
| 20 | .mark { |
| 21 | display: grid; |
| 22 | place-items: center; |
| 23 | flex: 0 0 auto; |
| 24 | width: 20px; |
| 25 | height: 20px; |
| 26 | border-radius: 5px; |
| 27 | background: #17181c; |
| 28 | } |
| 29 | .mark img { display: block; width: 14px; height: 14px; } |
| 30 | .ver { opacity: .6; font-size: 12px; margin-bottom: 12px; } |
| 31 | .mode { |
| 32 | padding: 10px 12px; |
| 33 | border-radius: 8px; |
| 34 | font-weight: 600; |
| 35 | margin-bottom: 12px; |
| 36 | border: 1px solid color-mix(in srgb, CanvasText 20%, transparent); |
| 37 | } |
| 38 | .mode.user { background: color-mix(in srgb, #e2b02b 22%, transparent); } |
| 39 | .mode.agent { background: color-mix(in srgb, #2f6fed 20%, transparent); } |
| 40 | .mode small { display: block; font-weight: 400; opacity: .8; margin-top: 3px; } |
| 41 | .url { font: 12px/1.4 ui-monospace, monospace; opacity: .75; word-break: break-all; margin-bottom: 14px; } |
| 42 | h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; opacity: .6; margin: 0 0 6px; } |
| 43 | ul { list-style: none; margin: 0; padding: 0; } |
| 44 | li { display: flex; align-items: center; gap: 8px; padding: 4px 0; font: 12px ui-monospace, monospace; } |
| 45 | li span { flex: 1; word-break: break-all; } |
| 46 | button { |
| 47 | font: inherit; |
| 48 | padding: 4px 8px; |
| 49 | border-radius: 6px; |
| 50 | border: 1px solid color-mix(in srgb, CanvasText 25%, transparent); |
| 51 | background: transparent; |
| 52 | color: inherit; |
| 53 | cursor: pointer; |
| 54 | } |
| 55 | #take, #mirror, #raise { width: 100%; padding: 9px; font-weight: 600; margin-bottom: 14px; } |
| 56 | .none { opacity: .6; font: 12px/1.4 system-ui, sans-serif; } |
| 57 | .ask { |
| 58 | padding: 10px 12px; |
| 59 | border-radius: 8px; |
| 60 | margin-bottom: 10px; |
| 61 | font-weight: 600; |
| 62 | background: color-mix(in srgb, #2f6fed 20%, transparent); |
| 63 | border: 1px solid color-mix(in srgb, CanvasText 20%, transparent); |
| 64 | } |
| 65 | .ask small { display: block; font-weight: 400; opacity: .82; margin-top: 3px; } |
| 66 | li small { flex: 0 0 auto; font: 11px system-ui, sans-serif; opacity: .6; } |
| 67 | </style> |
| 68 | </head> |
| 69 | <body> |
| 70 | <h1><span class="mark"><img src="daimond_mark.svg" alt="" width="14" height="14"></span>Daimond Hands</h1> |
| 71 | <div class="ver" id="ver"></div> |
| 72 | <div class="ask" id="ask" hidden></div> |
| 73 | <button id="raise" data-i18n="popup_raise" hidden>Show the approval window</button> |
| 74 | <div class="mode" id="mode">…</div> |
| 75 | <div class="url" id="url"></div> |
| 76 | <button id="take" data-i18n="popup_take" hidden>Hand the wheel back to Daimond</button> |
| 77 | <button id="mirror" data-i18n="popup_mirror" hidden>Allow the live view of the tab</button> |
| 78 | <h2 data-i18n="popup_granted_head">Sites you have allowed</h2> |
| 79 | <ul id="granted"></ul> |
| 80 | <script src="i18n.js"></script> |
| 81 | <script src="popup.js"></script> |
| 82 | </body> |
| 83 | </html> |