| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280 |
- .search-backdrop {
- position: fixed;
- right: 0;
- left: 0;
- bottom: 0;
- top: $navbarHeight;
- z-index: $zindex-modal-backdrop;
- background-color: $black;
- @include opacity(75);
- }
- .search-container {
- left: 0;
- top: 0;
- right: 0;
- bottom: 0;
- z-index: ($zindex-modal-backdrop + 10);
- position: fixed;
- }
- // Search
- .search-dropdown {
- display: flex;
- flex-direction: column;
- height: calc(100% - #{$navbarHeight});
- }
- .search-dropdown__col_1 {
- background: $page-bg;
- max-width: 700px;
- display: flex;
- flex-direction: column;
- flex-grow: 1;
- height: 100%; // Chrome 74 needs this to make the element scrollable
- .search-item--indent {
- margin-left: 14px;
- }
- }
- .search-dropdown__col_2 {
- flex-grow: 1;
- height: 100%;
- padding-top: 16px;
- display: none;
- flex-direction: column;
- }
- .search-filter-box {
- background: $search-filter-box-bg;
- border-radius: 2px;
- padding: $spacer * 1.5;
- min-width: 340px;
- margin-bottom: $spacer * 1.5;
- }
- .search-filter-box__header {
- border-bottom: 1px solid $hr-border-color;
- margin-bottom: $spacer * 1.5;
- }
- .search-filter-box-link {
- display: block;
- margin-bottom: 16px;
- &:last-child {
- margin-bottom: 0;
- }
- i,
- img {
- font-size: 20px;
- margin-right: 5px;
- }
- }
- .search-results-scroller {
- display: flex;
- position: relative;
- }
- .search-results-container {
- display: block;
- padding: $spacer;
- position: relative;
- flex-grow: 10;
- margin-bottom: $space-md;
- // Fix for search scroller in mobile view
- height: unset;
- .label-tag {
- margin-left: 6px;
- font-size: 11px;
- padding: 2px 6px;
- }
- .selected {
- .search-result-tag {
- opacity: 0.7;
- color: white;
- }
- }
- }
- .search-section {
- background: $panel-bg;
- border: $panel-border;
- padding: 0px 4px 4px 4px;
- margin-bottom: 3px;
- border-radius: 5px;
- }
- .search-section__header {
- font-size: $font-size-h6;
- padding: 7px 4px 3px 0;
- color: $text-color-weak;
- display: flex;
- flex-grow: 1;
- &:hover,
- &.selected {
- color: $text-color;
- }
- &:hover {
- .search-section__header__link {
- opacity: 1;
- }
- }
- }
- .search-section__header__icon {
- padding: 5px 0px;
- width: 43px;
- text-align: center;
- }
- .search-section__header__toggle {
- padding: 5px;
- }
- .search-section__header__text {
- flex-grow: 1;
- line-height: 24px;
- }
- .search-section__header__link {
- padding: 2px 10px 0;
- color: $text-muted;
- opacity: 0;
- transition: opacity 150ms ease-in-out;
- }
- .search-item {
- @include list-item();
- display: flex;
- flex-grow: 1;
- height: 37px;
- white-space: nowrap;
- padding: 0px;
- &:hover,
- &.selected {
- background: $list-item-hover-bg;
- .search-item__body-title {
- color: $text-color-strong;
- }
- }
- }
- .search-item__body {
- flex: 1 1 auto;
- overflow: hidden;
- display: flex;
- flex-direction: column;
- justify-content: center;
- padding: 0 10px;
- }
- .search-item__body-title {
- color: $list-item-link-color;
- }
- .search-item__body-folder-title {
- color: $text-color-weak;
- font-size: $font-size-xs;
- line-height: 11px;
- position: relative;
- top: -1px;
- }
- .search-item__icon {
- display: flex;
- align-items: center;
- flex: 0 0 auto;
- font-size: 19px;
- padding: 0 2px 0 10px;
- }
- .search-item__tags {
- display: none;
- padding: 10px;
- }
- .search-item__actions {
- flex: 0 0 auto;
- padding: 0 10px 0 0;
- }
- .search-item__actions__item {
- display: inline-block;
- opacity: 0;
- width: 0;
- transition: all 0.2s ease-in-out;
- .fa-star,
- .fa-star-o {
- color: $orange;
- line-height: 37px;
- }
- }
- .search-item:hover {
- .search-item__actions__item {
- width: 15px;
- opacity: 1;
- }
- }
- .search-button-row {
- text-align: center;
- padding: $spacer * 2 $spacer;
- background: $panel-bg;
- }
- @include media-breakpoint-up(md) {
- .search-container {
- left: $side-menu-width;
- }
- .search-item__tags {
- display: block;
- }
- .search-dropdown__col_2 {
- display: flex;
- margin-bottom: $space-md;
- }
- }
- @include media-breakpoint-up(md) {
- .search-dropdown__col_2 {
- flex-direction: row;
- justify-content: space-between;
- max-width: 700px;
- height: 260px;
- align-items: flex-start;
- }
- .search-filter-box {
- margin: 0;
- }
- }
- @include media-breakpoint-up(lg) {
- .search-dropdown {
- flex-direction: row;
- }
- .search-dropdown__col_2 {
- flex-direction: column;
- }
- .search-filter-box {
- margin-left: $spacer * 1.5;
- margin-bottom: $spacer * 1.5;
- }
- }
|