github.com/hernad/nomad@v1.6.112/ui/app/styles/components/metrics.scss (about)

     1  /**
     2   * Copyright (c) HashiCorp, Inc.
     3   * SPDX-License-Identifier: MPL-2.0
     4   */
     5  
     6  .metric-group {
     7    display: inline-flex;
     8    width: auto;
     9    align-items: flex-start;
    10  
    11    .metric {
    12      padding: 0.75em 1em;
    13      border: 1px solid $grey-blue;
    14      display: flex;
    15      flex-direction: column;
    16      min-width: 120px;
    17  
    18      + .metric {
    19        margin-left: -1px;
    20      }
    21  
    22      &:first-child {
    23        border-top-left-radius: $radius;
    24        border-bottom-left-radius: $radius;
    25      }
    26  
    27      &:last-child {
    28        border-top-right-radius: $radius;
    29        border-bottom-right-radius: $radius;
    30      }
    31  
    32      @each $name, $pair in $colors {
    33        $color: nth($pair, 1);
    34        $color-invert: nth($pair, 2);
    35  
    36        &.is-#{$name} {
    37          border-color: $color;
    38          color: $color;
    39          background: lighten($color, 40%);
    40  
    41          .label {
    42            color: $color;
    43          }
    44        }
    45      }
    46  
    47      &.is-faded {
    48        color: $grey-blue;
    49        border-color: $grey-blue;
    50        background: $white;
    51  
    52        .label {
    53          color: $grey-blue;
    54        }
    55      }
    56  
    57      &.is-hollow {
    58        border-color: transparent;
    59        background: transparent;
    60      }
    61    }
    62  }
    63  
    64  .metric {
    65    text-align: center;
    66  
    67    .label {
    68      font-size: 1.1em;
    69      font-weight: $weight-semibold;
    70      margin-bottom: 0;
    71    }
    72  
    73    .value {
    74      font-size: 2em;
    75      margin-bottom: 0;
    76      line-height: 1;
    77    }
    78  }