|
21 | 21 | <meta charset="utf-8" />
|
22 | 22 | <meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
23 | 23 | <meta http-equiv="Content-Security-Policy"
|
24 |
| - content="default-src 'none'; style-src 'self' 'nonce-${nonce}'; script-src 'nonce-${nonce}';" /> |
| 24 | + content="style-src 'self' 'nonce-${nonce}' 'nonce-ideNonce' https://fonts.googleapis.com; |
| 25 | + script-src 'nonce-${nonce}' https://fonts.googleapis.com; |
| 26 | + font-src 'self' https://fonts.gstatic.com;" /> |
25 | 27 |
|
26 | 28 | <style nonce="${nonce}">
|
| 29 | + @import url('https://fonts.googleapis.com/css2?family=Inter&display=swap'); |
27 | 30 | :root {
|
28 |
| - --default-font: ui-sans-serif, "SF Pro Text", "Segoe UI", "Ubuntu", Geneva, Verdana, Tahoma, sans-serif; |
| 31 | + --default-font: "SF Pro Text", "Segoe UI", "Ubuntu", Geneva, Verdana, Tahoma, sans-serif; |
| 32 | + --background-color: var(); |
| 33 | + --text-color: var(); |
| 34 | + --link-color: var(); |
| 35 | + --scroll-bar-hover-background-color: #595a5c; |
| 36 | + --horizontal-border-color: var(); |
| 37 | + --code-background-color: var(--vscode-editor-background); |
| 38 | + --tab-active-background-color: var(--vscode-tab-activeBackground); |
| 39 | + } |
| 40 | + |
| 41 | + section { |
| 42 | + padding: 20px; |
29 | 43 | }
|
30 | 44 |
|
31 | 45 | ::-webkit-scrollbar {
|
|
37 | 51 | }
|
38 | 52 |
|
39 | 53 | ::-webkit-scrollbar-thumb:hover {
|
40 |
| - background: #595a5c; |
| 54 | + background: var(--scroll-bar-hover-background-color); |
41 | 55 | }
|
42 | 56 |
|
43 | 57 | *,
|
|
46 | 60 | box-sizing: border-box;
|
47 | 61 | }
|
48 | 62 |
|
| 63 | + a, .link { |
| 64 | + color: var(--link-color); |
| 65 | + cursor: pointer; |
| 66 | + text-decoration: none; |
| 67 | + } |
| 68 | + |
49 | 69 | body {
|
| 70 | + background-color: var(--background-color); |
50 | 71 | font-family: var(--default-font);
|
| 72 | + font-size: 0.8rem; |
| 73 | + font-weight: 400; |
| 74 | + color: var(--text-color); |
51 | 75 | overflow-y: auto;
|
52 | 76 | overflow-x: hidden;
|
53 | 77 | }
|
54 | 78 |
|
55 | 79 | h2 {
|
56 |
| - font-weight: 600; |
57 |
| - margin-bottom: 10px; |
| 80 | + margin: initial; |
| 81 | + } |
| 82 | + |
| 83 | + h2, h3 { |
| 84 | + font-size: 1rem; |
| 85 | + margin-block-start: 0; |
| 86 | + margin-block-end: 0.4rem; |
| 87 | + font-weight: 700; |
58 | 88 | }
|
59 | 89 |
|
60 | 90 | main {
|
|
77 | 107 | .panel-header {
|
78 | 108 | display: flex;
|
79 | 109 | flex-direction: column;
|
| 110 | + background-image: linear-gradient(0, transparent, var(--vscode-tab-activeBackground)); |
| 111 | + margin: inherit; |
80 | 112 | }
|
81 | 113 |
|
82 | 114 | .code-issue-panel {
|
|
90 | 122 | .ai-fix-header,
|
91 | 123 | .overview-text>h2 {
|
92 | 124 | line-height: 1.25rem;
|
93 |
| - font-size: 1.2rem; |
| 125 | + font-size: 1rem; |
94 | 126 | margin-bottom: 10px;
|
95 | 127 | }
|
96 | 128 |
|
97 | 129 | .severity-title {
|
98 | 130 | padding-left: 8px;
|
| 131 | + font-size: 1.4rem; |
99 | 132 | }
|
100 | 133 |
|
101 | 134 | .severity-container {
|
102 | 135 | display: flex;
|
103 | 136 | flex-direction: row;
|
104 | 137 | align-items: center;
|
105 |
| - margin-bottom: 3px; |
| 138 | + padding-bottom: 20px; |
| 139 | + padding-top: 20px; |
106 | 140 | }
|
107 | 141 |
|
108 | 142 | .severity-type-container {
|
109 | 143 | display: flex;
|
110 | 144 | flex-direction: row;
|
111 | 145 | align-items: center;
|
112 |
| - margin-bottom: 1em; |
113 |
| - line-height: 1em; |
| 146 | + margin-bottom: 1rem; |
| 147 | + line-height: 1rem; |
| 148 | + font-size: 1rem; |
114 | 149 | }
|
115 | 150 |
|
116 | 151 | .lesson-container {
|
|
183 | 218 | border: 1px solid #E27122;
|
184 | 219 | }
|
185 | 220 |
|
| 221 | + .example { |
| 222 | + background-color: var(--code-background-color); |
| 223 | + } |
| 224 | + |
186 | 225 | .data-flow-file {
|
187 | 226 | font-weight: bold;
|
188 |
| - font-size: 1em; |
189 | 227 | display: flex;
|
190 | 228 | align-items: center;
|
191 | 229 | margin-top: 5px;
|
|
202 | 240 | }
|
203 | 241 |
|
204 | 242 | .data-flow-table {
|
| 243 | + background-color: var(--code-background-color); |
205 | 244 | margin-top: 5px;
|
206 | 245 | margin-left: 15px;
|
207 | 246 | }
|
|
235 | 274 | word-break: break-all;
|
236 | 275 | }
|
237 | 276 |
|
| 277 | + code { |
| 278 | + background-color: var(--code-background-color); |
| 279 | + } |
| 280 | + |
238 | 281 | .data-flow-text code {
|
239 |
| - background: none; |
240 |
| - background-color: transparent; |
| 282 | + background: transparent none; |
241 | 283 | }
|
242 | 284 |
|
243 | 285 | .data-flow-delimiter {
|
@@ -762,7 +804,7 @@ <h2 class="severity-title">{{.IssueTitle}}</h2>
|
762 | 804 | </span>
|
763 | 805 | {{if .IssueOverview}}
|
764 | 806 | <span data-tab="vuln-overview" id="vuln-overview-tab" class="tab-item sn-vuln-overview vuln-overview-tab">
|
765 |
| - Vulnerability Overview |
| 807 | + Issue Overview |
766 | 808 | </span>
|
767 | 809 | {{end}}
|
768 | 810 | </div>
|
|
0 commit comments