summaryrefslogtreecommitdiffstats
path: root/components/search-bar/_search-bar.scss
blob: 3e2dfadaa8b82058f0425b649323cf529e275398 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
$inputHeight: 38px;
.sdc-search-bar{
  .search-bar-container{
    display: flex;
    align-items: flex-end;
    .sdc-input-wrapper{
      flex-grow: 1;
      .sdc-input{
        margin: 0;
        .sdc-input__input{
          border-bottom-right-radius: 0;
          border-top-right-radius: 0;
        }
      }
    }
    .search-button{
      width: $inputHeight;
      height: $inputHeight - 2;
      border: solid 1px $light-gray;
      border-left: none;
      background-color: $light-silver;
      cursor: auto;
      border-top-right-radius: 2px;
      border-bottom-right-radius: 2px;
      
      svg{
        height: 20px;
        width: 20px;
        position: relative;
        top: 50%;
        left: 50%;
        transform: translate(-50%,-50% );
        path{
          fill: $gray;
        }
      }
    }

    &.not-empty{
      .sdc-input__input {
        border-color: $blue;
      }
      .search-button{
        background-color: $lighter-blue;
        border-color: $blue;
        cursor: pointer;
        svg path{
          fill: $blue;
        }
        &:hover {
            background-color: $light-blue;
            svg{
              path{
                fill: $white;
              }
            }
        }
      }
    }
  }
}