open-nomad/ui/app/styles/components/metrics.scss

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

74 lines
1.2 KiB
SCSS
Raw Normal View History

2017-09-19 14:47:10 +00:00
.metric-group {
display: inline-flex;
width: auto;
align-items: flex-start;
.metric {
padding: 0.75em 1em;
border: 1px solid $grey-blue;
display: flex;
flex-direction: column;
min-width: 120px;
+ .metric {
margin-left: -1px;
}
&:first-child {
border-top-left-radius: $radius;
border-bottom-left-radius: $radius;
}
&:last-child {
border-top-right-radius: $radius;
border-bottom-right-radius: $radius;
}
@each $name, $pair in $colors {
$color: nth($pair, 1);
$color-invert: nth($pair, 2);
&.is-#{$name} {
border-color: $color;
color: $color;
background: lighten($color, 40%);
.label {
color: $color;
}
}
}
&.is-faded {
color: $grey-blue;
border-color: $grey-blue;
background: $white;
.label {
color: $grey-blue;
}
}
&.is-hollow {
border-color: transparent;
background: transparent;
2017-09-19 14:47:10 +00:00
}
}
}
2017-09-19 14:47:10 +00:00
.metric {
text-align: center;
.label {
font-size: 1.1em;
font-weight: $weight-semibold;
margin-bottom: 0;
}
.value {
font-size: 2em;
margin-bottom: 0;
line-height: 1;
2017-09-19 14:47:10 +00:00
}
}