/**
 * This file provides styles for the search results page (?do=search)
 * and the AJAX search popup.
 */

/* search results page
********************************************************************/

/* loading gif */
#dw__loading {
  margin-bottom: 1.4em;
  text-align: center;
}

/*____________ matching pagenames ____________*/

.dokuwiki div.search_quickresult {
  margin-bottom: 1.4em;
}

.dokuwiki div.search_quickresult ul {
  padding: 0;
}
.dokuwiki div.search_quickresult ul li {
  float: left;
  width: 12em;
  margin: 0 1.5em;
}
[dir=rtl] .dokuwiki div.search_quickresult ul li {
  float: right;
}

/*____________ search results ____________*/

.dokuwiki div.search_result {
  margin-bottom: 1.2em;
}
/* search heading */
.dokuwiki dl.search_results dt {
  margin-bottom: .2em;
  font-weight: normal;
}

/* search snippet */
.dokuwiki div.search_result div.search_snippet, /* old, until 2012-01-25 */
.dokuwiki dl.search_results dd /* new */ {
  margin: 0 0 1.2em 0;
  color: __text_alt__;
  background-color: inherit;
}

/* search hit in normal text */
.dokuwiki .search_hit {
  color: __text__;
  background-color: __highlight__;
}
/* search hit in search results */
.dokuwiki div.search_result strong.search_hit, /* old */
.dokuwiki .search_results strong.search_hit /* new */ {
  font-weight: normal;
}
/* ellipsis separating snippets */
.dokuwiki div.search_result .search_sep, /* old */
.dokuwiki .search_results .search_sep /* new */ {
  color: __text__;
  background-color: inherit;
}

/* "nothing found" at search + media */
.dokuwiki div.nothing {
  margin-bottom: 1.4em;
}


/* AJAX quicksearch popup
********************************************************************/

.dokuwiki form.search div.no {
  position: relative;
  z-index: 1;
}

/* .JSpopup */
.dokuwiki form.search div.ajax_qsearch {
  position: absolute;
  top: 0;
  left: -13.5em; /* -( width of #qsearch__in + padding of .ajax_qsearch + a bit more ) */
  z-index: 20;
  display: none;
  width: 12em;
  padding: .5em;
  font-size: .9em;
  text-align: left;
}
[dir=rtl] .dokuwiki form.search div.ajax_qsearch {
  right: -13.5em;
  left: auto;
  text-align: right;
}

.dokuwiki form.search div.ajax_qsearch strong {
  display: block;
  margin-bottom: .3em;
}
.dokuwiki form.search div.ajax_qsearch ul {
  padding: 0 !important;
  margin: 0 !important;
}
.dokuwiki form.search div.ajax_qsearch ul li {
  display: block !important;
  padding: 0;
  margin: 0;
}
