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
| 7 |
+
background: url("cvssicons.png") no-repeat center;
|
| 8 |
+
background-size: cover;
|
| 9 |
+
margin-right: 6px;
|
| 10 |
+
margin: 2px;
|
| 11 |
+
font-size: 40px;
|
| 12 |
+
}
|
| 13 |
+
|
| 14 |
+
.cvssjs a {
|
| 15 |
+
color: #3A9BDC;
|
| 16 |
+
text-decoration: none;
|
| 17 |
+
}
|
| 18 |
+
|
| 19 |
+
.cvssjs dl {
|
| 20 |
+
display: inline-block;
|
| 21 |
+
vertical-align: top;
|
| 22 |
+
background-color: #424a40;
|
| 23 |
+
margin: 2px;
|
| 24 |
+
border-radius: 6px;
|
| 25 |
+
box-shadow: 0px 0px 10px rgba(0,0,0,0.1);
|
| 26 |
+
transition: background-color 0.3s ease;
|
| 27 |
+
}
|
| 28 |
+
.cvssjs dt {
|
| 29 |
+
color: #f1f1f1;
|
| 30 |
+
padding: 5px;
|
| 31 |
+
font-size: 70%;
|
| 32 |
+
text-transform: uppercase;
|
| 33 |
+
letter-spacing: 0.5px;
|
| 34 |
+
}
|
| 35 |
+
.cvssjs dl:hover {
|
| 36 |
+
background-color: #676a60;
|
| 37 |
+
}
|
| 38 |
+
.cvssjs dl:hover dt {
|
| 39 |
+
color: #ffffff;
|
| 40 |
+
}
|
| 41 |
+
|
| 42 |
+
.cvssjs dd {
|
| 43 |
+
margin: 0;
|
| 44 |
+
padding: 0;
|
| 45 |
+
text-align: left;
|
| 46 |
+
}
|
| 47 |
+
|
| 48 |
+
.cvssjs dd label,
|
| 49 |
+
#predef span {
|
| 50 |
+
min-width: 7.5em;
|
| 51 |
+
padding: 5px 4px;
|
| 52 |
+
display: block;
|
| 53 |
+
background-color: #f9f9f7;
|
| 54 |
+
transition: background-color 0.3s ease;
|
| 55 |
+
}
|
| 56 |
+
|
| 57 |
+
.cvssjs dd:last-child label,
|
| 58 |
+
#predef span:last-child {
|
| 59 |
+
border-bottom-left-radius: 4px;
|
| 60 |
+
border-bottom-right-radius: 4px;
|
| 61 |
+
}
|
| 62 |
+
|
| 63 |
+
.cvssjs dd small {
|
| 64 |
+
display: none;
|
| 65 |
+
}
|
| 66 |
+
|
| 67 |
+
.cvssjs dd:hover small {
|
| 68 |
+
position: absolute;
|
| 69 |
+
max-width: 220px;
|
| 70 |
+
border: 1px solid #333;
|
| 71 |
+
display: block;
|
| 72 |
+
color: black;
|
| 73 |
+
background-color: #FFFFC1;
|
| 74 |
+
border-radius: 5px;
|
| 75 |
+
padding: 6px;
|
| 76 |
+
margin-top: 0.7em;
|
| 77 |
+
margin-left: 5em;
|
| 78 |
+
box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
|
| 79 |
+
z-index: 1;
|
| 80 |
+
}
|
| 81 |
+
|
| 82 |
+
.cvssjs dd > input {
|
| 83 |
+
border: 0;
|
| 84 |
+
clip: rect(0 0 0 0);
|
| 85 |
+
height: 1px;
|
| 86 |
+
margin: -1px;
|
| 87 |
+
overflow: hidden;
|
| 88 |
+
padding: 0;
|
| 89 |
+
position: absolute;
|
| 90 |
+
width: 1px;
|
| 91 |
+
}
|
| 92 |
+
|
| 93 |
+
.cvssjs dd input:checked + label {
|
| 94 |
+
background-color: rgb(250, 180, 93);
|
| 95 |
+
transition: background-color 0.1s ease;
|
| 96 |
+
}
|
| 97 |
+
|
| 98 |
+
.cvssjs dd label:hover {
|
| 99 |
+
background-color: rgb(250, 200, 103);
|
| 100 |
+
transition: background-color 0.2s ease;
|
| 101 |
+
}
|
| 102 |
+
|
| 103 |
+
.cvssjs .severity {
|
| 104 |
+
width: 5em;
|
| 105 |
+
padding: 6px;
|
| 106 |
+
border-radius: 4px;
|
| 107 |
+
text-align: center;
|
| 108 |
+
font-weight: bold;
|
| 109 |
+
color: #ffffff;
|
| 110 |
+
transition: background-color 0.1s ease;
|
| 111 |
+
}
|
| 112 |
+
|
| 113 |
+
.cvssjs .score {
|
| 114 |
+
width: 1.5em;
|
| 115 |
+
}
|
| 116 |
+
|
| 117 |
+
.cvssjs .results {
|
| 118 |
+
padding: 8px;
|
| 119 |
+
background-color: #efefef;
|
| 120 |
+
border-radius: 4px;
|
| 121 |
+
}
|
| 122 |
+
|
| 123 |
+
.cvssjs .copy-button {
|
| 124 |
+
border: none;
|
| 125 |
+
background: transparent;
|
| 126 |
+
cursor: pointer;
|
| 127 |
+
user-select: none;
|
| 128 |
+
}
|
| 129 |
+
|
| 130 |
+
.cvssjs .copy-button:before {
|
| 131 |
+
content: " ";
|
| 132 |
+
display: inline-block;
|
| 133 |
+
width: 16px;
|
| 134 |
+
height: 16px;
|
| 135 |
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%23000' d='M433.941 65.941l-51.882-51.882A48 48 0 0 0 348.118 0H176c-26.51 0-48 21.49-48 48v48H48c-26.51 0-48 21.49-48 48v320c0 26.51 21.49 48 48 48h224c26.51 0 48-21.49 48-48v-48h80c26.51 0 48-21.49 48-48V99.882a48 48 0 0 0-14.059-33.941zM266 464H54a6 6 0 0 1-6-6V150a6 6 0 0 1 6-6h74v224c0 26.51 21.49 48 48 48h96v42a6 6 0 0 1-6 6zm128-96H182a6 6 0 0 1-6-6V54a6 6 0 0 1 6-6h106v88c0 13.255 10.745 24 24 24h88v202a6 6 0 0 1-6 6zm6-256h-64V48h9.632c1.591 0 3.117.632 4.243 1.757l48.368 48.368a6 6 0 0 1 1.757 4.243V112z'%3E%3C/path%3E%3C/svg%3E");
|
| 136 |
+
background-size: contain;
|
| 137 |
+
background-repeat: no-repeat;
|
| 138 |
+
}
|
| 139 |
+
|
| 140 |
+
.cvssjs .copy-button:hover:before {
|
| 141 |
+
opacity: 0.7;
|
| 142 |
+
}
|