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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* Copyright (c) 2015-2019, Chandan B.N
|
2 |
+
* All rights reserved.
|
3 |
+
*
|
4 |
+
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
|
5 |
+
* following conditions are met:
|
6 |
+
* 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following
|
7 |
+
* disclaimer.
|
8 |
+
* 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
|
9 |
+
* following disclaimer in the documentation and/or other materials provided with the distribution.
|
10 |
+
* 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote
|
11 |
+
* products derived from this software without specific prior written permission.
|
12 |
+
*
|
13 |
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
14 |
+
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
15 |
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
16 |
+
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
17 |
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
18 |
+
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
19 |
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
20 |
+
*/
|
21 |
+
|
22 |
+
.cvssjs i {
|
23 |
+
width: 1em;
|
24 |
+
height: 1em;
|
25 |
+
display: inline-block;
|
26 |
+
background: url("cvssicons.png") 0 0 no-repeat;
|
27 |
+
vertical-align: middle;
|
28 |
+
background-size: cover;
|
29 |
+
margin-right: 4px;
|
30 |
+
margin: 2px;
|
31 |
+
font-size: 40px;
|
32 |
+
}
|
33 |
+
|
34 |
+
.cvssjs i.AVN {
|
35 |
+
background-position: -3em 0;
|
36 |
+
}
|
37 |
+
|
38 |
+
.cvssjs i.AVA {
|
39 |
+
background-position: -2em 0;
|
40 |
+
}
|
41 |
+
|
42 |
+
.cvssjs i.AVL {
|
43 |
+
background-position: -1em 0;
|
44 |
+
}
|
45 |
+
|
46 |
+
.cvssjs i.AVP {
|
47 |
+
background-position: 0 0;
|
48 |
+
}
|
49 |
+
|
50 |
+
.cvssjs i.ACL {
|
51 |
+
background-position: -4em 0;
|
52 |
+
}
|
53 |
+
|
54 |
+
.cvssjs i.ACH {
|
55 |
+
background-position: -5em 0;
|
56 |
+
}
|
57 |
+
|
58 |
+
.cvssjs i.PRN {
|
59 |
+
background-position: -6em 0;
|
60 |
+
}
|
61 |
+
|
62 |
+
.cvssjs i.PRL {
|
63 |
+
background-position: -7em 0;
|
64 |
+
}
|
65 |
+
|
66 |
+
.cvssjs i.PRH {
|
67 |
+
background-position: -8em 0;
|
68 |
+
}
|
69 |
+
|
70 |
+
.cvssjs i.UIN {
|
71 |
+
background-position: -10em 0;
|
72 |
+
}
|
73 |
+
|
74 |
+
.cvssjs i.UIR {
|
75 |
+
background-position: -9em 0;
|
76 |
+
}
|
77 |
+
|
78 |
+
.cvssjs i.SC {
|
79 |
+
background-position: -11em 0;
|
80 |
+
}
|
81 |
+
|
82 |
+
.cvssjs i.SU {
|
83 |
+
background-position: -10em 0;
|
84 |
+
}
|
85 |
+
|
86 |
+
.cvssjs i.CH {
|
87 |
+
background-position: -14em 0;
|
88 |
+
}
|
89 |
+
|
90 |
+
.cvssjs i.CL {
|
91 |
+
background-position: -13em 0;
|
92 |
+
}
|
93 |
+
|
94 |
+
.cvssjs i.CN {
|
95 |
+
background-position: -12em 0;
|
96 |
+
}
|
97 |
+
|
98 |
+
.cvssjs i.IH {
|
99 |
+
background-position: -16em 0;
|
100 |
+
}
|
101 |
+
|
102 |
+
.cvssjs i.IL {
|
103 |
+
background-position: -17em 0;
|
104 |
+
}
|
105 |
+
|
106 |
+
.cvssjs i.IN {
|
107 |
+
background-position: -15em 0;
|
108 |
+
}
|
109 |
+
|
110 |
+
.cvssjs i.AH {
|
111 |
+
background-position: -20em 0;
|
112 |
+
}
|
113 |
+
|
114 |
+
.cvssjs i.AL {
|
115 |
+
background-position: -19em 0;
|
116 |
+
}
|
117 |
+
|
118 |
+
.cvssjs i.AN {
|
119 |
+
background-position: -18em 0;
|
120 |
+
}
|
121 |
+
|
122 |
+
.cvssjs a {
|
123 |
+
color: #489;
|
124 |
+
text-decoration: none;
|
125 |
+
}
|
126 |
+
|
127 |
+
.cvssjs dl {
|
128 |
+
display: inline-block;
|
129 |
+
vertical-align: top;
|
130 |
+
background-color: #424a40;
|
131 |
+
margin-top: 2px;
|
132 |
+
margin-bottom: 2px;
|
133 |
+
margin: 2px;
|
134 |
+
border-radius: 4px;
|
135 |
+
box-shadow: 0px 0px 5px #bbb;
|
136 |
+
transition: background-color 0.3s ease-in-out;
|
137 |
+
}
|
138 |
+
.cvssjs dt {
|
139 |
+
color: #EEEEEE;
|
140 |
+
padding: 5px;
|
141 |
+
font-size: 60%;
|
142 |
+
overflow-x: hidden;
|
143 |
+
text-transform: uppercase;
|
144 |
+
letter-spacing: .5px;
|
145 |
+
}
|
146 |
+
.cvssjs dl:hover, .cvssjs dl:focus {
|
147 |
+
background-color: #676a60;
|
148 |
+
box-shadow: 0px 0px 5px #aaa;
|
149 |
+
}
|
150 |
+
.cvssjs dl:hover dt, .cvssjs dl:focus dt {
|
151 |
+
color: #ffffff;
|
152 |
+
}
|
153 |
+
.cvssjs dd {
|
154 |
+
margin: 0px;
|
155 |
+
padding: 0px;
|
156 |
+
text-align: left;
|
157 |
+
}
|
158 |
+
|
159 |
+
.cvssjs dd label,
|
160 |
+
#predef span {
|
161 |
+
min-width: 7.5em;
|
162 |
+
padding: 0px 2px 0px 2px;
|
163 |
+
display: block;
|
164 |
+
margin: 1px;
|
165 |
+
margin-top: 0px;
|
166 |
+
background-color: #f7f7f4;
|
167 |
+
vertical-align: middle;
|
168 |
+
transition: background-color 0.3s ease-in-out;
|
169 |
+
}
|
170 |
+
|
171 |
+
.cvssjs dd:last-child label,
|
172 |
+
#predef span:last-child {
|
173 |
+
border-bottom-left-radius: 3px;
|
174 |
+
border-bottom-right-radius: 3px;
|
175 |
+
}
|
176 |
+
|
177 |
+
.cvssjs dd small {
|
178 |
+
display: none;
|
179 |
+
}
|
180 |
+
|
181 |
+
.cvssjs dd:hover small {
|
182 |
+
position: absolute;
|
183 |
+
max-width: 220px;
|
184 |
+
border: solid 1px #333;
|
185 |
+
display: block;
|
186 |
+
color: black;
|
187 |
+
background-color: #FFFFC1;
|
188 |
+
border-radius: 5px;
|
189 |
+
padding: 5px;
|
190 |
+
margin-top: .7em;
|
191 |
+
margin-left: 5em;
|
192 |
+
box-shadow: 2px 2px 5px #333;
|
193 |
+
z-index: 1;
|
194 |
+
}
|
195 |
+
|
196 |
+
#predef span:hover:before {
|
197 |
+
content: "<";
|
198 |
+
display: block;
|
199 |
+
position: absolute;
|
200 |
+
margin-top: 0px;
|
201 |
+
margin-left: -2px;
|
202 |
+
color: #424a40;
|
203 |
+
}
|
204 |
+
|
205 |
+
.cvssjs dd > input {
|
206 |
+
border: 0;
|
207 |
+
clip: rect(0 0 0 0);
|
208 |
+
height: 1px;
|
209 |
+
margin: -1px;
|
210 |
+
overflow: hidden;
|
211 |
+
padding: 0;
|
212 |
+
position: absolute;
|
213 |
+
width: 1px;
|
214 |
+
}
|
215 |
+
|
216 |
+
.cvssjs dd:nth-child(2) input:checked + label,
|
217 |
+
.cvssjs .Critical {
|
218 |
+
background-color: rgb(240, 130, 120);
|
219 |
+
}
|
220 |
+
|
221 |
+
.cvssjs dd input:checked + label,
|
222 |
+
.cvssjs .High {
|
223 |
+
background-color: rgb(240, 170, 83);
|
224 |
+
transition: background-color 0.1s ease-in-out;
|
225 |
+
}
|
226 |
+
|
227 |
+
.cvssjs dd:last-child input:checked + label,
|
228 |
+
.cvssjs dl.AV dd:nth-child(4) input:checked + label,
|
229 |
+
.cvssjs .Medium {
|
230 |
+
background-color: rgb(250, 230, 120);
|
231 |
+
}
|
232 |
+
|
233 |
+
.cvssjs .Low {
|
234 |
+
background-color: rgb(208, 212, 134)
|
235 |
+
}
|
236 |
+
|
237 |
+
.cvssjs dl.C dd:last-child input:checked + label,
|
238 |
+
.cvssjs dl.I dd:last-child input:checked + label,
|
239 |
+
.cvssjs dl.A dd:last-child input:checked + label,
|
240 |
+
.cvssjs .None {
|
241 |
+
background-color: rgb(162, 213, 114);
|
242 |
+
}
|
243 |
+
|
244 |
+
.cvssjs dd:nth-child(2) label:hover {
|
245 |
+
background-color: rgb(250, 140, 130);
|
246 |
+
}
|
247 |
+
|
248 |
+
.cvssjs dd label:hover {
|
249 |
+
background-color: rgb(250, 180, 93);
|
250 |
+
transition: background-color 0.1s ease-in-out;
|
251 |
+
}
|
252 |
+
|
253 |
+
.cvssjs dl.PR dd:last-child label:hover,
|
254 |
+
.cvssjs dd:last-child label:hover,
|
255 |
+
.cvssjs dl.AV dd:nth-child(4) label:hover {
|
256 |
+
background-color: rgb(255, 240, 130);
|
257 |
+
}
|
258 |
+
|
259 |
+
.cvssjs dl.C dd:last-child label:hover,
|
260 |
+
.cvssjs dl.I dd:last-child label:hover,
|
261 |
+
.cvssjs dl.A dd:last-child label:hover {
|
262 |
+
background-color: rgb(172, 223, 124);
|
263 |
+
}
|
264 |
+
|
265 |
+
.cvssjs hr {
|
266 |
+
border-style: dashed;
|
267 |
+
color: #949ca0;
|
268 |
+
}
|
269 |
+
|
270 |
+
.cvssjs .score,
|
271 |
+
.cvssjs .vector,
|
272 |
+
.cvssjs .severity {
|
273 |
+
margin: 2px;
|
274 |
+
display: inline-block;
|
275 |
+
}
|
276 |
+
|
277 |
+
.cvssjs .score {
|
278 |
+
width: 1.5em;
|
279 |
+
}
|
280 |
+
|
281 |
+
.cvssjs .severity {
|
282 |
+
width: 5em;
|
283 |
+
border-radius: 4px;
|
284 |
+
padding: 5px;
|
285 |
+
text-align: center;
|
286 |
+
transition: background-color 0.1s ease-out;
|
287 |
+
}
|
288 |
+
|
289 |
+
.cvssjs .results {
|
290 |
+
padding: 7px;
|
291 |
+
}
|
292 |
+
|
293 |
+
.cvssjs dl dd label.results:hover {
|
294 |
+
background-color: white;
|
295 |
+
}
|
296 |
+
|
297 |
+
.cvssjs .results sub {
|
298 |
+
display: none;
|
299 |
+
font-size: x-small;
|
300 |
+
}
|