/* Flexible box model classes */
/* Taken from Alex Russell http://infrequently.org/2009/08/css-3-progress/ */
/* This file is a compatability layer.  It allows the usage of flexible box 
model layouts accross multiple browsers, including older browsers.  The newest,
universal implementation of the flexible box model is used when available (see
`Modern browsers` comments below).  Browsers that are known to implement this 
new spec completely include:

    Firefox 28.0+
    Chrome 29.0+
    Internet Explorer 11+ 
    Opera 17.0+

Browsers not listed, including Safari, are supported via the styling under the
`Old browsers` comments below.
*/
.widget-interact > div,
.widget-interact > input {
  padding: 2.5px;
}
.widget-area {
  /*
    LESS file that styles IPython notebook widgets and the area they sit in.

    The widget area typically looks something like this:
     +------------------------------------------+
     | widget-area                              |
     |  +--------+---------------------------+  |
     |  | prompt | widget-subarea            |  |
     |  |        | +-----------------------+ |  |
     |  |        | |         widget        | |  |
     |  |        | +-----------------------+ |  |
     |  |        | +-----------------------+ |  |
     |  |        | |         widget        | |  |
     |  |        | +-----------------------+ |  |
     |  +--------+---------------------------+  |
     +------------------------------------------+
    */
  page-break-inside: avoid;
  /* Old browsers */
  display: -webkit-box;
  -webkit-box-orient: horizontal;
  -webkit-box-align: stretch;
  display: -moz-box;
  -moz-box-orient: horizontal;
  -moz-box-align: stretch;
  display: box;
  box-orient: horizontal;
  box-align: stretch;
  /* Modern browsers */
  display: flex;
  flex-direction: row;
  align-items: stretch;
}
.widget-area .widget-subarea {
  padding: 0.44em 0.4em 0.4em 1px;
  margin-left: 6px;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  /* Old browsers */
  -webkit-box-flex: 2;
  -moz-box-flex: 2;
  box-flex: 2;
  /* Modern browsers */
  flex: 2;
  /* Old browsers */
  -webkit-box-align: start;
  -moz-box-align: start;
  box-align: start;
  /* Modern browsers */
  align-items: flex-start;
  /* Old browsers */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-box-align: stretch;
  display: -moz-box;
  -moz-box-orient: vertical;
  -moz-box-align: stretch;
  display: box;
  box-orient: vertical;
  box-align: stretch;
  /* Modern browsers */
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.widget-area.connection-problems .prompt:after {
  content: "\f127";
  font-family: 'FontAwesome';
  color: #d9534f;
  top: 3px;
  padding: 3px;
}
/* THE CLASSES BELOW CAN APPEAR ANYWHERE IN THE DOM (POSSIBLEY OUTSIDE OF
   THE WIDGET AREA). */
.slide-track {
  /* Slider Track */
  border: 1px solid #CCCCCC;
  background: #FFFFFF;
  border-radius: 4px;
  /* Round the corners of the slide track */
}
.widget-hslider {
  /* Horizontal jQuery Slider 

    Both the horizontal and vertical versions of the slider are characterized
    by a styled div that contains an invisible jQuery slide div which 
    contains a visible slider handle div.  This is requred so we can control
    how the slider is drawn and 'fix' the issue where the slide handle 
    doesn't stop at the end of the slide.

    Both horizontal and vertical sliders have this div nesting:
    +------------------------------------------+
    | widget-(h/v)slider                       |
    |  +--------+---------------------------+  |
    |  | ui-slider                          |  |
    |  |          +------------------+      |  |
    |  |          | ui-slider-handle |      |  |
    |  |          +------------------+      |  |
    |  +--------+---------------------------+  |
    +------------------------------------------+
    */
  /* Fix the padding of the slide track so the ui-slider is sized 
    correctly. */
  padding-left: 8px;
  padding-right: 2px;
  overflow: visible;
  /* Default size of the slider */
  width: 350px;
  height: 5px;
  max-height: 5px;
  margin-top: 13px;
  margin-bottom: 10px;
  /* Style the slider track */
  /* Slider Track */
  border: 1px solid #CCCCCC;
  background: #FFFFFF;
  border-radius: 4px;
  /* Round the corners of the slide track */
  /* Make the div a flex box (makes FF behave correctly). */
  /* Old browsers */
  display: -webkit-box;
  -webkit-box-orient: horizontal;
  -webkit-box-align: stretch;
  display: -moz-box;
  -moz-box-orient: horizontal;
  -moz-box-align: stretch;
  display: box;
  box-orient: horizontal;
  box-align: stretch;
  /* Modern browsers */
  display: flex;
  flex-direction: row;
  align-items: stretch;
}
.widget-hslider .ui-slider {
  /* Inner, invisible slide div */
  /* Old browsers */
  display: -webkit-box;
  -webkit-box-orient: horizontal;
  -webkit-box-align: stretch;
  display: -moz-box;
  -moz-box-orient: horizontal;
  -moz-box-align: stretch;
  display: box;
  box-orient: horizontal;
  box-align: stretch;
  /* Modern browsers */
  display: flex;
  flex-direction: row;
  align-items: stretch;
  /* Old browsers */
  -webkit-box-flex: 1;
  -moz-box-flex: 1;
  box-flex: 1;
  /* Modern browsers */
  flex: 1;
  border: 0px;
  background: none;
}
.widget-hslider .ui-slider .ui-slider-handle {
  width: 12px;
  height: 28px;
  margin-top: -8px;
  border-radius: 4px;
}
.widget-hslider .ui-slider .ui-slider-range {
  height: 12px;
  margin-top: -4px;
}
.widget-vslider {
  /* Vertical jQuery Slider */
  /* Fix the padding of the slide track so the ui-slider is sized 
    correctly. */
  padding-bottom: 5px;
  overflow: visible;
  /* Default size of the slider */
  width: 5px;
  max-width: 5px;
  height: 250px;
  margin-left: 12px;
  /* Style the slider track */
  /* Slider Track */
  border: 1px solid #CCCCCC;
  background: #FFFFFF;
  border-radius: 4px;
  /* Round the corners of the slide track */
  /* Make the div a flex box (makes FF behave correctly). */
  /* Old browsers */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-box-align: stretch;
  display: -moz-box;
  -moz-box-orient: vertical;
  -moz-box-align: stretch;
  display: box;
  box-orient: vertical;
  box-align: stretch;
  /* Modern browsers */
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.widget-vslider .ui-slider {
  /* Inner, invisible slide div */
  /* Old browsers */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-box-align: stretch;
  display: -moz-box;
  -moz-box-orient: vertical;
  -moz-box-align: stretch;
  display: box;
  box-orient: vertical;
  box-align: stretch;
  /* Modern browsers */
  display: flex;
  flex-direction: column;
  align-items: stretch;
  /* Old browsers */
  -webkit-box-flex: 1;
  -moz-box-flex: 1;
  box-flex: 1;
  /* Modern browsers */
  flex: 1;
  border: 0px;
  background: none;
  margin-left: -4px;
  margin-top: 5px;
}
.widget-vslider .ui-slider .ui-slider-handle {
  width: 28px;
  height: 12px;
  margin-left: -9px;
  border-radius: 4px;
}
.widget-vslider .ui-slider .ui-slider-range {
  width: 12px;
  margin-left: -1px;
}
.widget-text {
  /* String Textbox - used for TextBoxView and TextAreaView */
  width: 350px;
  margin: 0px;
}
.widget-listbox {
  /* Listbox */
  width: 350px;
  margin-bottom: 0px;
}
.widget-numeric-text {
  /* Single Line Textbox - used for IntTextView and FloatTextView */
  width: 150px;
  margin: 0px;
}
.widget-hprogress {
  /* Progress Bar */
  margin-top: 6px;
  min-width: 350px;
}
.widget-hprogress .progress-bar {
  /* Disable progress bar animation */
  -webkit-transition: none;
  -moz-transition: none;
  -ms-transition: none;
  -o-transition: none;
  transition: none;
}
.widget-vprogress {
  /* Progress Bar */
  margin-top: 6px;
  min-height: 250px;
  width: 12px;
}
.widget-vprogress .progress-bar {
  /* Disable progress bar animation */
  -webkit-transition: none;
  -moz-transition: none;
  -ms-transition: none;
  -o-transition: none;
  transition: none;
}
.widget-combo-btn {
  /* ComboBox Main Button */
  /* Subtract 25px to account for the drop arrow button */
  min-width: 125px;
}
.widget_item .dropdown-menu li a {
  color: inherit;
}
.widget-valid {
  margin-top: 9px;
  margin-bottom: 10px;
  margin-left: 3px;
  margin-right: 3px;
}
.widget-hbox {
  /* Horizontal widgets */
  /* Old browsers */
  display: -webkit-box;
  -webkit-box-orient: horizontal;
  -webkit-box-align: stretch;
  display: -moz-box;
  -moz-box-orient: horizontal;
  -moz-box-align: stretch;
  display: box;
  box-orient: horizontal;
  box-align: stretch;
  /* Modern browsers */
  display: flex;
  flex-direction: row;
  align-items: stretch;
}
.widget-hbox input[type="checkbox"] {
  margin-top: 9px;
  margin-bottom: 10px;
}
.widget-hbox .widget-label {
  /* Horizontal Label */
  min-width: 10ex;
  padding-right: 8px;
  padding-top: 5px;
  text-align: right;
  vertical-align: text-top;
}
.widget-hbox .widget-readout {
  padding-left: 8px;
  padding-top: 5px;
  text-align: left;
  vertical-align: text-top;
}
.widget-vbox {
  /* Vertical widgets */
  /* Old browsers */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-box-align: stretch;
  display: -moz-box;
  -moz-box-orient: vertical;
  -moz-box-align: stretch;
  display: box;
  box-orient: vertical;
  box-align: stretch;
  /* Modern browsers */
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.widget-vbox .widget-label {
  /* Vertical Label */
  padding-bottom: 5px;
  text-align: center;
  vertical-align: text-bottom;
}
.widget-vbox .widget-readout {
  /* Vertical Label */
  padding-top: 5px;
  text-align: center;
  vertical-align: text-top;
}
.widget-box {
  /* Box */
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  /* Old browsers */
  -webkit-box-align: start;
  -moz-box-align: start;
  box-align: start;
  /* Modern browsers */
  align-items: flex-start;
}
.widget-radio-box {
  /* Contains RadioButtonsWidget */
  /* Old browsers */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-box-align: stretch;
  display: -moz-box;
  -moz-box-orient: vertical;
  -moz-box-align: stretch;
  display: box;
  box-orient: vertical;
  box-align: stretch;
  /* Modern browsers */
  display: flex;
  flex-direction: column;
  align-items: stretch;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  padding-top: 4px;
}
.widget-radio-box label {
  margin-top: 0px;
  margin-left: 20px;
}
