.link-no-underline:hover {
border-bottom-color: var(--primary) !important;
}
+
+.link-rating,
+.link-rating:hover {
+ border-bottom: 0 !important;
+}
orange: '#ed7d20',
red: '#D02F3A',
purple: '#9139d4',
- white: '#ffffff',
gray94: '#efefef',
gray80: '#cdcdcd',
info500: '#0271B9',
+ success500: '#008A25',
+ successVariant: '#B0D513',
+
+ warningVariant: '#EABE06',
+ warningAccent: '#ED7D20',
+
+ error500: '#D02F3A',
+
neutral600: '#666666',
neutral800: '#333333',
+ white: '#FFFFFF',
+
+ black87: 'rgba(0, 0, 0, 0.87)',
black38: 'rgba(0, 0, 0, 0.38)'
},
return (
<td className="thin nowrap text-right">
<span id={`component-measures-component-measure-${component.key}-${metric.key}`}>
- <Measure metricKey={metric.key} metricType={metric.type} value={value} />
+ <Measure metricKey={metric.key} metricType={metric.type} value={value} small={true} />
</span>
</td>
);
<span>
<DrilldownLink
branchLike={branchLike}
- className="link-no-underline"
+ className="link-no-underline link-rating"
component={component.key}
metric={rating}>
<Rating value={value} />
"title": "Foo Bar feature",
}
}
- className="link-no-underline"
+ className="link-no-underline link-rating"
component="my-project"
metric="reliability_rating"
>
"title": "Foo Bar feature",
}
}
- className="link-no-underline"
+ className="link-no-underline link-rating"
component="my-project"
metric="new_reliability_rating"
>
"title": "Foo Bar feature",
}
}
- className="link-no-underline"
+ className="link-no-underline link-rating"
component="my-project"
metric="sqale_rating"
>
"title": "Foo Bar feature",
}
}
- className="link-no-underline"
+ className="link-no-underline link-rating"
component="my-project"
metric="new_maintainability_rating"
>
"title": "Foo Bar feature",
}
}
- className="link-no-underline"
+ className="link-no-underline link-rating"
component="my-project"
metric="security_rating"
>
"title": "Foo Bar feature",
}
}
- className="link-no-underline"
+ className="link-no-underline link-rating"
component="my-project"
metric="new_security_rating"
>
>
<HelpIcon
fill="rgba(0, 0, 0, 0.25)"
- fillInner="#ffffff"
+ fillInner="#FFFFFF"
size={14}
/>
</HelpTooltip>
display: inline-block;
width: var(--controlHeight);
height: var(--controlHeight);
- line-height: var(--controlHeight);
+ line-height: calc(var(--controlHeight) - 1px);
border-radius: var(--controlHeight);
+ border: 1px solid var(--black38);
box-sizing: border-box;
- color: #fff;
font-size: var(--bigFontSize);
font-weight: 400;
text-align: center;
- text-shadow: 0 0 1px rgba(0, 0, 0, 0.35);
}
.rating-muted {
background-color: var(--gray71) !important;
- color: #fff !important;
- text-shadow: 0 0 1px rgba(0, 0, 0, 0.35) !important;
-}
-
-a > .rating {
- margin-bottom: -1px;
- border-bottom: 1px solid;
- transition: all 0.2s ease;
-}
-
-a > .rating:hover {
- opacity: 0.8;
+ color: var(--white) !important;
}
+a > .rating-A,
.rating-A {
- line-height: 23px;
- background-color: var(--green);
-}
-
-a > .rating-A {
- border-bottom-color: var(--green);
+ color: var(--white);
+ background-color: var(--success500);
}
+a > .rating-B,
.rating-B {
- background-color: var(--lightGreen);
-}
-
-a .rating-B {
- border-bottom-color: var(--lightGreen);
+ color: var(--black87);
+ background-color: var(--successVariant);
}
+a > .rating-C,
.rating-C {
- background-color: var(--yellow);
-}
-
-a .rating-C {
- border-bottom-color: var(--yellow);
+ color: var(--black87);
+ background-color: var(--warningVariant);
}
+a > .rating-D,
.rating-D {
- background-color: var(--orange);
-}
-
-a .rating-D {
- border-bottom-color: var(--orange);
+ color: var(--black87);
+ background-color: var(--warningAccent);
}
+a > .rating-E,
.rating-E {
- background-color: var(--red);
-}
-
-a .rating-E {
- border-bottom-color: var(--red);
+ color: var(--white);
+ background-color: var(--error500);
}
.rating-small {
width: 20px;
height: 20px;
- line-height: 20px;
+ line-height: 19px;
margin-top: -1px;
margin-bottom: -1px;
font-size: var(--mediumFontSize);
- font-weight: bold;
}