github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/pkg/ui/src/views/shared/util/table.styl (about)

     1  // Copyright 2018 The Cockroach Authors.
     2  //
     3  // Use of this software is governed by the Business Source License
     4  // included in the file licenses/BSL.txt.
     5  //
     6  // As of the Change Date specified in that file, in accordance with
     7  // the Business Source License, use of this software will be governed
     8  // by the Apache License, Version 2.0, included in the file
     9  // licenses/APL.txt.
    10  
    11  @require '~styl/base/palette.styl'
    12  @require '~src/components/core/index.styl'
    13  
    14  $table-cell-border = 1px solid $table-border-color
    15  
    16  $stats-table-td--fg = $body-color
    17  
    18  $stats-table-th--bg     = $colors--neutral-0
    19  $stats-table-tr--bg     = $colors--neutral-0
    20  
    21  $table-base
    22    width 100%
    23    border-collapse collapse
    24    font-family SourceSansPro-Regular
    25    font-weight 300
    26    line-height 22px
    27    font-size 14px
    28    vertical-align top
    29    color $stats-table-td--fg
    30  
    31    &__row
    32      &--body
    33        letter-spacing .33px
    34        background-color $stats-table-tr--bg
    35        &:hover
    36          background-color $background-color
    37  
    38      &--header
    39        padding 20px
    40        font-size 12px
    41        font-weight bold
    42        letter-spacing 2px
    43        text-transform uppercase
    44        text-align left
    45        white-space nowrap
    46        background-color $stats-table-th--bg
    47  
    48      &--summary
    49        background-color $background-color
    50        font-family SourceSansPro-SemiBold
    51        font-size 14px
    52        font-weight bold
    53        line-height 1.71
    54        letter-spacing 0.1px
    55        color $popover-color
    56        .bar-chart .label
    57          font-family SourceSansPro-Regular
    58          font-size 14px
    59          font-weight bold
    60          line-height 1.71
    61          letter-spacing 0.1px
    62          color $popover-color
    63  
    64    &__cell
    65      padding 10px 20px
    66      border none
    67      font-weight inherit
    68  
    69      a
    70        font-weight 400
    71        color $link-color
    72        text-decoration none
    73        width 100%
    74        height 100%
    75  
    76      &--filler
    77        width 100%
    78  
    79      &--right-aligned-stat
    80        text-align right