|
| 1 | +/* Copyright 2024 The Chromium Authors and Alex313031 |
| 2 | + * Use of this source code is governed by a BSD-style license that can be |
| 3 | + * found in the LICENSE file. */ |
| 4 | + |
| 5 | +html { |
| 6 | + --google-grey-200-rgb: 232, 234, 237; |
| 7 | + --google-grey-200: rgb(var(--google-grey-200-rgb)); |
| 8 | + --google-grey-900-rgb: 32, 33, 36; |
| 9 | + --google-grey-900: rgb(var(--google-grey-900-rgb)); |
| 10 | + --primary-color: var(--google-grey-900); |
| 11 | + --active-background-color: rgba(var(--google-grey-900-rgb), .16); |
| 12 | + --hover-background-color: rgba(var(--google-grey-900-rgb), .1); |
| 13 | + --background-color: white; |
| 14 | + background: var(--background-color); |
| 15 | +} |
| 16 | + |
| 17 | +@media (prefers-color-scheme: dark) { |
| 18 | + html { |
| 19 | + --primary-color: var(--google-grey-200); |
| 20 | + --active-background-color: rgba(var(--google-grey-200-rgb), .16); |
| 21 | + --hover-background-color: rgba(var(--google-grey-200-rgb), .1); |
| 22 | + --background-color: var(--google-grey-900); |
| 23 | + background: var(--background-color); |
| 24 | + } |
| 25 | +} |
| 26 | + |
| 27 | +body { |
| 28 | + color: var(--primary-color); |
| 29 | + font-size: 100%; |
| 30 | + margin: 0; |
| 31 | +} |
| 32 | + |
| 33 | +#outer { |
| 34 | + margin-inline-end: auto; |
| 35 | + margin-inline-start: auto; |
| 36 | + margin-top: 10px; |
| 37 | + min-width: 800px; |
| 38 | + width: 60%; |
| 39 | +} |
| 40 | + |
| 41 | +#inner { |
| 42 | + padding-top: 10px; |
| 43 | + word-break: break-word; |
| 44 | +} |
| 45 | + |
| 46 | +.label { |
| 47 | + font-size: 0.9em; |
| 48 | + font-weight: bold; |
| 49 | + padding-inline-end: 5px; |
| 50 | + text-align: end; |
| 51 | + vertical-align: top; |
| 52 | + white-space: nowrap; |
| 53 | +} |
| 54 | + |
| 55 | +.label::after { |
| 56 | + content: ':'; |
| 57 | +} |
| 58 | + |
| 59 | +#logo { |
| 60 | + float: right; |
| 61 | + margin-inline-start: 40px; |
| 62 | + text-align: end; |
| 63 | + width: 256px; |
| 64 | +} |
| 65 | + |
| 66 | +#company { |
| 67 | + font-size: 0.7em; |
| 68 | + text-align: end; |
| 69 | +} |
| 70 | + |
| 71 | +#copyright { |
| 72 | + font-size: 0.7em; |
| 73 | + text-align: end; |
| 74 | +} |
| 75 | + |
| 76 | +#useragent { |
| 77 | + font-family: monospace; |
| 78 | +} |
| 79 | + |
| 80 | +.version { |
| 81 | + font-family: monospace; |
| 82 | + max-width: 430px; |
| 83 | + padding-inline-start: 5px; |
| 84 | + vertical-align: bottom; |
| 85 | +} |
| 86 | + |
| 87 | +.version-wide { |
| 88 | + font-family: monospace; |
| 89 | + max-width: auto; |
| 90 | + padding-inline-start: 5px; |
| 91 | + vertical-align: bottom; |
| 92 | +} |
| 93 | + |
| 94 | +#copy-to-clipboard, |
| 95 | +#copy-os-content-to-clipboard { |
| 96 | + background-color: var(--background-color); |
| 97 | + border: none; |
| 98 | + border-radius: 2px; |
| 99 | + cursor: pointer; |
| 100 | +} |
| 101 | + |
| 102 | +#copy-to-clipboard-icon { |
| 103 | + -webkit-mask-image: url(chrome://resources/images/icon_copy_content.svg); |
| 104 | + -webkit-mask-size: cover; |
| 105 | + background: none; |
| 106 | + background-color: var(--primary-color); |
| 107 | + display: inline-block; |
| 108 | + height: 1em; |
| 109 | + padding: 0; |
| 110 | + position: relative; |
| 111 | + top: .2em; |
| 112 | + width: 1em; |
| 113 | +} |
| 114 | + |
| 115 | +@media (forced-colors: active) { |
| 116 | + #copy-to-clipboard-icon { |
| 117 | + background-color: ButtonText; |
| 118 | + } |
| 119 | +} |
| 120 | + |
| 121 | +#copy-to-clipboard:hover, |
| 122 | +#copy-os-content-to-clipboard:hover { |
| 123 | + background-color: var(--hover-background-color); |
| 124 | +} |
| 125 | + |
| 126 | +#copy-to-clipboard:active, |
| 127 | +#copy-os-content-to-clipboard:active { |
| 128 | + background-color: var(--active-background-color); |
| 129 | +} |
| 130 | + |
| 131 | +#messages { |
| 132 | + clip: rect(0 0 0 0); |
| 133 | + height: 1px; |
| 134 | + overflow: hidden; |
| 135 | + position: fixed; |
| 136 | + width: 1px; |
| 137 | +} |
0 commit comments