@c8y/style
Version:
Styles for Cumulocity IoT applications
162 lines (137 loc) • 3.78 kB
text/less
/* ui-select
* http://github.com/angular-ui/ui-select
* Version: 0.8.3 - 2014-10-14T18:22:05.435Z
* License: MIT
*/
/* Style when highlighting a search. */
.ui-select-highlight {
font-weight: bold;
}
.ui-select-offscreen {
position: absolute ;
top: 0px ;
left: 0px ;
overflow: hidden ;
clip: rect(0 0 0 0) ;
margin: 0 ;
padding: 0 ;
width: 1px ;
height: 1px ;
outline: 0 ;
border: 0 ;
}
/* Select2 theme */
/* Mark invalid Select2 */
.ng-dirty.ng-invalid > a.select2-choice {
border-color: @status-danger;
}
.select2-result-single {
padding-left: 0;
}
/* Selectize theme */
/* Helper class to show styles when focus */
.selectize-input.selectize-focus {
border-color: @form-control-border-color-focus ;
}
/* Fix input width for Selectize theme */
.selectize-control > .selectize-input > input {
width: 100%;
}
/* Fix dropdown width for Selectize theme */
.selectize-control > .selectize-dropdown {
width: 100%;
}
/* Mark invalid Selectize */
.ng-dirty.ng-invalid > div.selectize-input {
border-color: @status-danger;
}
/* Bootstrap theme */
/* Helper class to show styles when focus */
.btn-default-focus {
outline: 5px auto -webkit-focus-ring-color;
outline-offset: -2px;
border-color: @btn-default-border-color-default;
background-color: @btn-default-background-default;
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
color: #333;
text-decoration: none;
}
/* Fix Bootstrap dropdown position when inside a input-group */
.input-group > .ui-select-bootstrap.dropdown {
/* Instead of relative */
position: static;
}
.input-group > .ui-select-bootstrap > input.ui-select-search.form-control {
border-radius: @form-control-border-radius;
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
.ui-select-bootstrap > .ui-select-match {
/* Instead of center because of .btn */
text-align: left;
}
.ui-select-bootstrap > .ui-select-match > .caret {
position: absolute;
top: 45%;
right: 15px;
}
/* See Scrollable Menu with Bootstrap 3 http://stackoverflow.com/questions/19227496 */
.ui-select-bootstrap > .ui-select-choices {
overflow-x: hidden;
max-height: 200px;
width: 100%;
height: auto;
}
.ui-select-multiple.ui-select-bootstrap {
padding: 0.3em;
height: auto;
}
.ui-select-multiple.ui-select-bootstrap input.ui-select-search {
height: 1.666666em;
outline: none;
border: none;
background-color: transparent ; /* To prevent double background when disabled */
}
.ui-select-multiple.ui-select-bootstrap .ui-select-match .close {
font-size: 1.6em;
line-height: 0.75;
}
.ui-select-multiple.ui-select-bootstrap .ui-select-match-item {
outline: 0;
}
.ui-select-bootstrap .ui-select-choices-row > a {
display: block;
clear: both;
padding: 3px 20px;
color: #333;
white-space: nowrap;
font-weight: 400;
line-height: 1.42857143;
}
.ui-select-bootstrap .ui-select-choices-row > a:hover,
.ui-select-bootstrap .ui-select-choices-row > a:focus {
background-color: #f5f5f5;
color: #262626;
text-decoration: none;
}
.ui-select-bootstrap .ui-select-choices-row.active > a {
outline: 0;
background-color: #428bca;
color: #fff;
text-decoration: none;
}
.ui-select-bootstrap .ui-select-choices-row.disabled > a,
.ui-select-bootstrap .ui-select-choices-row.active.disabled > a {
background-color: #fff;
color: #777;
cursor: not-allowed;
}
/* fix hide/show angular animation */
.ui-select-match.ng-hide-add,
.ui-select-search.ng-hide-add {
display: none ;
}
/* Mark invalid Bootstrap */
.ui-select-bootstrap.ng-dirty.ng-invalid > button.btn.ui-select-match {
border-color: @status-danger;
}