|
| 1 | +@use '../utils'; |
| 2 | + |
| 3 | +/* Only available in React SDK. */ |
| 4 | +.str-chat { |
| 5 | + /* The text/icon color of the component */ |
| 6 | + --str-chat__search-input-color: var(--str-chat__text-color); |
| 7 | + |
| 8 | + /* The text/icon color of the component */ |
| 9 | + --str-chat__search-input-placeholder-color: var(--str-chat__text-low-emphasis-color); |
| 10 | + |
| 11 | + /* The text/icon color of the component */ |
| 12 | + --str-chat__search-input-icon-color: var(--str-chat__text-low-emphasis-color); |
| 13 | + |
| 14 | + /* Top border of the component */ |
| 15 | + --str-chat__search-input-border-block-start: none; |
| 16 | + |
| 17 | + /* Bottom border of the component */ |
| 18 | + --str-chat__search-input-border-block-end: none; |
| 19 | + |
| 20 | + /* Left (right in RTL layout) borhe component */ |
| 21 | + --str-chat__search-input-border-inline-start: none; |
| 22 | + |
| 23 | + /* Right (left in RTL layout) borhe component */ |
| 24 | + --str-chat__search-input-border-inline-end: none; |
| 25 | + |
| 26 | + /* The border radius used for the borders of the component */ |
| 27 | + --str-chat__search-input-wrapper-border-radius: var(--str-chat__border-radius-circle); |
| 28 | + |
| 29 | + /* The background color of the component */ |
| 30 | + --str-chat__search-input-wrapper-background-color: transparent; |
| 31 | + |
| 32 | + /* Top border of the component */ |
| 33 | + --str-chat__search-input-wrapper-border-block-start: var(--str-chat__surface-color) 1px |
| 34 | + solid; |
| 35 | + |
| 36 | + /* Bottom border of the component */ |
| 37 | + --str-chat__search-input-wrapper-border-block-end: var(--str-chat__surface-color) 1px |
| 38 | + solid; |
| 39 | + |
| 40 | + /* Left (right in RTL layout) border of the component */ |
| 41 | + --str-chat__search-input-wrapper-border-inline-start: var(--str-chat__surface-color) 1px |
| 42 | + solid; |
| 43 | + |
| 44 | + /* Right (left in RTL layout) border of the component */ |
| 45 | + --str-chat__search-input-wrapper-border-inline-end: var(--str-chat__surface-color) 1px |
| 46 | + solid; |
| 47 | + |
| 48 | + /* The border radius used for the borders of the component */ |
| 49 | + --str-chat__search-input-wrapper-active-border-radius: var(--str-chat__border-radius-circle); |
| 50 | + |
| 51 | + /* The background color of the component */ |
| 52 | + --str-chat__search-input-wrapper-active-background-color: transparent; |
| 53 | + |
| 54 | + /* Top border of the component */ |
| 55 | + --str-chat__search-input-wrapper-active-border-block-start: var(--str-chat__primary-color) |
| 56 | + 1px solid; |
| 57 | + |
| 58 | + /* Bottom border of the component */ |
| 59 | + --str-chat__search-input-wrapper-active-border-block-end: var(--str-chat__primary-color) |
| 60 | + 1px solid; |
| 61 | + |
| 62 | + /* Left (right in RTL layout) border of the component */ |
| 63 | + --str-chat__search-input-wrapper-active-border-inline-start: var( |
| 64 | + --str-chat__primary-color |
| 65 | + ) |
| 66 | + 1px solid; |
| 67 | + |
| 68 | + /* Right (left in RTL layout) border of the component */ |
| 69 | + --str-chat__search-input-wrapper-active-border-inline-end: var(--str-chat__primary-color) |
| 70 | + 1px solid; |
| 71 | + |
| 72 | + /* The background applied to channel search result */ |
| 73 | + --str-chat__search-result-background-color: transparent; |
| 74 | + |
| 75 | + /* Top border of the component */ |
| 76 | + --str-chat__search-result-border-block-start: none; |
| 77 | + |
| 78 | + /* Bottom border of the component */ |
| 79 | + --str-chat__search-result-border-block-end: none; |
| 80 | + |
| 81 | + /* Left (right in RTL layout) border of the component */ |
| 82 | + --str-chat__search-result-border-inline-start: none; |
| 83 | + |
| 84 | + /* Right (left in RTL layout) border of the component */ |
| 85 | + --str-chat__search-result-border-inline-end: none; |
| 86 | + |
| 87 | + /* Background color used for the search result hover / focused state */ |
| 88 | + --str-chat__search-result-hover-background-color: var( |
| 89 | + --str-chat__secondary-surface-color |
| 90 | + ); |
| 91 | + |
| 92 | + --str-chat__search-result-list-color: var(--str-chat__text-color); |
| 93 | + |
| 94 | + --str-chat__search-result-list-background-color: var(--str-chat__secondary-background-color); |
| 95 | + |
| 96 | + /* Top border of the component */ |
| 97 | + --str-chat__search-result-list-border-block-start: none; |
| 98 | + |
| 99 | + /* Bottom border of the component */ |
| 100 | + --str-chat__search-result-list-border-block-end: none; |
| 101 | + |
| 102 | + /* Left (right in RTL layout) border of the component */ |
| 103 | + --str-chat__search-result-list-border-inline-start: none; |
| 104 | + |
| 105 | + /* Right (left in RTL layout) border of the component */ |
| 106 | + --str-chat__search-result-list-border-inline-end: none; |
| 107 | + |
| 108 | + /* Box shadow applied to the component */ |
| 109 | + --str-chat__search-result-list-popup-box-shadow: 0 4px 4px var(--str-chat__box-shadow-color); |
| 110 | + |
| 111 | + /* The font color used in the search results header */ |
| 112 | + --str-chat__search-results-header-color: var(--str-chat__text-low-emphasis-color); |
| 113 | + |
| 114 | + /* The background color used in the search results header */ |
| 115 | + --str-chat__search-results-header-background-color: var(--str-chat__background-color); |
| 116 | + |
| 117 | + /* Top border of the component */ |
| 118 | + --str-chat__search-results-header-border-block-start: none; |
| 119 | + |
| 120 | + /* Bottom border of the component */ |
| 121 | + --str-chat__search-results-header-border-block-end: var(--str-chat__surface-color) 1px |
| 122 | + solid; |
| 123 | + |
| 124 | + /* Left (right in RTL layout) border of the component */ |
| 125 | + --str-chat__search-results-header-border-inline-start: none; |
| 126 | + |
| 127 | + /* Right (left in RTL layout) border of the component */ |
| 128 | + --str-chat__search-results-header-border-inline-end: none; |
| 129 | + |
| 130 | + /* The font color used in the empty search results indicator */ |
| 131 | + --str-chat__search-results-empty-color: var(--str-chat__text-low-emphasis-color); |
| 132 | + |
| 133 | + /* The icon color used in the empty search results indicator */ |
| 134 | + --str-chat__search-results-empty-icon-color: var(--str-chat__disabled-color); |
| 135 | + |
| 136 | + /* The background color used in the empty search results indicator */ |
| 137 | + --str-chat__search-results-empty-background-color: var(--str-chat__background-color); |
| 138 | + |
| 139 | + /* Top border of the component */ |
| 140 | + --str-chat__search-results-empty-border-block-start: none; |
| 141 | + |
| 142 | + /* Bottom border of the component */ |
| 143 | + --str-chat__search-results-empty-border-block-end: none; |
| 144 | + |
| 145 | + /* Left (right in RTL layout) border of the component */ |
| 146 | + --str-chat__search-results-empty-border-inline-start: none; |
| 147 | + |
| 148 | + /* Right (left in RTL layout) border of the component */ |
| 149 | + --str-chat__search-results-empty-border-inline-end: none; |
| 150 | +} |
| 151 | + |
| 152 | +.str-chat__search-input--wrapper { |
| 153 | + @include utils.component-layer-overrides('search-input-wrapper'); |
| 154 | + |
| 155 | + .str-chat__search-input--icon { |
| 156 | + background-image: var(--str-chat__magnifier-glass-icon); |
| 157 | + background-repeat: no-repeat; |
| 158 | + } |
| 159 | + |
| 160 | + input { |
| 161 | + @include utils.component-layer-overrides('search-input'); |
| 162 | + outline: none; |
| 163 | + font: var(--str-chat__subtitle-text); |
| 164 | + } |
| 165 | + |
| 166 | + .str-chat__search-input--clear-button-icon { |
| 167 | + background-color: transparent; |
| 168 | + -webkit-mask: var(--str-chat__clear-icon) no-repeat center / contain; |
| 169 | + mask: var(--str-chat__clear-icon) no-repeat center / contain; |
| 170 | + } |
| 171 | +} |
| 172 | + |
| 173 | +.str-chat__search-input--wrapper-active { |
| 174 | + @include utils.component-layer-overrides('search-input-wrapper-active'); |
| 175 | + |
| 176 | + .str-chat__search-input--clear-button-icon { |
| 177 | + background-color: var(--str-chat__text-low-emphasis-color); |
| 178 | + } |
| 179 | +} |
| 180 | + |
| 181 | +.str-chat__search-bar-button--exit-search { |
| 182 | + @include utils.button-reset(); |
| 183 | + color: var(--str-chat__primary-color); |
| 184 | + font: var(--str-chat__subtitle-text); |
| 185 | +} |
| 186 | + |
| 187 | +.str-chat__search-results-header { |
| 188 | + @include utils.component-layer-overrides('search-results-header'); |
| 189 | + font: var(--str-chat__subtitle-text); |
| 190 | +} |
| 191 | + |
| 192 | +.str-chat__search-source-result-list { |
| 193 | + @include utils.component-layer-overrides('search-result-list'); |
| 194 | + |
| 195 | + .str-chat__search-container-empty { |
| 196 | + @include utils.component-layer-overrides('search-results-empty'); |
| 197 | + font: var(--str-chat__subtitle2-medium-text); |
| 198 | + |
| 199 | + svg path { |
| 200 | + fill: var(--str-chat__search-results-empty-icon-color); |
| 201 | + } |
| 202 | + } |
| 203 | + |
| 204 | + .str-chat__search-result { |
| 205 | + @include utils.component-layer-overrides('search-result'); |
| 206 | + |
| 207 | + &.str-chat__channel-preview-messenger--active { |
| 208 | + background-color: var(--str-chat__channel-preview-active-background-color); |
| 209 | + } |
| 210 | + |
| 211 | + .str-chat__search-result--display-name { |
| 212 | + @include utils.channel-preview-display-name-theme; |
| 213 | + } |
| 214 | + } |
| 215 | + |
| 216 | + |
| 217 | + |
| 218 | + .str-chat__search-result:hover, |
| 219 | + .str-chat__search-result--focused { |
| 220 | + background-color: var(--str-chat__search-result-hover-background-color); |
| 221 | + } |
| 222 | +} |
0 commit comments