.search { margin-bottom: 10px; position: relative; &__popout { box-sizing: border-box; display: none; position: absolute; inset-inline-start: 0; margin-top: -2px; width: 100%; background: var(--ui-base-color); border-radius: 0 0 4px 4px; box-shadow: 4px 4px 6px var(--base-shadow-color-a40); z-index: 99; font-size: 13px; padding: 15px 5px; h4 { text-transform: uppercase; color: var(--dark-text-color); font-weight: 500; padding: 0 10px; margin-bottom: 10px; } &__menu { margin-bottom: 20px; &:last-child { margin-bottom: 0; } &__message { color: var(--dark-text-color); padding: 0 10px; } &__item { display: block; box-sizing: border-box; width: 100%; border: 0; font: inherit; background: transparent; color: var(--darker-text-color); padding: 10px; cursor: pointer; border-radius: 4px; text-align: start; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; &--flex { display: flex; justify-content: space-between; } .icon-button { transition: none; } &:hover, &:focus, &:active, &.selected { background: var(--ui-highlight-color); color: var(--primary-text-color); .icon-button { color: var(--primary-text-color); } } mark { background: transparent; font-weight: 700; color: var(--primary-text-color); } span { overflow: inherit; text-overflow: inherit; } } } } &.active { .search__popout { display: block; } } } .search__input { outline: 0; box-sizing: border-box; width: 100%; border: 0; box-shadow: none; font-family: inherit; background: var(--ui-base-color); color: var(--darker-text-color); border-radius: 4px; font-size: 14px; margin: 0; display: block; padding: 15px; padding-inline-end: 30px; line-height: 18px; font-size: 16px; &::placeholder { color: var(--darker-text-color-lighten-4); } &::-moz-focus-inner { border: 0; } &::-moz-focus-inner, &:focus, &:active { outline: 0 !important; } &:focus { background: var(--ui-base-color-lighten-4); } } .search__icon { &::-moz-focus-inner { border: 0; } &::-moz-focus-inner, &:focus { outline: 0 !important; } .fa { position: absolute; top: 16px; inset-inline-end: 10px; display: inline-block; opacity: 0; transition: all 100ms linear; transition-property: color, transform, opacity; font-size: 18px; width: 18px; height: 18px; color: var(--secondary-text-color); cursor: default; pointer-events: none; &.active { pointer-events: auto; opacity: 0.3; } } .fa-search { transform: rotate(0deg); &.active { pointer-events: auto; opacity: 0.3; } } .fa-times-circle { top: 17px; transform: rotate(0deg); color: var(--action-button-color); cursor: pointer; &.active { transform: rotate(90deg); opacity: 1; } &:hover { color: var(--action-button-color-lighten-7); } } } .search-results__header { color: var(--dark-text-color); background: var(--ui-base-color-lighten-2); padding: 15px; font-weight: 500; font-size: 16px; cursor: default; .fa { display: inline-block; margin-inline-end: 5px; } } .search-results__info { padding: 20px; color: var(--darker-text-color); text-align: center; } .trends { &__header { color: var(--dark-text-color); background: var(--ui-base-color-lighten-2); border-bottom: 1px solid var(--ui-base-color-darken-4); font-weight: 500; padding: 15px; font-size: 16px; cursor: default; .fa { display: inline-block; margin-inline-end: 5px; } } &__item { display: flex; align-items: center; padding: 15px; border-bottom: 1px solid var(--ui-base-color-lighten-8); gap: 15px; &:last-child { border-bottom: 0; } &__name { flex: 1 1 auto; color: var(--dark-text-color); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; strong { font-weight: 500; } a { color: var(--darker-text-color); text-decoration: none; font-size: 14px; font-weight: 500; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; &:hover, &:focus, &:active { span { text-decoration: underline; } } } } &__current { flex: 0 0 auto; font-size: 24px; font-weight: 500; text-align: end; color: var(--secondary-text-color); text-decoration: none; } &__sparkline { flex: 0 0 auto; width: 50px; path:first-child { fill: var(--highlight-text-color-a25) !important; fill-opacity: 1 !important; } path:last-child { stroke: var(--highlight-text-color-lighten-6) !important; fill: none !important; } } &--requires-review { .trends__item__name { color: var(--gold-star); a { color: var(--gold-star); } } .trends__item__current { color: var(--gold-star); } .trends__item__sparkline { path:first-child { fill: var(--gold-star-a25) !important; } path:last-child { stroke: var(--gold-star-lighten-6) !important; } } } &--disabled { .trends__item__name { color: var(--ui-base-color-lighten-12); a { color: var(--ui-base-color-lighten-12); } } .trends__item__current { color: var(--ui-base-color-lighten-12); } .trends__item__sparkline { path:first-child { fill: color-mix(in srgb, var(--ui-base-color-lighten-12) 25%, transparent) !important; } path:last-child { stroke: var(--ui-base-color-lighten-18) !important; } } } } &--compact &__item { padding: 10px; padding-inline-end: 28px; } }