|
| 1 | +/*--------------------------------------------------------------------------------------------- |
| 2 | + * Copyright (c) Microsoft Corporation. All rights reserved. |
| 3 | + * Licensed under the MIT License. See License.txt in the project root for license information. |
| 4 | + *--------------------------------------------------------------------------------------------*/ |
| 5 | + |
| 6 | +html, body { |
| 7 | + width: 100%; |
| 8 | + height: 100%; |
| 9 | + text-align: center; |
| 10 | +} |
| 11 | + |
| 12 | +body img { |
| 13 | + max-width: none; |
| 14 | + max-height: none; |
| 15 | +} |
| 16 | + |
| 17 | +.container:focus { |
| 18 | + outline: none !important; |
| 19 | +} |
| 20 | + |
| 21 | +.container { |
| 22 | + padding: 5px 0 0 10px; |
| 23 | + box-sizing: border-box; |
| 24 | + -webkit-user-select: none; |
| 25 | + user-select: none; |
| 26 | +} |
| 27 | + |
| 28 | +.container.image { |
| 29 | + padding: 0; |
| 30 | + display: flex; |
| 31 | + box-sizing: border-box; |
| 32 | +} |
| 33 | + |
| 34 | +.container.image img { |
| 35 | + padding: 0; |
| 36 | + background-position: 0 0, 8px 8px; |
| 37 | + background-size: 16px 16px; |
| 38 | + border: 1px solid var(--vscode-imagePreview-border); |
| 39 | +} |
| 40 | + |
| 41 | +.container.image img { |
| 42 | + background-image: |
| 43 | + linear-gradient(45deg, rgb(230, 230, 230) 25%, transparent 25%, transparent 75%, rgb(230, 230, 230) 75%, rgb(230, 230, 230)), |
| 44 | + linear-gradient(45deg, rgb(230, 230, 230) 25%, transparent 25%, transparent 75%, rgb(230, 230, 230) 75%, rgb(230, 230, 230)); |
| 45 | +} |
| 46 | + |
| 47 | +.vscode-dark.container.image img { |
| 48 | + background-image: |
| 49 | + linear-gradient(45deg, rgb(20, 20, 20) 25%, transparent 25%, transparent 75%, rgb(20, 20, 20) 75%, rgb(20, 20, 20)), |
| 50 | + linear-gradient(45deg, rgb(20, 20, 20) 25%, transparent 25%, transparent 75%, rgb(20, 20, 20) 75%, rgb(20, 20, 20)); |
| 51 | +} |
| 52 | + |
| 53 | +.container img.pixelated { |
| 54 | + image-rendering: pixelated; |
| 55 | +} |
| 56 | + |
| 57 | +.container img.scale-to-fit { |
| 58 | + max-width: calc(100% - 20px); |
| 59 | + max-height: calc(100% - 20px); |
| 60 | + object-fit: contain; |
| 61 | +} |
| 62 | + |
| 63 | +.container img { |
| 64 | + margin: auto; |
| 65 | +} |
| 66 | + |
| 67 | +.container.ready.zoom-in { |
| 68 | + cursor: zoom-in; |
| 69 | +} |
| 70 | + |
| 71 | +.container.ready.zoom-out { |
| 72 | + cursor: zoom-out; |
| 73 | +} |
| 74 | + |
| 75 | +.container .embedded-link, |
| 76 | +.container .embedded-link:hover { |
| 77 | + cursor: pointer; |
| 78 | + text-decoration: underline; |
| 79 | + margin-left: 5px; |
| 80 | +} |
| 81 | + |
| 82 | +.container.loading, |
| 83 | +.container.error { |
| 84 | + display: flex; |
| 85 | + justify-content: center; |
| 86 | + align-items: center; |
| 87 | +} |
| 88 | + |
| 89 | +.loading-indicator { |
| 90 | + width: 30px; |
| 91 | + height: 30px; |
| 92 | + background-image: url('./loading.svg'); |
| 93 | + background-size: cover; |
| 94 | +} |
| 95 | + |
| 96 | +.loading-indicator, |
| 97 | +.image-load-error { |
| 98 | + display: none; |
| 99 | +} |
| 100 | + |
| 101 | +.loading .loading-indicator, |
| 102 | +.error .image-load-error { |
| 103 | + display: block; |
| 104 | +} |
| 105 | + |
| 106 | +.image-load-error { |
| 107 | + margin: 1em; |
| 108 | +} |
| 109 | + |
| 110 | +.vscode-dark .loading-indicator { |
| 111 | + background-image: url('./loading-dark.svg'); |
| 112 | +} |
| 113 | + |
| 114 | +.vscode-high-contrast .loading-indicator { |
| 115 | + background-image: url('./loading-hc.svg'); |
| 116 | +} |
0 commit comments