/*

Copyright 2010, Google Inc.
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

    * Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
    * Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following disclaimer
in the documentation and/or other materials provided with the
distribution.
    * Neither the name of Google Inc. nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,           
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY           
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

*/

@import-less url("../theme.less");

ul.facets-container {
  margin: 0;
  overflow: auto;
  }

li.facet-container {
  display: block;
  clear: both;
  margin: 0 5px 7px;
  background: @chrome_secondary;  
  border: 1px solid @chrome_primary;
  .rounded_corners(7px);
  }

.facet-title {
  padding: 3px 5px;
  background: @chrome_primary;
  font-weight: bold;
  cursor: move;
  border-bottom: 1px solid @chrome_primary;
  .rounded_corners_top(6px);
  
  }

a.facet-title-remove {
  display: block;
  width: 12px;
  height: 12px;
  margin: 2px 0 0 0;
  text-decoration: none;
  background-image: url(../../images/close-map.png);
  background-repeat: no-repeat;
  background-position: 0px 0px;
  }

a.facet-title-remove:hover {
  background-position: -12px 0px;
  }

.facet-expression {
  padding: 3px 5px;
  font-family: monospace;
  background: #fff;
  cursor: text;
  border-bottom: 1px solid @chrome_primary;
  }

.facet-expression:hover {
  background: @fill_editable;
  }

.facet-status {
  font-size: 0.9em;
  padding: 2px 5px;
  }

.facet-controls {
  position: relative;
  font-size: 0.9em;
  padding: 7px 3px;
  background: @chrome_secondary;
  border-bottom: 1px solid @chrome_primary;
  }

.facet-controls-button {
  position: absolute;
  top: 2px;
  right: 2px;
  }
  
.facet-body-message {
  margin: 1em;
  color: @metadata_grey;
  text-align: center;
  }

.facet-body {
  }
  
.facet-body-scrollable {
  height: 17em;
  padding-bottom: 8px;
  background: url(../../images/facet-resize-handle.png) center bottom no-repeat;
  }

.facet-body-inner {
  background: #fff;
  }
  
.facet-body-scrollable .facet-body-inner {
  border-bottom: 1px solid @chrome_primary;
  }

.facet-body.facet-body-scrollable .ui-resizable-s {
  bottom: -5px;
  height: 15px;
  }
  
.facet-body-scrollable .facet-body-inner {
  height: 100%;
  overflow: auto;
  }

.facet-body-controls {
  font-size: 0.85em;
  margin: 5px 0;
  }

.facet-choice {
  padding: 2px 5px;
  clear: both;
  }

.facet-choice:hover {
  background: @fill_secondary;
  }

.facet-choice-selected .facet-choice-label {
  font-weight: bold;
  color: #ff6a00;
  }
.facet-mode-inverted .facet-choice-selected .facet-choice-label {
  text-decoration: line-through;
  color: black;
  }
.facet-choice-link.facet-mode-inverted {
  text-decoration: line-through;
  color: black;
  }

.facet-choice-count, .facet-range-choice-count {
  padding-left: 5px;
  font-size: 0.85em;
  color: @light_grey;
  }

a.facet-choice-link {
  float: right;
  padding-left: 5px;
  font-size: 0.85em;
  color: @link_secondary;
  font-weight: normal;
  }

img.facet-choice-link {
  text-align: baseline;
  cursor: pointer;
  margin-left: 2px;
  float: right;
  }

.facet-range-body {
  padding: 5px;
  }

.facet-range-message {
  color: @metadata_grey;
  }

.facet-range-histogram {
  overflow: hidden;
  }

.facet-range-status {
  margin: 0 0 3px 0;
  color: #000;
  text-align: center;
  }

.facet-range-choices {
  padding: 5px 0 30px 0;
  }

.facet-range-item {
  float: left;
  text-align: left;
  padding: 0 4px;
  }

.facet-range-choice-label {
  font-size: 0.85em;
  }

.facet-range-choice-count {
  margin: -2px 0 0 16px;
  }


.facet-text-body {
  padding: 5px;
  }

.facet-scatterplot-plot-container {
  margin: 5px 0px 5px 5px;
  border: 1px solid #bbb;
  }
        
.facet-scatterplot-plot {
  position: relative;
  }
.facet-scatterplot-image {
  position: absolute;
  }

.facet-scatterplot-body td {
  vertical-align: middle;
  }

.facet-scatterplot-selectors-container .scatterplot-selectors {
  text-align: center;
  }

.facet-scatterplot-selectors-container .scatterplot-export-plot {
  font-size: 95%;
  margin-top: 3em;
  }

.facet-scatterplot-selectors-container .scatterplot-selectors .buttonset {
  margin: 0.8em 0em;
  }

.scatterplot-selectors .ui-button-text-only .ui-button-text {
  font-size: 90%;
  padding: 0.0em 0.4em 0.1em 0.3em;
  }

.scatterplot-selectors .buttonset {
  margin: 0px;
  }

.scatterplot-selectors .buttonset .ui-corner-top { 
  -moz-border-radius-topleft: 0.5em; 
  -webkit-border-top-left-radius: 0.5em; 
  border-top-left-radius: 0.5em; 
  -moz-border-radius-topright: 0.5em; 
  -webkit-border-top-right-radius: 0.5em; 
  border-top-right-radius: 0.5em; 
  }

.scatterplot-selectors .buttonset .ui-corner-bottom { 
  -moz-border-radius-bottomleft: 0.5em; 
  -webkit-border-bottom-left-radius: 0.5em; 
  border-bottom-left-radius: 0.5em; 
  -moz-border-radius-bottomright: 0.5em; 
  -webkit-border-bottom-right-radius: 0.5em; 
  border-bottom-right-radius: 0.5em; 
  }

.scatterplot-selectors .buttonset .ui-corner-right { 
  -moz-border-radius-topright: 0.5em; 
  -webkit-border-top-right-radius: 0.5em; 
  border-top-right-radius: 0.5em; 
  -moz-border-radius-bottomright: 0.5em; 
  -webkit-border-bottom-right-radius: 0.5em; 
  border-bottom-right-radius: 0.5em; 
  }

.scatterplot-selectors .buttonset .ui-corner-left { 
  -moz-border-radius-topleft: 0.5em; 
  -webkit-border-top-left-radius: 0.5em; 
  border-top-left-radius: 0.5em; 
  -moz-border-radius-bottomleft: 0.5em; 
  -webkit-border-bottom-left-radius: 0.5em; 
  border-bottom-left-radius: 0.5em; 
  }

.scatterplot-selectors .scatterplot-dim-selector label {
  width: 32px;
  height: 16px;
  }

.scatterplot-selectors .scatterplot-rot-selector label {
  width: 22px;
  height: 18px;
  background-image: url("../../images/scatterplot-icons.png");
  }
    
.scatterplot-selectors .scatterplot-rot-selector label.rot-ccw-label {
  background-position: -5px -5px;
  }

.scatterplot-selectors .scatterplot-rot-selector label.rot-none-label {
  background-position: -28px -4px;
  }

.scatterplot-selectors .scatterplot-rot-selector label.rot-cw-label {
  background-position: -48px -3px;
  }

.scatterplot-selectors .scatterplot-dot-selector label {
  width: 22px;
  height: 18px;
  background-image: url("../../images/scatterplot-icons.png");
  }

.scatterplot-selectors .scatterplot-dot-selector label.dot-small-label {
  background-position: -5px -25px;
  }

.scatterplot-selectors .scatterplot-dot-selector label.dot-regular-label {
  background-position: -27px -25px;
  }

.scatterplot-selectors .scatterplot-dot-selector label.dot-big-label {
  background-position: -48px -25px;
  }
