github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/pkg/ui/src/views/app/components/layoutSidebar/navigation-bar.styl (about)

     1  // Copyright 2019 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 '~styl/base/layout-vars.styl'
    13  @require "~src/components/core/index.styl"
    14  
    15  // ---- Navigation ----
    16  $navbar-bg            = white
    17  $main-nav-active-bg   = $background-color
    18  $main-nav-active-font = $link-color
    19  $main-nav-active-icon = $link-color
    20  $main-nav-hover       = $link-color
    21  $subnav-active-color  = $healthy-color
    22  
    23  $subnav-underline-height = 3px
    24  
    25  .navigation-bar
    26    position fixed
    27    top 0
    28    left 0
    29    bottom 0
    30    min-height 350px
    31    z-index $z-index-navigation
    32    width $nav-width
    33    background-color $navbar-bg
    34    border-right 1px solid $table-border-color
    35    margin 0
    36    padding 0
    37    display flex
    38    flex-direction column
    39    justify-content space-between
    40    overflow-y auto
    41  
    42  .navigation-bar__list
    43    width 100%
    44  
    45    li
    46      width 100%
    47      padding 0
    48      border 0
    49      font-family $font-family--bold
    50      font-size 8px
    51      text-transform uppercase
    52      float left
    53      color $body-color
    54      list-style-type none
    55      line-height 18px
    56      word-break break-all
    57  
    58      &.normal
    59        polyline, rect, path, ellipse, line
    60          stroke $body-color
    61  
    62        a.active, a.active:hover, a:hover
    63          color $link-color
    64  
    65          polyline, rect, path, ellipse, line
    66            stroke $link-color
    67  
    68      &.login-indicator
    69        padding-top 10px
    70        text-align center
    71  
    72        &--insecure
    73          font-family $font-family--bold
    74          font-size 8px
    75          text-transform uppercase
    76          text-align center
    77          color $warning-color
    78  
    79          path
    80            fill $warning-color
    81  
    82        .login-indicator__initial
    83          border 2px solid $link-color
    84          width 32px
    85          height 32px
    86          border-radius 5px
    87          color $link-color
    88          font-size 18px
    89          line-height 32px
    90          text-align center
    91          margin 0 auto
    92  
    93        a
    94          display inline
    95          padding 0
    96          text-decoration none
    97          color inherit
    98  
    99          &:hover
   100            color $link-color
   101  
   102      &.active
   103        background-color $navbar-bg
   104  
   105      .icon-link
   106        width 100%
   107        padding 20px 0
   108        display block
   109        color inherit
   110        text-decoration none
   111        &:hover
   112        &:visited
   113        &:active
   114          color @color
   115  
   116        div
   117          margin auto
   118          width 100%
   119          text-align center
   120          letter-spacing 1px
   121          word-break break-word
   122  
   123      &.debug-pages-link
   124        path
   125          stroke $tooltip-color
   126  
   127        .icon-link
   128          padding-bottom 0
   129  
   130  .nav-container
   131    padding 0 3rem 1rem
   132    background-color $subnav-background
   133    text-transform uppercase
   134    letter-spacing 2.17px
   135    height $subnav-height
   136    left $nav-width
   137    top $top-bar-height
   138    right 0
   139    width 100%
   140    z-index $z-index-navigation
   141  
   142    ul.nav
   143      display flex
   144      flex-flow row nowrap
   145      justify-content flex-start
   146      color $tooltip-color
   147      list-style-type none
   148      line-height $subnav-height - $subnav-underline-height
   149  
   150      font-family $font-family--bold
   151      font-size 9px
   152      max-width calc(100vw - 80px)
   153      @media (min-width: 1300px)
   154        max-width 1300px
   155  
   156      li
   157        display inline-block
   158        margin-right 3rem
   159        height $subnav-height
   160  
   161        &.title
   162  
   163        &.selector
   164          padding-right 0
   165          margin-right 3em
   166  
   167        a
   168          height 100%
   169          display block
   170          color inherit
   171          text-decoration none
   172          &:hover
   173          &:visited
   174          &:active
   175            color @color
   176  
   177          div
   178            display inline
   179  
   180        a.active, a.active:hover
   181          color $subnav-active-color
   182          font-weight 600
   183          border-bottom $subnav-underline-height solid $subnav-active-color
   184  
   185        a:hover
   186          color $main-nav-hover
   187  
   188        &.timescale-button
   189          align-self flex-start
   190          flex-basis 100%
   191          // width 100%
   192          display flex
   193          justify-content flex-start
   194          flex-flow row nowrap
   195          align-items flex-start
   196  
   197          button
   198            margin-top auto
   199            margin-bottom auto
   200            align-self flex-start
   201            text-transform none
   202            &:focus
   203              outline 0
   204  
   205  ul.pagination
   206    letter-spacing 2.17px
   207    text-transform uppercase
   208    font-family $font-family--bold
   209    font-size 1.1rem
   210    color $tooltip-color
   211    list-style-type none
   212    text-align center
   213  
   214    li
   215      display inline-block
   216  
   217      &.active, &.active:hover
   218        color $subnav-active-color
   219        font-weight 600
   220        border-bottom $subnav-underline-height solid $subnav-active-color
   221  
   222      &:hover
   223        color $main-nav-hover
   224  
   225      &.disabled
   226        display none
   227  
   228      a
   229        height 100%
   230        display block
   231        color inherit
   232        text-decoration none
   233        cursor pointer
   234        padding 10px
   235  
   236        &:hover
   237        &:visited
   238        &:active
   239          color @color