|
6 | 6 | <meta charset="utf-8" />
|
7 | 7 | <meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
8 | 8 | <meta http-equiv="Content-Security-Policy"
|
9 |
| - content="style-src 'self' 'nonce-${nonce}' 'nonce-ideNonce' https://fonts.googleapis.com; |
10 |
| - script-src 'nonce-${nonce}' https://fonts.googleapis.com; |
11 |
| - font-src 'self' https://fonts.gstatic.com;" /> |
| 9 | + content="style-src 'self' 'nonce-${nonce}' 'nonce-ideNonce' https://fonts.googleapis.com; |
| 10 | + script-src 'nonce-${nonce}' https://fonts.googleapis.com; |
| 11 | + font-src 'self' https://fonts.gstatic.com;" /> |
12 | 12 | <style nonce=${nonce}>
|
13 |
| - @import url('https://fonts.googleapis.com/css2?family=Inter&display=swap'); |
| 13 | + @import url('https://fonts.googleapis.com/css2?family=Inter&display=swap'); |
14 | 14 |
|
15 |
| - :root { |
16 |
| - font-size: var(--main-font-size); |
17 |
| - --default-font: "SF Pro Text", "Segoe UI", "Ubuntu", Geneva, Verdana, Tahoma, sans-serif; |
18 |
| - --ide-background-color: var(--vscode-sideBar-background); |
19 |
| - --text-color: var(--vscode-foreground); |
20 |
| - --input-border: var(--vscode-input-border); |
21 |
| - } |
22 |
| - p { font-size:1.3rem; margin: .8rem 0; } |
23 |
| - hr { margin: 2rem 0; } |
24 |
| - body { background-color:var(--ide-background-color); color: var(--text-color); font-family: var(--default-font); } |
25 |
| - .snx-loader { display:inline-block; width: 12px; height: 12px; border: 2px solid rgba(125,125,125,.65); border-bottom-color: transparent; border-radius: 50%; margin-right:.8rem; animation: spin 1s linear infinite; |
| 15 | + :root { |
| 16 | + font-size: var(--main-font-size); |
| 17 | + --default-font: "SF Pro Text", "Segoe UI", "Ubuntu", Geneva, Verdana, Tahoma, sans-serif; |
| 18 | + --ide-background-color: var(--vscode-sideBar-background); |
| 19 | + --text-color: var(--vscode-foreground); |
| 20 | + --input-border: var(--vscode-input-border); |
26 | 21 | }
|
27 |
| - .size-s { width: 12px; height: 12px; border-width:2px } |
| 22 | + p { font-size:1.3rem; margin: .8rem 0; } |
| 23 | + hr { margin: 2rem 0; } |
| 24 | + body { background-color:var(--ide-background-color); color: var(--text-color); font-family: var(--default-font); } |
28 | 25 |
|
| 26 | + .snx-loader { flex: none; display: inline-block; width: 10px; height: 10px; border: 2px solid rgba(125,125,125,.65); border-bottom-color: transparent; border-radius: 50%; margin-right:.8rem; animation: spin 1s linear infinite; } |
29 | 27 | @keyframes spin {
|
30 | 28 | from { transform: rotate(0deg); }
|
31 | 29 | to { transform: rotate(360deg); }
|
|
36 | 34 | .snx-status { display:flex; align-items:center; padding: .4rem 1.2rem; background-color: rgba(255,255,255,.1); border-radius: 1rem; }
|
37 | 35 |
|
38 | 36 | .snx-header { display: flex; gap:1.6rem; }
|
39 |
| - .snx-message { display: flex; align-items: center } |
| 37 | + .snx-status .snx-message { display: flex; align-items: center } |
40 | 38 | </style>
|
41 | 39 | ${ideStyle}
|
42 | 40 | </head>
|
43 | 41 | <body>
|
44 |
| - |
45 | 42 | <div class="snx-header">
|
46 | 43 | <h1 class="snx-title snx-h1">Snyk Security is loading...</h1>
|
47 | 44 | </div>
|
48 | 45 | <div class="snx-summary">
|
49 | 46 | <div class="snx-status">
|
50 |
| - <span class="snx-loader size-s"></span> |
| 47 | + <span class="snx-loader"></span> |
51 | 48 | <p class="snx-message">Waiting for the Snyk CLI to be downloaded and the Language Server to be initialized. </p>
|
52 | 49 | </div>
|
53 | 50 | </div>
|
|
0 commit comments