mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 00:24:40 +00:00
(ui) bootstrap-select upgrade to v1.9.3
This commit is contained in:
parent
9e4138c4de
commit
976667dc83
2937
src/opnsense/www/js/bootstrap-select.js
vendored
2937
src/opnsense/www/js/bootstrap-select.js
vendored
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
12
src/opnsense/www/js/bootstrap-select.min.js
vendored
12
src/opnsense/www/js/bootstrap-select.min.js
vendored
File diff suppressed because one or more lines are too long
@ -7,23 +7,37 @@
|
||||
|
||||
// Rules
|
||||
.bootstrap-select {
|
||||
/*width: 220px\9; IE8 and below*/
|
||||
//noinspection CssShorthandPropertyValue
|
||||
width: 220px \0; /*IE9 and below*/
|
||||
width: 348px \0; /*IE9 and below*/
|
||||
|
||||
// The selectpicker button
|
||||
> .btn {
|
||||
> .dropdown-toggle {
|
||||
width: 100%;
|
||||
padding-right: 25px;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
> select {
|
||||
position: absolute !important;
|
||||
bottom: 0;
|
||||
left: 50%;
|
||||
width: 0.11px !important;
|
||||
height: 100% !important;
|
||||
padding: 0 !important;
|
||||
opacity: 0 !important;
|
||||
border: none;
|
||||
|
||||
&.mobile-device {
|
||||
top: 0;
|
||||
left: 0;
|
||||
display: block !important;
|
||||
width: 100% !important;
|
||||
z-index: 2;
|
||||
}
|
||||
}
|
||||
|
||||
// Error display
|
||||
.error & .btn {
|
||||
border: 1px solid @color-red-error;
|
||||
}
|
||||
|
||||
// Error display
|
||||
.control-group.error & .dropdown-toggle {
|
||||
.has-error & .dropdown-toggle,
|
||||
.error & .dropdown-toggle {
|
||||
border-color: @color-red-error;
|
||||
}
|
||||
|
||||
@ -35,7 +49,7 @@
|
||||
width: @width-default;
|
||||
}
|
||||
|
||||
.btn:focus {
|
||||
.dropdown-toggle:focus {
|
||||
outline: thin dotted #333333 !important;
|
||||
outline: 5px auto -webkit-focus-ring-color !important;
|
||||
outline-offset: -2px;
|
||||
@ -50,6 +64,10 @@
|
||||
&:not([class*="col-"]) {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
&.input-group-btn {
|
||||
z-index: auto;
|
||||
}
|
||||
}
|
||||
|
||||
// The selectpicker components
|
||||
@ -64,21 +82,20 @@
|
||||
// Forces the pull to the right, if necessary
|
||||
&,
|
||||
&[class*="col-"],
|
||||
.row-fluid &[class*="col-"] {
|
||||
.row &[class*="col-"] {
|
||||
&.dropdown-menu-right {
|
||||
float: right;
|
||||
}
|
||||
}
|
||||
|
||||
.form-search &,
|
||||
.form-inline &,
|
||||
.form-horizontal &,
|
||||
.form-group & {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.form-group-lg &.form-control,
|
||||
.form-group-sm &.form-control {
|
||||
.form-group-lg &.form-control,
|
||||
.form-group-sm &.form-control {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
@ -88,14 +105,7 @@
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.input-append & {
|
||||
margin-left: -1px;
|
||||
}
|
||||
|
||||
.input-prepend & {
|
||||
margin-right: -1px;
|
||||
}
|
||||
|
||||
&.disabled,
|
||||
> .disabled {
|
||||
.cursor-disabled();
|
||||
|
||||
@ -104,8 +114,16 @@
|
||||
}
|
||||
}
|
||||
|
||||
&.bs-container {
|
||||
position: absolute;
|
||||
|
||||
.dropdown-menu {
|
||||
z-index: @zindex-select-dropdown;
|
||||
}
|
||||
}
|
||||
|
||||
// The selectpicker button
|
||||
.btn {
|
||||
.dropdown-toggle {
|
||||
.filter-option {
|
||||
display: inline-block;
|
||||
overflow: hidden;
|
||||
@ -122,18 +140,18 @@
|
||||
}
|
||||
}
|
||||
|
||||
&[class*="col-"] .btn {
|
||||
&[class*="col-"] .dropdown-toggle {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
// The selectpicker dropdown
|
||||
.dropdown-menu {
|
||||
min-width: 100%;
|
||||
z-index: @zindex-select-dropdown;
|
||||
box-sizing: border-box;
|
||||
|
||||
&.inner {
|
||||
position: static;
|
||||
float: none;
|
||||
border: 0;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
@ -144,10 +162,8 @@
|
||||
li {
|
||||
position: relative;
|
||||
|
||||
&:not(.disabled) a:hover small,
|
||||
&:not(.disabled) a:focus small,
|
||||
&.active:not(.disabled) a small {
|
||||
color: @color-blue-hover;
|
||||
&.active small {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
&.disabled a {
|
||||
@ -156,6 +172,10 @@
|
||||
|
||||
a {
|
||||
cursor: pointer;
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none;
|
||||
|
||||
&.opt {
|
||||
position: relative;
|
||||
@ -165,6 +185,7 @@
|
||||
span.check-mark {
|
||||
display: none;
|
||||
}
|
||||
|
||||
span.text {
|
||||
display: inline-block;
|
||||
}
|
||||
@ -195,9 +216,10 @@
|
||||
padding: 3px;
|
||||
background: #f5f5f5;
|
||||
margin: 0 5px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
&.fit-width .btn {
|
||||
&.fit-width .dropdown-toggle {
|
||||
.filter-option {
|
||||
position: static;
|
||||
}
|
||||
@ -224,7 +246,7 @@
|
||||
}
|
||||
|
||||
.bootstrap-select.show-menu-arrow {
|
||||
&.open > .btn {
|
||||
&.open > .dropdown-toggle {
|
||||
z-index: (@zindex-select-dropdown + 1);
|
||||
}
|
||||
|
||||
@ -233,9 +255,7 @@
|
||||
content: '';
|
||||
border-left: 7px solid transparent;
|
||||
border-right: 7px solid transparent;
|
||||
border-bottom-width: 7px;
|
||||
border-bottom-style: solid;
|
||||
border-bottom-color: @color-grey-arrow;
|
||||
border-bottom: 7px solid @color-grey-arrow;
|
||||
position: absolute;
|
||||
bottom: -4px;
|
||||
left: 9px;
|
||||
@ -258,10 +278,8 @@
|
||||
&:before {
|
||||
bottom: auto;
|
||||
top: -3px;
|
||||
border-top: 7px solid @color-grey-arrow;
|
||||
border-bottom: 0;
|
||||
border-top-width: 7px;
|
||||
border-top-style: solid;
|
||||
border-top-color: @color-grey-arrow;
|
||||
}
|
||||
|
||||
&:after {
|
||||
@ -293,12 +311,12 @@
|
||||
}
|
||||
|
||||
.bs-searchbox,
|
||||
.bs-actionsbox {
|
||||
.bs-actionsbox,
|
||||
.bs-donebutton {
|
||||
padding: 4px 8px;
|
||||
}
|
||||
|
||||
.bs-actionsbox {
|
||||
float: left;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
|
||||
@ -307,23 +325,24 @@
|
||||
}
|
||||
}
|
||||
|
||||
.bs-donebutton {
|
||||
float: left;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
|
||||
& .btn-group button {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.bs-searchbox {
|
||||
& + .bs-actionsbox {
|
||||
padding: 0 8px 4px;
|
||||
}
|
||||
|
||||
& input.form-control {
|
||||
& .form-control {
|
||||
margin-bottom: 0;
|
||||
width: 100%;
|
||||
float: none;
|
||||
}
|
||||
}
|
||||
|
||||
.mobile-device {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
display: block !important;
|
||||
width: 100%;
|
||||
height: 100% !important;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
@ -1,16 +1,38 @@
|
||||
/*!
|
||||
* Bootstrap-select v1.9.3 (http://silviomoreto.github.io/bootstrap-select)
|
||||
*
|
||||
* Copyright 2013-2015 bootstrap-select
|
||||
* Licensed under MIT (https://github.com/silviomoreto/bootstrap-select/blob/master/LICENSE)
|
||||
*/
|
||||
|
||||
.bootstrap-select {
|
||||
/*width: 220px\9; IE8 and below*/
|
||||
width: 220px \0;
|
||||
width: 348px \0;
|
||||
/*IE9 and below*/
|
||||
}
|
||||
.bootstrap-select > .btn {
|
||||
.bootstrap-select > .dropdown-toggle {
|
||||
width: 100%;
|
||||
padding-right: 25px;
|
||||
z-index: 1;
|
||||
}
|
||||
.error .bootstrap-select .btn {
|
||||
border: 1px solid #b94a48;
|
||||
.bootstrap-select > select {
|
||||
position: absolute !important;
|
||||
bottom: 0;
|
||||
left: 50%;
|
||||
width: 0.11px !important;
|
||||
height: 100% !important;
|
||||
padding: 0 !important;
|
||||
opacity: 0 !important;
|
||||
border: none;
|
||||
}
|
||||
.control-group.error .bootstrap-select .dropdown-toggle {
|
||||
.bootstrap-select > select.mobile-device {
|
||||
top: 0;
|
||||
left: 0;
|
||||
display: block !important;
|
||||
width: 100% !important;
|
||||
z-index: 2;
|
||||
}
|
||||
.has-error .bootstrap-select .dropdown-toggle,
|
||||
.error .bootstrap-select .dropdown-toggle {
|
||||
border-color: #b94a48;
|
||||
}
|
||||
.bootstrap-select.fit-width {
|
||||
@ -19,7 +41,7 @@
|
||||
.bootstrap-select:not([class*="col-"]):not([class*="form-control"]):not(.input-group-btn) {
|
||||
width: 348px;
|
||||
}
|
||||
.bootstrap-select .btn:focus {
|
||||
.bootstrap-select .dropdown-toggle:focus {
|
||||
outline: thin dotted #333333 !important;
|
||||
outline: 5px auto -webkit-focus-ring-color !important;
|
||||
outline-offset: -2px;
|
||||
@ -32,6 +54,9 @@
|
||||
.bootstrap-select.form-control:not([class*="col-"]) {
|
||||
width: 100%;
|
||||
}
|
||||
.bootstrap-select.form-control.input-group-btn {
|
||||
z-index: auto;
|
||||
}
|
||||
.bootstrap-select.btn-group:not(.input-group-btn),
|
||||
.bootstrap-select.btn-group[class*="col-"] {
|
||||
float: none;
|
||||
@ -40,10 +65,9 @@
|
||||
}
|
||||
.bootstrap-select.btn-group.dropdown-menu-right,
|
||||
.bootstrap-select.btn-group[class*="col-"].dropdown-menu-right,
|
||||
.row-fluid .bootstrap-select.btn-group[class*="col-"].dropdown-menu-right {
|
||||
.row .bootstrap-select.btn-group[class*="col-"].dropdown-menu-right {
|
||||
float: right;
|
||||
}
|
||||
.form-search .bootstrap-select.btn-group,
|
||||
.form-inline .bootstrap-select.btn-group,
|
||||
.form-horizontal .bootstrap-select.btn-group,
|
||||
.form-group .bootstrap-select.btn-group {
|
||||
@ -56,60 +80,67 @@
|
||||
.form-inline .bootstrap-select.btn-group .form-control {
|
||||
width: 100%;
|
||||
}
|
||||
.input-append .bootstrap-select.btn-group {
|
||||
margin-left: -1px;
|
||||
}
|
||||
.input-prepend .bootstrap-select.btn-group {
|
||||
margin-right: -1px;
|
||||
}
|
||||
.bootstrap-select.btn-group.disabled,
|
||||
.bootstrap-select.btn-group > .disabled {
|
||||
cursor: not-allowed;
|
||||
}
|
||||
.bootstrap-select.btn-group.disabled:focus,
|
||||
.bootstrap-select.btn-group > .disabled:focus {
|
||||
outline: none !important;
|
||||
}
|
||||
.bootstrap-select.btn-group .btn .filter-option {
|
||||
.bootstrap-select.btn-group.bs-container {
|
||||
position: absolute;
|
||||
}
|
||||
.bootstrap-select.btn-group.bs-container .dropdown-menu {
|
||||
z-index: 1060;
|
||||
}
|
||||
.bootstrap-select.btn-group .dropdown-toggle .filter-option {
|
||||
display: inline-block;
|
||||
overflow: hidden;
|
||||
width: 100%;
|
||||
text-align: left;
|
||||
}
|
||||
.bootstrap-select.btn-group .btn .caret {
|
||||
.bootstrap-select.btn-group .dropdown-toggle .caret {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
right: 12px;
|
||||
margin-top: -2px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.bootstrap-select.btn-group[class*="col-"] .btn {
|
||||
.bootstrap-select.btn-group[class*="col-"] .dropdown-toggle {
|
||||
width: 100%;
|
||||
}
|
||||
.bootstrap-select.btn-group .dropdown-menu {
|
||||
min-width: 100%;
|
||||
z-index: 1035;
|
||||
box-sizing: border-box;
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.bootstrap-select.btn-group .dropdown-menu.inner {
|
||||
position: static;
|
||||
float: none;
|
||||
border: 0;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
border-radius: 0;
|
||||
box-shadow: none;
|
||||
-webkit-box-shadow: none;
|
||||
box-shadow: none;
|
||||
}
|
||||
.bootstrap-select.btn-group .dropdown-menu li {
|
||||
position: relative;
|
||||
}
|
||||
.bootstrap-select.btn-group .dropdown-menu li:not(.disabled) a:hover small,
|
||||
.bootstrap-select.btn-group .dropdown-menu li:not(.disabled) a:focus small,
|
||||
.bootstrap-select.btn-group .dropdown-menu li.active:not(.disabled) a small {
|
||||
color: rgba(100, 177, 216, 0.4);
|
||||
.bootstrap-select.btn-group .dropdown-menu li.active small {
|
||||
color: #fff;
|
||||
}
|
||||
.bootstrap-select.btn-group .dropdown-menu li.disabled a {
|
||||
cursor: not-allowed;
|
||||
}
|
||||
.bootstrap-select.btn-group .dropdown-menu li a {
|
||||
cursor: pointer;
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none;
|
||||
}
|
||||
.bootstrap-select.btn-group .dropdown-menu li a.opt {
|
||||
position: relative;
|
||||
@ -133,20 +164,24 @@
|
||||
padding: 3px 5px;
|
||||
background: #f5f5f5;
|
||||
border: 1px solid #e3e3e3;
|
||||
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
|
||||
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
|
||||
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
|
||||
pointer-events: none;
|
||||
opacity: 0.9;
|
||||
box-sizing: border-box;
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.bootstrap-select.btn-group .no-results {
|
||||
padding: 3px;
|
||||
background: #f5f5f5;
|
||||
margin: 0 5px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.bootstrap-select.btn-group.fit-width .btn .filter-option {
|
||||
.bootstrap-select.btn-group.fit-width .dropdown-toggle .filter-option {
|
||||
position: static;
|
||||
}
|
||||
.bootstrap-select.btn-group.fit-width .btn .caret {
|
||||
.bootstrap-select.btn-group.fit-width .dropdown-toggle .caret {
|
||||
position: static;
|
||||
top: auto;
|
||||
margin-top: -1px;
|
||||
@ -160,16 +195,14 @@
|
||||
.bootstrap-select.btn-group.show-tick .dropdown-menu li a span.text {
|
||||
margin-right: 34px;
|
||||
}
|
||||
.bootstrap-select.show-menu-arrow.open > .btn {
|
||||
z-index: 1036;
|
||||
.bootstrap-select.show-menu-arrow.open > .dropdown-toggle {
|
||||
z-index: 1061;
|
||||
}
|
||||
.bootstrap-select.show-menu-arrow .dropdown-toggle:before {
|
||||
content: '';
|
||||
border-left: 7px solid transparent;
|
||||
border-right: 7px solid transparent;
|
||||
border-bottom-width: 7px;
|
||||
border-bottom-style: solid;
|
||||
border-bottom-color: rgba(204, 204, 204, 0.2);
|
||||
border-bottom: 7px solid rgba(204, 204, 204, 0.2);
|
||||
position: absolute;
|
||||
bottom: -4px;
|
||||
left: 9px;
|
||||
@ -188,10 +221,8 @@
|
||||
.bootstrap-select.show-menu-arrow.dropup .dropdown-toggle:before {
|
||||
bottom: auto;
|
||||
top: -3px;
|
||||
border-top: 7px solid rgba(204, 204, 204, 0.2);
|
||||
border-bottom: 0;
|
||||
border-top-width: 7px;
|
||||
border-top-style: solid;
|
||||
border-top-color: rgba(204, 204, 204, 0.2);
|
||||
}
|
||||
.bootstrap-select.show-menu-arrow.dropup .dropdown-toggle:after {
|
||||
bottom: auto;
|
||||
@ -212,30 +243,35 @@
|
||||
display: block;
|
||||
}
|
||||
.bs-searchbox,
|
||||
.bs-actionsbox {
|
||||
.bs-actionsbox,
|
||||
.bs-donebutton {
|
||||
padding: 4px 8px;
|
||||
}
|
||||
.bs-actionsbox {
|
||||
float: left;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.bs-actionsbox .btn-group button {
|
||||
width: 50%;
|
||||
}
|
||||
.bs-donebutton {
|
||||
float: left;
|
||||
width: 100%;
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.bs-donebutton .btn-group button {
|
||||
width: 100%;
|
||||
}
|
||||
.bs-searchbox + .bs-actionsbox {
|
||||
padding: 0 8px 4px;
|
||||
}
|
||||
.bs-searchbox input.form-control {
|
||||
.bs-searchbox .form-control {
|
||||
margin-bottom: 0;
|
||||
width: 100%;
|
||||
float: none;
|
||||
}
|
||||
.mobile-device {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
display: block !important;
|
||||
width: 100%;
|
||||
height: 100% !important;
|
||||
opacity: 0;
|
||||
}
|
||||
/*# sourceMappingURL=bootstrap-select.css.map */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user