123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204 |
- /**
- * This file provides styles for the search results page (?do=search)
- * and the AJAX search popup.
- */
- /* general
- ********************************************************************/
- /* search hit in normal text */
- .dokuwiki .search_hit {
- color: var(--ini-text);
- background-color: __highlight__;
- }
- /* "nothing found" at search + media */
- .dokuwiki div.nothing {
- margin-bottom: 1.4em;
- }
- /* search results page
- ********************************************************************/
- /*____________ advanced search form ____________*/
- .dokuwiki .search-results-form fieldset.search-form {
- width: 100%;
- margin: 1em 0;
- input[name="q"] {
- width: 50%;
- }
- button.toggleAssistant {
- float: right;
- }
- .advancedOptions {
- padding: 1em 0;
- > div {
- display: inline-block;
- position: relative;
- margin: 0 0.5em;
- }
- div.toggle {
- // default closed toggle state
- div.current {
- cursor: pointer;
- max-width: 10em;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- &::after {
- content: '▼';
- font-size: smaller;
- color: var(--ini-text-alt);
- }
- }
- div.changed {
- font-weight: bold;
- }
- ul {
- display: none;
- position: absolute;
- border: 1px solid var(--ini-border);
- background-color: var(--ini-background);
- padding: 0.25em 0.5em;
- text-align: left;
- min-width: 10em;
- max-width: 15em;
- max-height: 50vh;
- overflow: auto;
- z-index: 100;
- li {
- margin: 0.25em 0;
- list-style: none;
- a {
- display: block;
- }
- }
- }
- // open toggle state
- &.open {
- div.current::after {
- content: '▲';
- }
- ul {
- display: block;
- }
- }
- }
- }
- }
- [dir=rtl] .search-results-form fieldset.search-form .advancedOptions {
- div.toggle ul {
- text-align: right;
- }
- }
- /*____________ matching pagenames ____________*/
- .dokuwiki div.search_quickresult {
- margin-bottom: 1.4em;
- ul {
- padding: 0;
- li {
- float: left;
- width: 12em;
- margin: 0 1.5em;
- }
- }
- }
- [dir=rtl] .dokuwiki div.search_quickresult ul li {
- float: right;
- }
- /*____________ search results ____________*/
- .dokuwiki dl.search_results {
- margin-bottom: 1.2em;
- /* search heading */
- dt {
- font-weight: normal;
- margin-bottom: .2em;
- }
- /* last modified line */
- dd.meta {
- margin: 0 0 .2em 0;
- }
- /* search snippet */
- dd.snippet {
- color: var(--ini-text-alt);
- background-color: inherit;
- margin: 0 0 1.2em 0;
- /* search hit in search results */
- strong.search_hit {
- font-weight: normal;
- /* color is set in general */
- }
- /* ellipsis separating snippets */
- .search_sep {
- color: var(--ini-text);
- background-color: inherit;
- }
- }
- }
- /* AJAX quicksearch popup
- ********************************************************************/
- .dokuwiki form.search {
- div.no {
- position: relative;
- }
- /* .JSpopup */
- div.ajax_qsearch {
- position: absolute;
- top: 0;
- left: -13.5em; /* -( width of #qsearch__in + padding of .ajax_qsearch + a bit more ) */
- width: 12em;
- padding: 0.5em;
- font-size: .9em;
- z-index: 20;
- text-align: left;
- display: none;
- strong {
- display: block;
- margin-bottom: .3em;
- }
- ul {
- margin: 0 !important;
- padding: 0 !important;
- li {
- margin: 0;
- padding: 0;
- display: block !important;
- }
- }
- }
- }
- [dir=rtl] .dokuwiki form.search div.ajax_qsearch {
- left: auto;
- right: -13.5em;
- text-align: right;
- }
|