Revert "less/roojs-bootstrap/alert.less"
[roojs1] / less / roojs-bootstrap / select2.less
diff --git a/less/roojs-bootstrap/select2.less b/less/roojs-bootstrap/select2.less
new file mode 100644 (file)
index 0000000..d85414b
--- /dev/null
@@ -0,0 +1,651 @@
+/*
+Version: 3.4.8 Timestamp: Thu May  1 09:50:32 EDT 2014
+*/
+.roo-select2-container {
+    margin: 0;
+    position: relative;
+    /*display: inline-block;*/
+    /* inline-block for ie7 */
+    zoom: 1;
+    *display: inline;
+    vertical-align: middle;
+}
+
+.roo-select2-container,
+.roo-select2-drop,
+.roo-select2-search,
+.roo-select2-search input {
+  /*
+    Force border-box so that % widths fit the parent
+    container without overlap because of margin/padding.
+    More Info : http://www.quirksmode.org/css/box.html
+  */
+  -webkit-box-sizing: border-box; /* webkit */
+     -moz-box-sizing: border-box; /* firefox */
+          box-sizing: border-box; /* css3 */
+}
+
+.roo-select2-container .roo-select2-choice {
+    display: block;
+    height: 26px;
+    padding: 0 0 0 8px;
+    overflow: hidden;
+    position: relative;
+
+    border: 1px solid @gray-light; //#aaa;
+    white-space: nowrap;
+    line-height: 26px;
+    color: @gray-dark; //#444;
+    text-decoration: none;
+
+    border-radius: 4px;
+
+    background-clip: padding-box;
+
+    -webkit-touch-callout: none;
+      -webkit-user-select: none;
+         -moz-user-select: none;
+          -ms-user-select: none;
+              user-select: none;
+
+    background-color: @body-bg;
+    background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, @gray-lighter), color-stop(0.5, @body-bg));
+    background-image: -webkit-linear-gradient(center bottom, @gray-lighter 0%, @body-bg 50%);
+    background-image: -moz-linear-gradient(center bottom, @gray-lighter 0%, @body-bg 50%);
+    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr = '@body-bg', endColorstr = '@gray-lighter', GradientType = 0);
+    background-image: linear-gradient(to top, @gray-lighter 0%, @body-bg 50%);
+}
+
+.roo-select2-container.roo-select2-drop-above .roo-select2-choice {
+    border-bottom-color: @gray-light; //#aaa;
+
+    border-radius: 0 0 4px 4px;
+
+    background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, @gray-lighter), color-stop(0.9, @body-bg));
+    background-image: -webkit-linear-gradient(center bottom, @gray-lighter 0%, @body-bg 90%);
+    background-image: -moz-linear-gradient(center bottom, @gray-lighter 0%, @body-bg 90%);
+    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='@body-bg', endColorstr='@gray-lighter', GradientType=0);
+    background-image: linear-gradient(to bottom, @gray-lighter 0%, @body-bg 90%);
+}
+
+.roo-select2-container.roo-select2-allowclear .roo-select2-choice .roo-select2-chosen {
+    margin-right: 42px;
+}
+
+.roo-select2-container .roo-select2-choice > .roo-select2-chosen {
+    margin-right: 26px;
+    display: block;
+    overflow: hidden;
+
+    white-space: nowrap;
+
+    text-overflow: ellipsis;
+    float: none;
+    width: auto;
+}
+
+.roo-select2-container .roo-select2-choice abbr {
+    display: none;
+    width: 12px;
+    height: 12px;
+    position: absolute;
+    right: 24px;
+    top: 8px;
+
+    font-size: 1px;
+    text-decoration: none;
+
+    border: 0;
+    background: url('@{bootstrap-image-path}/select2/select2.png') right top no-repeat;
+    cursor: pointer;
+    outline: 0;
+}
+
+.roo-select2-container.roo-select2-allowclear .roo-select2-choice abbr {
+    display: inline-block;
+}
+
+.roo-select2-container .roo-select2-choice abbr:hover {
+    background-position: right -11px;
+    cursor: pointer;
+}
+
+.roo-select2-drop-mask {
+    border: 0;
+    margin: 0;
+    padding: 0;
+    position: fixed;
+    left: 0;
+    top: 0;
+    min-height: 100%;
+    min-width: 100%;
+    height: auto;
+    width: auto;
+    opacity: 0;
+    z-index: 9998;
+    /* styles required for IE to work */
+    background-color: @body-bg;
+    filter: alpha(opacity=0);
+}
+
+.roo-select2-drop {
+    width: 100%;
+    margin-top: -1px;
+    position: absolute;
+    z-index: 9999;
+    top: 100%;
+
+    background: @body-bg;
+    color: @gray-base;
+    border: 1px solid @gray-light;
+    border-top: 0;
+
+    border-radius: 0 0 4px 4px;
+
+    -webkit-box-shadow: 0 4px 5px @black-opacity-20;
+            box-shadow: 0 4px 5px @black-opacity-20;
+}
+
+.roo-select2-drop.roo-select2-drop-above {
+    margin-top: 1px;
+    border-top: 1px solid @gray-light; //#aaa;
+    border-bottom: 0;
+
+    border-radius: 4px 4px 0 0;
+
+    -webkit-box-shadow: 0 -4px 5px @black-opacity-20;
+            box-shadow: 0 -4px 5px @black-opacity-20;
+}
+
+.roo-select2-drop-active {
+    border: 1px solid @brand-primary; //#5897fb;
+    border-top: none;
+}
+
+.roo-select2-drop.roo-select2-drop-above.roo-select2-drop-active {
+    border-top: 1px solid @brand-primary; //#5897fb;
+}
+
+.roo-select2-drop-auto-width {
+    border-top: 1px solid @gray-light; //#aaa;
+    width: auto;
+}
+
+.roo-select2-drop-auto-width .roo-select2-search {
+    padding-top: 4px;
+}
+
+.roo-select2-container .roo-select2-choice .roo-select2-arrow {
+    display: inline-block;
+    width: 18px;
+    height: 100%;
+    position: absolute;
+    right: 0;
+    top: 0;
+
+    border-left: 1px solid @gray-light; //#aaa;
+    border-radius: 0 4px 4px 0;
+
+    background-clip: padding-box;
+
+    background: @gray-light;
+    background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, @gray-light), color-stop(0.6, @gray-lighter));
+    background-image: -webkit-linear-gradient(center bottom, @gray-light 0%, @gray-lighter 60%);
+    background-image: -moz-linear-gradient(center bottom, @gray-light 0%, @gray-lighter 60%);
+    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr = '@gray-lighter', endColorstr = '@gray-light', GradientType = 0);
+    background-image: linear-gradient(to top, @gray-light 0%, @gray-lighter 60%);
+}
+
+.roo-select2-container .roo-select2-choice .roo-select2-arrow b {
+    display: block;
+    width: 100%;
+    height: 100%;
+    background: url('@{bootstrap-image-path}/select2/select2.png') no-repeat 0 1px;
+}
+
+.roo-select2-search {
+    display: inline-block;
+    width: 100%;
+    min-height: 26px;
+    margin: 0;
+    padding-left: 4px;
+    padding-right: 4px;
+
+    position: relative;
+    z-index: 10000;
+
+    white-space: nowrap;
+}
+
+.roo-select2-search input {
+    width: 100%;
+    height: auto !important;
+    min-height: 26px;
+    padding: 4px 20px 4px 5px;
+    margin: 0;
+
+    outline: 0;
+    font-family: sans-serif;
+    font-size: 1em;
+
+    border: 1px solid @gray-light;
+    border-radius: 0;
+
+    -webkit-box-shadow: none;
+            box-shadow: none;
+
+    background: @body-bg url('@{bootstrap-image-path}/select2/select2.png') no-repeat 100% -22px;
+    background: url('@{bootstrap-image-path}/select2/select2.png') no-repeat 100% -22px, -webkit-gradient(linear, left bottom, left top, color-stop(0.85, @body-bg), color-stop(0.99, @gray-lighter));
+    background: url('@{bootstrap-image-path}/select2/select2.png') no-repeat 100% -22px, -webkit-linear-gradient(center bottom, @body-bg 85%, @gray-lighter 99%);
+    background: url('@{bootstrap-image-path}/select2/select2.png') no-repeat 100% -22px, -moz-linear-gradient(center bottom, @body-bg 85%, @gray-lighter 99%);
+    background: url('@{bootstrap-image-path}/select2/select2.png') no-repeat 100% -22px, linear-gradient(to bottom, @body-bg 85%, @gray-lighter 99%) 0 0;
+}
+
+.roo-select2-drop.roo-select2-drop-above .roo-select2-search input {
+    margin-top: 4px;
+}
+
+.roo-select2-search input.roo-select2-active {
+    background: @body-bg url('@{bootstrap-image-path}/select2/select2-spinner.gif') no-repeat 100%;
+    background: url('@{bootstrap-image-path}/select2/select2-spinner.gif') no-repeat 100%, -webkit-gradient(linear, left bottom, left top, color-stop(0.85, @body-bg), color-stop(0.99, @gray-lighter));
+    background: url('@{bootstrap-image-path}/select2/select2-spinner.gif') no-repeat 100%, -webkit-linear-gradient(center bottom, @body-bg 85%, @gray-lighter 99%);
+    background: url('@{bootstrap-image-path}/select2/select2-spinner.gif') no-repeat 100%, -moz-linear-gradient(center bottom, @body-bg 85%, @gray-lighter 99%);
+    background: url('@{bootstrap-image-path}/select2/select2-spinner.gif') no-repeat 100%, linear-gradient(to bottom, @body-bg 85%, @gray-lighter 99%) 0 0;
+}
+
+.roo-select2-container-active .roo-select2-choice,
+.roo-select2-container-active .roo-select2-choices {
+    border: 1px solid @brand-primary; //#5897fb;
+    outline: none;
+
+    -webkit-box-shadow: 0 0 5px @black-opacity-50;
+            box-shadow: 0 0 5px @black-opacity-50;
+}
+
+.roo-select2-dropdown-open .roo-select2-choice {
+    border-bottom-color: transparent;
+    -webkit-box-shadow: 0 1px 0 @body-bg inset;
+            box-shadow: 0 1px 0 @body-bg inset;
+
+    border-bottom-left-radius: 0;
+    border-bottom-right-radius: 0;
+
+    background-color: @gray-lighter;
+    background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, @body-bg), color-stop(0.5, @gray-lighter));
+    background-image: -webkit-linear-gradient(center bottom, @body-bg 0%, @gray-lighter 50%);
+    background-image: -moz-linear-gradient(center bottom, @body-bg 0%, @gray-lighter 50%);
+    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='@gray-lighter', endColorstr='@body-bg', GradientType=0);
+    background-image: linear-gradient(to top, @body-bg 0%, @gray-lighter 50%);
+}
+
+.roo-select2-dropdown-open.roo-select2-drop-above .roo-select2-choice,
+.roo-select2-dropdown-open.roo-select2-drop-above .roo-select2-choices {
+    border: 1px solid @brand-primary; //#5897fb;
+    border-top-color: transparent;
+
+    background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, @body-bg), color-stop(0.5, @gray-lighter));
+    background-image: -webkit-linear-gradient(center top, @body-bg 0%, @gray-lighter 50%);
+    background-image: -moz-linear-gradient(center top, @body-bg 0%, @gray-lighter 50%);
+    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='@gray-lighter', endColorstr='@body-bg', GradientType=0);
+    background-image: linear-gradient(to bottom, @body-bg 0%, @gray-lighter 50%);
+}
+
+.roo-select2-dropdown-open .roo-select2-choice .roo-select2-arrow {
+    background: transparent;
+    border-left: none;
+    filter: none;
+}
+.roo-select2-dropdown-open .roo-select2-choice .roo-select2-arrow b {
+    background-position: -18px 1px;
+}
+
+.roo-select2-hidden-accessible {
+    border: 0;
+    clip: rect(0 0 0 0);
+    height: 1px;
+    margin: -1px;
+    overflow: hidden;
+    padding: 0;
+    position: absolute;
+    width: 1px;
+}
+
+/* results */
+.roo-select2-results {
+    max-height: 200px;
+    padding: 0 0 0 4px;
+    margin: 4px 4px 4px 0;
+    position: relative;
+    overflow-x: hidden;
+    overflow-y: auto;
+    -webkit-tap-highlight-color: fade(@gray-base, 0%);
+}
+
+.roo-select2-results ul.roo-select2-result-sub {
+    margin: 0;
+    padding-left: 0;
+}
+
+.roo-select2-results li {
+    list-style: none;
+    display: list-item;
+    background-image: none;
+}
+
+.roo-select2-results li.roo-select2-result-with-children > .roo-select2-result-label {
+    font-weight: bold;
+}
+
+.roo-select2-results .roo-select2-result-label {
+    padding: 3px 7px 4px;
+    margin: 0;
+    cursor: pointer;
+
+    min-height: 1em;
+
+    -webkit-touch-callout: none;
+      -webkit-user-select: none;
+         -moz-user-select: none;
+          -ms-user-select: none;
+              user-select: none;
+}
+
+.roo-select2-results-dept-1 .roo-select2-result-label { padding-left: 20px }
+.roo-select2-results-dept-2 .roo-select2-result-label { padding-left: 40px }
+.roo-select2-results-dept-3 .roo-select2-result-label { padding-left: 60px }
+.roo-select2-results-dept-4 .roo-select2-result-label { padding-left: 80px }
+.roo-select2-results-dept-5 .roo-select2-result-label { padding-left: 100px }
+.roo-select2-results-dept-6 .roo-select2-result-label { padding-left: 110px }
+.roo-select2-results-dept-7 .roo-select2-result-label { padding-left: 120px }
+
+.roo-select2-results .roo-select2-highlighted {
+    background: @brand-primary; //#3875d7;
+    color: @body-bg;
+}
+
+.roo-select2-results li em {
+    background: @brand-warning;
+    font-style: normal;
+}
+
+.roo-select2-results .roo-select2-highlighted em {
+    background: transparent;
+}
+
+.roo-select2-results .roo-select2-highlighted ul {
+    background: @body-bg;
+    color: @gray-base;
+}
+
+
+.roo-select2-results .roo-select2-no-results,
+.roo-select2-results .roo-select2-searching,
+.roo-select2-results .roo-select2-selection-limit {
+    background: @gray-light; //#f4f4f4;
+    display: list-item;
+    padding-left: 5px;
+}
+
+/*
+disabled look for disabled choices in the results dropdown
+*/
+.roo-select2-results .roo-select2-disabled.roo-select2-highlighted {
+    color: @gray-lighter; //#666;
+    background: @gray-light; //#f4f4f4;
+    display: list-item;
+    cursor: default;
+}
+.roo-select2-results .roo-select2-disabled {
+  background: @gray-light; //#f4f4f4;
+  display: list-item;
+  cursor: default;
+}
+
+.roo-select2-results .roo-select2-selected {
+    display: none;
+}
+
+.roo-select2-more-results.roo-select2-active {
+    background: @gray-light url('@{bootstrap-image-path}/select2/select2-spinner.gif') no-repeat 100%;
+}
+
+.roo-select2-more-results {
+    background: @gray-light; //#f4f4f4;
+    display: list-item;
+}
+
+/* disabled styles */
+
+.roo-select2-container.roo-select2-container-disabled .roo-select2-choice {
+    background-color: @gray-light; //#f4f4f4;
+    background-image: none;
+    border: 1px solid @gray-light;
+    cursor: default;
+}
+
+.roo-select2-container.roo-select2-container-disabled .roo-select2-choice .roo-select2-arrow {
+    background-color: @gray-light; //#f4f4f4;
+    background-image: none;
+    border-left: 0;
+}
+
+.roo-select2-container.roo-select2-container-disabled .roo-select2-choice abbr {
+    display: none;
+}
+
+
+/* multiselect */
+
+.roo-select2-container-multi .roo-select2-choices {
+    height: auto !important;
+    height: 1%;
+    margin: 0;
+    padding: 0;
+    /*position: relative;*/
+    border: 1px solid @gray-light;
+    cursor: text;
+    overflow: hidden;
+    background-color: @body-bg;
+    background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(1%, @gray-lighter), color-stop(15%, @body-bg));
+    background-image: -webkit-linear-gradient(top, @gray-lighter 1%, @body-bg 15%);
+    background-image: -moz-linear-gradient(top, @gray-lighter 1%, @body-bg 15%);
+    background-image: linear-gradient(to bottom, @gray-lighter 1%, @body-bg 15%);
+}
+
+.roo-select2-locked {
+  padding: 3px 5px 3px 5px !important;
+}
+
+.roo-select2-container-multi .roo-select2-choices {
+    min-height: 26px;
+}
+
+.roo-select2-container-multi.roo-select2-container-active .roo-select2-choices {
+    border: 1px solid @brand-primary;
+    outline: none;
+
+    -webkit-box-shadow: 0 0 5px @black-opacity-50;
+            box-shadow: 0 0 5px @black-opacity-50;
+}
+.roo-select2-container-multi .roo-select2-choices li {
+    float: left;
+    list-style: none;
+}
+html[dir="rtl"] .roo-select2-container-multi .roo-select2-choices li
+{
+    float: right;
+}
+.roo-select2-container-multi .roo-select2-choices .roo-select2-search-field {
+    margin: 0;
+    padding: 0;
+    white-space: nowrap;
+}
+
+.roo-select2-container-multi .roo-select2-choices .roo-select2-search-field input {
+    padding: 5px;
+    margin: 1px 0;
+
+    font-family: sans-serif;
+    font-size: 100%;
+    color: @gray; //#666;
+    outline: 0;
+    border: 0;
+    -webkit-box-shadow: none;
+            box-shadow: none;
+    background: transparent !important;
+}
+
+.roo-select2-container-multi .roo-select2-choices .roo-select2-search-field input.roo-select2-active {
+    background: @body-bg url('@{bootstrap-image-path}/select2/select2-spinner.gif') no-repeat 100% !important;
+}
+
+.roo-select2-default {
+    color: @gray-light !important;
+}
+
+.roo-select2-container-multi .roo-select2-choices .roo-select2-search-choice {
+    
+    
+    padding: 4px 7px 4px 16px;
+    margin: 0 1px;
+    position: relative;
+    line-height: 13px;
+    color: @gray-dark;
+    cursor: default;
+    border: 1px solid @gray-light;
+    border-radius: 3px;
+  
+    -webkit-touch-callout: none;
+    -webkit-user-select: none;
+    -moz-user-select: none;
+    -ms-user-select: none;
+    user-select: none;
+}
+  
+html[dir="rtl"] .roo-select2-container-multi .roo-select2-choices .roo-select2-search-choice
+{
+    margin-left: 0;
+    margin-right: 5px;
+}
+.roo-select2-container-multi .roo-select2-choices .roo-select2-search-choice .roo-select2-chosen {
+    cursor: default;
+}
+.roo-select2-container-multi .roo-select2-choices .roo-select2-search-choice-focus {
+    background: @gray-light; //#d4d4d4;
+}
+
+.roo-select2-search-choice-close {
+    display: block;
+    width: 12px;
+    height: 13px;
+    position: absolute;
+    right: 3px;
+    top: 4px;
+    font-size: 12px;
+    outline: none;
+    color: @gray-light;
+    /*background: url('@{bootstrap-image-path}/select2/select2.png') right top no-repeat;*/
+}
+
+.roo-select2-search-choice-close:hover {
+    color: @gray-dark;
+}
+
+html[dir="rtl"] .roo-select2-search-choice-close {
+    right: auto;
+    left: 3px;
+}
+
+.roo-select2-container-multi .roo-select2-search-choice-close {
+    left: 3px;
+}
+
+.roo-select2-container-multi .roo-select2-choices .roo-select2-search-choice .roo-select2-search-choice-close:hover {
+  background-position: right -11px;
+}
+.roo-select2-container-multi .roo-select2-choices .roo-select2-search-choice-focus .roo-select2-search-choice-close {
+    background-position: right -11px;
+}
+
+/* disabled styles */
+.roo-select2-container-multi.roo-select2-container-disabled .roo-select2-choices {
+    background-color: @gray-light; //#f4f4f4;
+    background-image: none;
+    border: 1px solid @gray-light;
+    cursor: default;
+}
+
+.roo-select2-container-multi.roo-select2-container-disabled .roo-select2-choices .roo-select2-search-choice {
+    padding: 3px 5px 3px 5px;
+    border: 1px solid @gray-light;
+    background-image: none;
+    background-color: @gray-light; //#f4f4f4;
+}
+
+.roo-select2-container-multi.roo-select2-container-disabled .roo-select2-choices .roo-select2-search-choice .roo-select2-search-choice-close {    display: none;
+    background: none;
+}
+/* end multiselect */
+
+
+.roo-select2-result-selectable .roo-select2-match,
+.roo-select2-result-unselectable .roo-select2-match {
+    text-decoration: underline;
+}
+
+.roo-select2-offscreen, .roo-select2-offscreen:focus {
+    clip: rect(0 0 0 0) !important;
+    width: 1px !important;
+    height: 1px !important;
+    border: 0 !important;
+    margin: 0 !important;
+    padding: 0 !important;
+    overflow: hidden !important;
+    position: absolute !important;
+    outline: 0 !important;
+    left: 0px !important;
+    top: 0px !important;
+}
+
+.roo-select2-display-none {
+    display: none;
+}
+
+.roo-select2-measure-scrollbar {
+    position: absolute;
+    top: -10000px;
+    left: -10000px;
+    width: 100px;
+    height: 100px;
+    overflow: scroll;
+}
+
+/* Retina-ize icons */
+
+@media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-resolution: 2dppx)  {
+    .roo-select2-search input,
+    .roo-select2-search-choice-close,
+    .roo-select2-container .roo-select2-choice abbr,
+    .roo-select2-container .roo-select2-choice .roo-select2-arrow b {
+        background-image: url('@{bootstrap-image-path}/select2/select2x2.png') !important;
+        background-repeat: no-repeat !important;
+        background-size: 60px 40px !important;
+    }
+
+    .roo-select2-search input {
+        background-position: 100% -21px !important;
+    }
+}
+
+.has-error .roo-select2-choices {
+    border-color: @brand-danger; //#a94442;
+    -webkit-box-shadow: inset 0 1px 1px @black-opacity-80;
+    box-shadow: inset 0 1px 1px @black-opacity-80;
+}
+
+.dropdown-menu .roo-select2-result.disabled {
+    background-color: @gray-lighter;
+    color: @gray-light;
+    cursor: not-allowed;
+}
\ No newline at end of file