Signed-off-by: Jo-Philipp Wich <jo@mein.io>
+.cbi-dropdown:not(.btn):not(.cbi-button),
.uneditable-input {
display: inline-block;
width: 210px;
.uneditable-input {
display: inline-block;
width: 210px;
+.cbi-dropdown:not(.btn):not(.cbi-button),
.cbi-dynlist {
min-width: 210px;
max-width: 400px;
.cbi-dynlist {
min-width: 210px;
max-width: 400px;
.td > input[type=text],
.td > input[type=password],
.td > select,
.td > input[type=text],
.td > input[type=password],
.td > select,
+.td > .cbi-dropdown:not(.btn):not(.cbi-button),
.cbi-dynlist > .add-item > .cbi-dropdown {
width: 100%;
}
.cbi-dynlist > .add-item > .cbi-dropdown {
width: 100%;
}
-.cbi-page-actions > :not([method="post"]):not(.cbi-button-apply):not(.cbi-button-save):not(.cbi-button-reset) {
+.cbi-page-actions > :not([method="post"]):not(.cbi-button-apply):not(.cbi-button-negative):not(.cbi-button-save):not(.cbi-button-reset) {
float: left;
margin-right: .4em;
}
float: left;
margin-right: .4em;
}
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
}
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
}
-.cbi-page-actions .cbi-button-apply + .cbi-button-save {
+.cbi-page-actions .cbi-button-apply + .cbi-button-save,
+.cbi-page-actions .cbi-button-negative + .cbi-button-save {
background: linear-gradient(#fff, #fff 25%, #e6e6e6);
text-shadow: 0 -1px 0 rgba(255, 255, 255, 0.75);
color: #4a4;
}
.cbi-dropdown {
background: linear-gradient(#fff, #fff 25%, #e6e6e6);
text-shadow: 0 -1px 0 rgba(255, 255, 255, 0.75);
color: #4a4;
}
.cbi-dropdown {
- border: 1px solid #ccc;
- border-radius: 3px;
- display: inline-flex;
- padding: 0;
+ display: inline-flex !important;
cursor: pointer;
height: auto;
cursor: pointer;
height: auto;
- background: linear-gradient(#fff 0%, #e9e8e6 100%);
+ padding: 0 !important;
+}
+
+.cbi-dropdown:not(.btn):not(.cbi-button) {
+ background: linear-gradient(#fff 0%, #e9e8e6 100%);
+ border: 1px solid #ccc;
+ border-radius: 3px;
+.cbi-dropdown.btn > ul:not(.dropdown),
+.cbi-dropdown.cbi-button > ul:not(.dropdown) {
+ margin: 0 0 0 13px !important;
+}
+
+.cbi-dropdown.btn.spinning > ul:not(.dropdown),
+.cbi-dropdown.cbi-button.spinning > ul:not(.dropdown) {
+ margin: 0 !important;
+}
+
.cbi-dropdown > ul.preview {
display: none;
}
.cbi-dropdown > ul.preview {
display: none;
}
+.cbi-dropdown.btn > .open,
+.cbi-dropdown.cbi-button > .open {
+ padding: 0 .5em;
+ margin-left: .5em;
+ border-left: 1px solid;
+}
+
-.cbi-dropdown > ul > li[placeholder] {
+.cbi-dropdown:not(.btn):not(.cbi-button) > ul > li[placeholder] {
color: #777;
font-weight: bold;
text-shadow: 1px 1px 0px #fff;
color: #777;
font-weight: bold;
text-shadow: 1px 1px 0px #fff;
.cbi-dropdown > ul > li {
display: none;
.cbi-dropdown > ul > li {
display: none;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
flex-grow: 1;
align-items: center;
align-self: center;
flex-grow: 1;
align-items: center;
align-self: center;
+ color: inherit;
+}
+
+.cbi-dropdown > ul.dropdown > li,
+.cbi-dropdown:not(.btn):not(.cbi-button) > ul > li {
+ padding: .25em;
+ color: #404040;
}
.cbi-dropdown > ul > li .hide-open { display: block; display: initial; }
}
.cbi-dropdown > ul > li .hide-open { display: block; display: initial; }
.cbi-dropdown[multiple][more] > .more,
.cbi-dropdown[multiple][empty] > .more {
flex-grow: 1;
.cbi-dropdown[multiple][more] > .more,
.cbi-dropdown[multiple][empty] > .more {
flex-grow: 1;
+ display: flex !important;
}
.cbi-dropdown[empty] > ul > li,
.cbi-dropdown[optional][open] > ul.dropdown > li[placeholder],
.cbi-dropdown[multiple][open] > ul.dropdown > li > form {
}
.cbi-dropdown[empty] > ul > li,
.cbi-dropdown[optional][open] > ul.dropdown > li[placeholder],
.cbi-dropdown[multiple][open] > ul.dropdown > li > form {
+ display: block !important;
}
.cbi-dropdown[open] > ul.dropdown > li .hide-open { display: none; }
}
.cbi-dropdown[open] > ul.dropdown > li .hide-open { display: none; }
- .cbi-page-actions .cbi-button {
+ .cbi-page-actions .cbi-button:not(.cbi-dropdown) {
flex: 1 1 calc(50% - 2px);
margin: 1px !important;
overflow: hidden;
text-overflow: ellipsis;
}
flex: 1 1 calc(50% - 2px);
margin: 1px !important;
overflow: hidden;
text-overflow: ellipsis;
}
+ .cbi-page-actions .cbi-button-negative,
.cbi-page-actions .cbi-button-primary,
.cbi-page-actions .cbi-button-apply {
flex-basis: calc(100% - -2px);
.cbi-page-actions .cbi-button-primary,
.cbi-page-actions .cbi-button-apply {
flex-basis: calc(100% - -2px);
select,
input[type=text],
input[type=password],
select,
input[type=text],
input[type=password],
+.cbi-dropdown:not(.btn):not(.cbi-button) {
width: 20em;
height: 22px;
font-family: inherit;
width: 20em;
height: 22px;
font-family: inherit;
-.cbi-page-actions .cbi-button-apply + .cbi-button-save {
+.cbi-page-actions .cbi-button-apply + .cbi-button-save,
+.cbi-page-actions .cbi-button-negative + .cbi-button-save {
background: #fff;
color: #595;
}
background: #fff;
color: #595;
}
}
.cbi-page-actions > .cbi-button-apply + .cbi-button-save,
}
.cbi-page-actions > .cbi-button-apply + .cbi-button-save,
+.cbi-page-actions > .cbi-button-negative + .cbi-button-save,
.cbi-page-actions > .cbi-button-save + form[method="post"],
.cbi-page-actions > form[method="post"] + form[method="post"] {
margin-left: 3px;
.cbi-page-actions > .cbi-button-save + form[method="post"],
.cbi-page-actions > form[method="post"] + form[method="post"] {
margin-left: 3px;
position: relative;
padding: 0;
color: #000;
position: relative;
padding: 0;
color: #000;
+.cbi-dropdown:not(.btn):not(.cbi-button) {
+ min-width: 20em;
+}
+
+.cbi-dropdown:not(.btn):not(.cbi-button):hover {
background: linear-gradient(90deg, #a3c2e8 0%, #84aad9 100%);
}
background: linear-gradient(90deg, #a3c2e8 0%, #84aad9 100%);
}
+.cbi-dropdown[open] > ul.dropdown > li {
+ color: #444;
+}
+
.cbi-dropdown[open] > ul.dropdown > li:last-child {
margin-bottom: 0;
border-bottom: none;
.cbi-dropdown[open] > ul.dropdown > li:last-child {
margin-bottom: 0;
border-bottom: none;