searchBar.scss 1.89 KB
Newer Older
Andrew Hrdy's avatar
Andrew Hrdy committed
1
2
@import '../_variables.scss';

3
.search-bar-paper-background {
Andrew Hrdy's avatar
Andrew Hrdy committed
4
5
  height: 44px;
  width: 400px;
6
  display: flex;
Andrew Hrdy's avatar
Andrew Hrdy committed
7
8
9
  border-radius: 4px !important;
  background-color: rgba(0, 0, 0, 0.04) !important;
  box-shadow: none !important;
Andrew Hrdy's avatar
Andrew Hrdy committed
10
}
Andrew Hrdy's avatar
Andrew Hrdy committed
11

Andrew Hrdy's avatar
Andrew Hrdy committed
12
13
14
15
.search-bar-search-btn {
  width: 44px !important;
  height: 44px !important;
  cursor: default !important;
16
17
}

Andrew Hrdy's avatar
Andrew Hrdy committed
18
19
.search-bar-back-btn {
  display: none !important;
20
21
}

Andrew Hrdy's avatar
Andrew Hrdy committed
22
.search-bar-search-icon, .search-bar-arrow-icon {
23
24
25
26
  display: block;
  color: rgba(0,0,0,0.54);
}

Andrew Hrdy's avatar
Andrew Hrdy committed
27
28
29
30
.search-bar-arrow-icon {
  display: none !important;
}

Andrew Hrdy's avatar
Andrew Hrdy committed
31
.search-bar-input {
32
33
  display: flex !important;
  align-items: center !important;
Andrew Hrdy's avatar
Andrew Hrdy committed
34
  width: 100%
Andrew Hrdy's avatar
Andrew Hrdy committed
35
36
37
38
39
40
41
42
43
44
45
46
}

.search-bar-close-btn {
  width: 44px !important;
  height: 44px !important;
  display: none !important;
}

.search-bar-has-value {
  .search-bar-close-btn {
    display: inline-flex !important;
  }
Andrew Hrdy's avatar
Andrew Hrdy committed
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
}

@media screen and (min-width: map-get($breakpoints, lg)) {
  .search-bar-paper-background {
    &.search-bar-focus {
      background-color: rgba(255, 255, 255, 1) !important;
      box-shadow: 0 1px 1px rgba(0, 0, 0, 0.24) !important;
      border: 1px solid rgba(0,0,0,0.15);
    }
  }

  .search-bar-input {
    transition: ease-in-out width 250ms;
  }
}

@media screen and (max-width: map-get($breakpoints, lg) - 1px) {
  .search-bar-paper-background {
    background-color: rgba(255, 255, 255, 1) !important;
    width: auto !important;

    &.search-bar-mobile-open {
      height: 100% !important;
      width: 100% !important;
    }
  }

  .search-bar-input {
    width: 0 !important;
  }

  .search-bar-mobile-open {
    .search-bar-input {
      width: 100% !important;
    }

    .search-bar-search-btn {
      display: none !important;
    }

    .search-bar-back-btn {
      display: inline-flex !important;
      width: 56px !important;
      height: 56px !important;
    }

    .search-bar-close-btn {
      width: 56px !important;
      height: 56px !important;
    }
  }
98
}