froiden-angular2-select
Version:
Angular2 ajax based replacement for select boxes
361 lines (318 loc) • 8.07 kB
CSS
@charset "UTF-8";
body {
position: relative;
font-size: 13px;
}
.ui-select-container{
border: 1px solid #ccc;
}
.ui-select-toggle {
position: relative;
/* hardcoded, should use variable from bootstrap */
padding: 0.375rem 0.75rem;
}
/* Fix Bootstrap dropdown position when inside a input-group */
.input-group > .dropdown {
/* Instead of relative */
position: static;
}
.ui-select-match > .btn-select {
/* Instead of center because of .btn-select */
text-align: left ;
}
.ui-select-match > .caret {
position: absolute;
top: 45%;
right: 15px;
}
.ui-disabled {
background-color: #eceeef;
border-radius: 4px;
position: absolute;
width: 100%;
height: 100%;
z-index: 5;
opacity: 0.6;
top: 0;
left: 0;
cursor: not-allowed;
}
.ui-select-choices {
width: 100%;
height: auto;
max-height: 200px;
overflow-x: hidden;
margin-top: 0;
}
.ui-select-multiple .ui-select-choices {
margin-top: 1px;
}
.ui-select-multiple {
height: auto;
padding: 3px 3px 0 3px;
}
.ui-select-multiple input.ui-select-search {
background-color: transparent ; /* To prevent double background when disabled */
border: none;
outline: none;
height: 1.9em;
margin-bottom: 3px;
/* hardcoded, should use variable from bootstrap, but must be adjusted because... reasons */
padding: 0.375rem 0.55rem;
}
.ui-select-multiple .ui-select-match-item {
outline: 0;
margin: 0 3px 3px 0;
}
.ui-select-choices-row a{
color:#969696;
display:block;
text-decoration:none;
padding:5px 10px;
}
.ui-select-choices-row.active, .ui-select-choices-row:hover{
background:#ccc;
}
.ui-select-choices-row.active a, .ui-select-choices-row:hover a{
color:#ffffff;
}
.btn-select {
display: inline-block;
margin-bottom: 0;
font-weight: normal;
text-align: center;
vertical-align: middle;
touch-action: manipulation;
cursor: pointer;
background-image: none;
border: 1px solid transparent;
white-space: nowrap;
padding: 6px 16px;
font-size: 13px;
line-height: 1.846;
border-radius: 3px;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.btn-select:focus,
.btn-select.focus,
.btn-select:active:focus,
.btn-select:active.focus,
.btn-select.active:focus,
.btn-select.active.focus {
outline: 5px auto -webkit-focus-ring-color;
outline-offset: -2px;
}
.btn-select:hover,
.btn-select:focus,
.btn-select.focus {
color: #666;
text-decoration: none;
}
.btn-select:active,
.btn-select.active {
outline: 0;
background-image: none;
-webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
}
.btn-select.disabled,
.btn-select[disabled],
fieldset[disabled] .btn-select {
cursor: not-allowed;
opacity: 0.65;
filter: alpha(opacity=65);
-webkit-box-shadow: none;
box-shadow: none;
}
.btn-select-default {
color: #666;
background-color: #fff;
border-color: #eee;
}
.btn-select-default:focus,
.btn-select-default.focus {
color: #666;
background-color: #e6e6e6;
border-color: #aeaeae;
}
.btn-select-default:hover {
color: #666;
background-color: #e6e6e6;
border-color: #cfcfcf;
}
.btn-select-default:active,
.btn-select-default.active,
.open > .btn-select-default.dropdown-toggle {
color: #666;
background-color: #e6e6e6;
border-color: #cfcfcf;
}
.btn-select-default:active:hover,
.btn-select-default:active:focus,
.btn-select-default:active.focus,
.btn-select-default.active:hover,
.btn-select-default.active:focus,
.btn-select-default.active.focus,
.open > .btn-select-default.dropdown-toggle:hover,
.open > .btn-select-default.dropdown-toggle:focus,
.open > .btn-select-default.dropdown-toggle.focus {
color: #666;
background-color: #d4d4d4;
border-color: #aeaeae;
}
.btn-select-default:active,
.btn-select-default.active,
.open > .btn-select-default.dropdown-toggle {
background-image: none;
}
.btn-select-default.disabled:hover,
.btn-select-default.disabled:focus,
.btn-select-default.disabled.focus,
.btn-select-default[disabled]:hover,
.btn-select-default[disabled]:focus,
.btn-select-default[disabled].focus,
fieldset[disabled] .btn-select-default:hover,
fieldset[disabled] .btn-select-default:focus,
fieldset[disabled] .btn-select-default.focus {
background-color: #fff;
border-color: #eee;
}
.btn-select-default .badge {
color: #fff;
background-color: #666;
}
.dropup,
.dropdown {
position: relative;
}
.dropdown-toggle:focus {
outline: 0;
}
.dropdown-menu {
position: absolute;
top: 100%;
left: 0;
z-index: 1000;
display: none;
float: left;
min-width: 160px;
padding: 5px 0;
margin: 2px 0 0;
list-style: none;
font-size: 13px;
text-align: left;
background-color: #fff;
border: 1px solid #ccc;
border: 1px solid rgba(0, 0, 0, 0.15);
border-radius: 3px;
-webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
background-clip: padding-box;
}
.dropdown-menu.pull-right,
.page-header .dropdown-menu.actions {
right: 0;
left: auto;
}
.dropdown-menu .divider {
height: 1px;
margin: 10.5px 0;
overflow: hidden;
background-color: #e5e5e5;
}
.dropdown-menu > li > a {
display: block;
padding: 3px 20px;
clear: both;
font-weight: normal;
line-height: 1.846;
color: #666;
white-space: nowrap;
}
.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
text-decoration: none;
color: #141414;
background-color: #eeeeee;
}
.dropdown-menu > .active > a,
.dropdown-menu > .active > a:hover,
.dropdown-menu > .active > a:focus {
color: #fff;
text-decoration: none;
outline: 0;
background-color: #e91e63;
}
.dropdown-menu > .disabled > a,
.dropdown-menu > .disabled > a:hover,
.dropdown-menu > .disabled > a:focus {
color: #bbb;
}
.dropdown-menu > .disabled > a:hover,
.dropdown-menu > .disabled > a:focus {
text-decoration: none;
background-color: transparent;
background-image: none;
filter: progid: DXImageTransform.Microsoft.gradient(enabled=false);
cursor: not-allowed;
}
.open > .dropdown-menu {
display: block;
}
.open > a {
outline: 0;
}
.close {
float: right;
font-size: 19.5px;
font-weight: normal;
line-height: 1;
color: #000;
text-shadow: none;
opacity: 0.2;
filter: alpha(opacity=20);
}
.close:hover,
.close:focus {
color: #000;
text-decoration: none;
cursor: pointer;
opacity: 0.5;
filter: alpha(opacity=50);
}
button.close {
padding: 0;
cursor: pointer;
background: transparent;
border: 0;
-webkit-appearance: none;
}
.single-span {
border: none ;
text-transform: inherit ;
position: relative ;
border-radius: 0 ;
-webkit-box-shadow: unset ;
box-shadow: unset ;
-webkit-transition: unset ;
-o-transition: unset ;
transition: unset ;
background-color: transparent ;
outline: none;
height: 1.9em;
margin-bottom: 3px;
padding: 0.375rem 0.55rem;
width: 100%;
}
.singleInput {
background-color: transparent ; /* To prevent double background when disabled */
border: none;
outline: none;
height: 1.9em;
margin-bottom: 3px;
/* hardcoded, should use variable from bootstrap, but must be adjusted because... reasons */
padding: 0.375rem 0.55rem;
}