| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270 |
- .search-listpage-icon {
- font-size: 16px;
- color: $gray-400;
- }
- .search-listpage-clear {
- position: absolute;
- right: 8px;
- display: none;
- width: 22px;
- height: 22px;
- padding: 8px;
- font-size: 0.6em;
- color: $gray-300;
- }
- .search-typeahead {
- position: relative;
- width: 100%;
- .search-clear {
- position: absolute;
- top: 5px;
- right: 4px;
- z-index: 3;
- width: 24px;
- height: 24px;
- padding: 0;
- color: $gray-400;
- }
- .rbt-menu {
- max-height: none !important;
- margin-top: 3px;
- @extend .dropdown-menu-right;
- @extend .dropdown-menu-md-left;
- @include media-breakpoint-down(sm) {
- left: auto !important;
- width: 90vw;
- }
- li a span {
- .page-path {
- display: inline;
- padding: 0 4px;
- color: inherit;
- }
- .page-list-meta {
- font-size: 0.9em;
- color: $gray-400;
- > span {
- margin-right: 0.3rem;
- }
- }
- }
- }
- }
- // input styles
- .grw-global-search {
- .search-clear {
- top: 3px;
- right: 26px;
- }
- .dropdown-toggle {
- min-width: 95px;
- padding-left: 1.5rem;
- border-top-left-radius: 40px;
- border-bottom-left-radius: 40px;
- }
- .search-typeahead {
- // corner radius
- border-top-right-radius: 40px;
- border-bottom-right-radius: 40px;
- .rbt-input-main {
- padding-right: 58px;
- // corner radius
- border-top-right-radius: 40px;
- border-bottom-right-radius: 40px;
- }
- }
- // using react-bootstrap-typeahead
- // see: https://github.com/ericgio/react-bootstrap-typeahead
- .rbt-input.form-control {
- height: 30px;
- .rbt-input-wrapper {
- margin-left: 8px;
- }
- }
- .form-group:not(.has-error) {
- .rbt-input.form-control {
- border: none;
- }
- }
- .btn-group-submit-search {
- position: absolute;
- top: 0;
- right: 0;
- z-index: 3;
- display: flex;
- align-items: center;
- justify-content: center;
- width: 32px;
- height: 32px;
- }
- }
- // layout
- .grw-global-search-top {
- // centering on navbar
- top: $grw-navbar-height / 2;
- left: 50vw;
- z-index: $zindex-fixed + 1;
- transform: translate(-50%, -50%);
- .rbt-input.form-control {
- width: 200px;
- transition: 0.3s ease-out;
- // focus
- &.focus {
- width: 300px;
- }
- @include media-breakpoint-up(md) {
- width: 300px;
- }
- @include media-breakpoint-up(lg) {
- // focus
- &.focus {
- width: 400px;
- }
- }
- @include media-breakpoint-up(xl) {
- width: 350px;
- // focus
- &.focus {
- width: 450px;
- }
- }
- }
- .search-typeahead {
- border-radius: 0 25px 25px 0;
- }
- }
- .search-result {
- .search-result-list {
- position: sticky;
- top: 64px;
- height: 100vh;
- overflow-y: scroll;
- .nav.nav-pills {
- > li {
- > a {
- padding: 2px 8px;
- border-radius: 0;
- &:hover {
- color: inherit;
- text-decoration: none;
- }
- &.active {
- padding-right: 5px;
- border-right: solid 3px transparent;
- }
- > * {
- margin-right: 3px;
- }
- }
- }
- }
- .search-result-meta {
- margin-bottom: 10px;
- font-weight: bold;
- }
- .search-result-list-delete-checkbox {
- margin: 0 10px 0 0;
- vertical-align: middle;
- }
- }
- .search-result-content {
- padding-bottom: 36px;
- .search-result-page {
- padding-top: 64px;
- // adjust for anchor links by the height of fixed .search-page-input
- margin-top: -64px;
- > h2 {
- margin-right: 10px;
- font-size: 22px;
- line-height: 1em;
- }
- &:first-child > h2 {
- margin-top: 0;
- }
- .wiki {
- padding: 16px;
- font-size: 13px;
- border: solid 1px $gray-300;
- }
- }
- }
- }
- .search-page-input {
- position: sticky;
- top: 15px;
- // placed at front-most
- z-index: 15;
- margin-bottom: 15px;
- .input-group-btn .btn {
- height: 34px;
- padding: 0px 10px;
- }
- }
- // support for your search
- .grw-search-table {
- caption {
- display: table-header-group;
- }
- }
- @include media-breakpoint-down(sm) {
- .grw-search-table {
- th {
- text-align: right;
- }
- td {
- overflow-wrap: anywhere;
- white-space: normal !important;
- }
- @include media-breakpoint-down(xs) {
- th,
- td {
- display: block;
- }
- th {
- text-align: left;
- }
- td {
- padding-top: 0 !important;
- border-top: none !important;
- }
- }
- }
- }
|