github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/pkg/ui/src/components/textInput/textInput.styl (about)

     1  // Copyright 2020 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 '~src/components/core/index.styl'
    12  
    13  .crl-text-input
    14    height $line-height--larger
    15    border-radius 3px
    16    border solid 1px $colors--neutral-4
    17    background-color $colors--white
    18    padding 0 $spacing-smaller
    19  
    20    &:focus
    21      border solid 1px $colors--primary-blue-3
    22  
    23    &:hover
    24      border solid 1px $colors--neutral-5
    25  
    26    &--invalid
    27      border: solid 1px $colors--functional-red-3
    28      background-color $colors--functional-red-1
    29      &:focus
    30        border solid 1px $colors--functional-red-3
    31  
    32    &__wrapper
    33      display flex
    34      flex-direction column
    35  
    36    &__error-message
    37      color $colors--functional-red-3
    38      position absolute
    39  
    40    &__validation-container
    41      position relative