web/data/cubicweb.suggest.css
author Rémi Cardona <remi.cardona@logilab.fr>
Mon, 20 Oct 2014 12:23:13 +0200
changeset 10029 832a2a0b7bd2
parent 5767 1d811df051c2
permissions -rw-r--r--
[facets] Correctly look for inputs of type "hidden" (closes #4502768) jQuery ':hidden' selector looks at CSS visual properties (eg, 'display', 'visibility'). The intent here was probably to look for inputs of type "hidden", which many facets use to store user selection data (eg, FacetRangeWidget). The problem is that regular text inputs (eg the "has_text" facet which has a '<input type="text"/>') will be picked up by this selector if they are inside a folded facet. Chaos and destruction ensue.

/* styles for input with suggestions (as for tags and keywords)
 *
 *  :organization: Logilab
 *  :copyright: 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
 *  :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
 */

div.sgform div.combobox {
  z-index: 300;
  margin-left: 3px;
  width: 150px;
}

div.sgform div.combobox input.suggestions {
  width: 100%;
}

div.sgform  select{
  width: 155px;
}

div.sgformbuttons {
  margin-left: 3px;
}

div.sgformbuttons a {
  font-weight: bold;
  padding:2px 0px;
}

a.sglink {
  color: #000;
  font-weight: bold;
  display: block;
  background: url("puce.png") 98% 5px no-repeat;
  margin-left: 3px;
  padding: 2px 16px 2px 0px;
}

div.suggholder {
  z-index: 300;
  position: absolute;
}