input[type="submit"] {
cursor: pointer;
-webkit-appearance: button;
+ word-break: break-all;
}
button[disabled],
label,
input,
+button,
select,
textarea {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
input,
textarea,
select,
-.cbi-dropdown,
+.cbi-dropdown:not(.btn):not(.cbi-button),
.uneditable-input {
display: inline-block;
width: 210px;
- height: 30px;
padding: 4px;
font-size: 13px;
line-height: 18px;
border-radius: 3px;
}
+input,
+select,
+.cbi-dropdown:not(.btn):not(.cbi-button),
+.uneditable-input {
+ height: 30px;
+}
+
.uneditable-input {
color: #808080;
}
-.cbi-dropdown,
+.cbi-dropdown:not(.btn):not(.cbi-button),
.cbi-dynlist {
min-width: 210px;
max-width: 400px;
background-color: #fff;
}
-textarea {
- height: auto !important;
-}
-
.td > input[type=text],
.td > input[type=password],
.td > select,
-.td > .cbi-dropdown,
+.td > .cbi-dropdown:not(.btn):not(.cbi-button),
.cbi-dynlist > .add-item > .cbi-dropdown {
width: 100%;
}
color: #bfbfbf;
}
-.item::after, .btn, .cbi-button, input, textarea {
+.item::after, .btn, .cbi-button, input, button, textarea {
transition: border linear 0.2s, box-shadow linear 0.2s;
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}
.item:hover::after,
-.btn:hover, .cbi-button:hover,
+.btn:hover, .cbi-button:hover, button:hover,
input:focus, textarea:focus {
outline: 0;
border-color: rgba(82, 168, 236, 0.8) !important;
}
input[disabled],
+button[disabled],
select[disabled],
textarea[disabled],
input[readonly],
+button[readonly],
select[readonly],
textarea[readonly] {
background-color: #f5f5f5;
line-height: 3em;
}
+.tr.drag-over-above,
+.tr.drag-over-below {
+ border: 2px solid #0069d6;
+ border-width: 2px 0 0 0;
+}
+
+.tr.drag-over-below {
+ border-width: 0 0 2px 0;
+}
+
/* Patterns.less
* Repeatable UI elements outside the base styles provided from the scaffolding
* ---------------------------------------------------------------------------- */
background: #fff;
box-shadow: 0 0 3px #444;
padding: 1em 1em .5em 1em;
- max-height: 2400px;
min-width: 270px;
}
flex-basis: 100%;
line-height: normal;
margin-bottom: .5em;
+ max-width: 100%;
}
.modal > pre,
}
.cbi-input-invalid,
-.cbi-input-invalid.cbi-dropdown,
+.cbi-input-invalid.cbi-dropdown:not(.btn):not(.cbi-button),
.cbi-input-invalid.cbi-dropdown:not([open]) > ul > li,
.cbi-value-error input {
color: #f00;
clear: both;
}
-.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;
}
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 {
- border: 1px solid #ccc;
- border-radius: 3px;
- display: inline-flex;
- padding: 0;
+ display: inline-flex !important;
cursor: pointer;
height: auto;
- background: linear-gradient(#fff 0%, #e9e8e6 100%);
position: relative;
+ padding: 0 !important;
+}
+
+.cbi-dropdown:not(.btn):not(.cbi-button) {
+ background: linear-gradient(#fff 0%, #e9e8e6 100%);
+ border: 1px solid #ccc;
+ border-radius: 3px;
color: #404040;
}
width: 100%;
}
+.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;
}
padding: 0 .25em;
}
+.cbi-dropdown.btn > .open,
+.cbi-dropdown.cbi-button > .open {
+ padding: 0 .5em;
+ margin-left: .5em;
+ border-left: 1px solid;
+}
+
.cbi-dropdown > .more,
-.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;
.cbi-dropdown > ul > li {
display: none;
- padding: .25em;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
flex-grow: 1;
align-items: center;
align-self: center;
- color: #404040;
+ color: inherit;
+}
+
+.cbi-dropdown > ul.dropdown > li,
+.cbi-dropdown:not(.btn):not(.cbi-button) > ul > li {
min-height: 20px;
+ padding: .25em;
+ color: #404040;
}
.cbi-dropdown > ul > li .hide-open { display: block; display: initial; }
.cbi-dropdown[multiple][more] > .more,
.cbi-dropdown[multiple][empty] > .more {
flex-grow: 1;
- display: flex;
+ display: flex !important;
}
.cbi-dropdown[empty] > ul > li,
.cbi-dropdown[optional][open] > ul.dropdown > li[placeholder],
.cbi-dropdown[multiple][open] > ul.dropdown > li > form {
- display: block;
+ display: block !important;
}
.cbi-dropdown[open] > ul.dropdown > li .hide-open { display: none; }
.cbi-tooltip {
position: absolute;
z-index: 1000;
- left: -1000px;
+ left: -10000px;
box-shadow: 0 0 2px #ccc;
border-radius: 3px;
background: #fff;
.btn.disabled {
cursor: default;
- background-image: none;
opacity: 0.65;
box-shadow: none;
}
.btn[disabled] {
cursor: default;
- background-image: none;
opacity: 0.65;
box-shadow: none;
}
.alert-message {
position: relative;
- padding: 7px 15px;
- margin-bottom: 18px;
+ padding: .5em .5em .25em .5em;
+ margin-bottom: .5em;
color: #404040;
background: linear-gradient(to bottom, #fceec1, #eedc94) repeat-x;
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
*margin-top: 0;
}
-.alert-message a {
- font-weight: bold;
- color: #404040;
-}
-
-.alert-message.danger p a,
-.alert-message.error p a,
-.alert-message.success p a,
-.alert-message.info p a {
- color: #fff;
-}
-
-.alert-message h5 {
- line-height: 18px;
-}
-
+.alert-message h4,
+.alert-message h5,
+.alert-message pre,
+.alert-message ul,
+.alert-message li,
.alert-message p {
- margin-bottom: 0;
+ color: inherit;
+ border: none;
+ line-height: inherit;
+ background: transparent;
+ padding: 0;
+ margin: .25em 0;
}
-.alert-message div {
- margin-top: 5px;
- margin-bottom: 2px;
- line-height: 28px;
+.alert-message button {
+ margin: .25em 0;
}
.label {
.network-status-table .ifacebox-body > span {
flex: 10 10 auto;
+ height: 100%;
}
.network-status-table .ifacebox-body > div {
+ margin: -.125em;
display: flex;
flex-wrap: wrap;
- margin: -.125em;
}
#dsl_status_table .ifacebox-body span > strong {
.ifacebadge.large,
.network-status-table .ifacebox-body .ifacebadge {
- display: inline-flex;
+ display: flex;
flex: 1;
padding: .25em;
min-width: 220px;
margin: .125em;
}
+.ifacebadge.large {
+ display: inline-flex;
+}
+
+.network-status-table .ifacebox-body .ifacebadge > span {
+ overflow: hidden;
+ text-overflow: ellipsis;
+}
+
.ifacebadge > *,
.ifacebadge.large > * {
margin: 0 .125em;
color: #0069d6;
}
+div.cbi-value var[data-tooltip],
+.td.cbi-value-field var[data-tooltip],
+div.cbi-value var.cbi-tooltip-container,
+.td.cbi-value-field var.cbi-tooltip-container {
+ cursor: help;
+ border-bottom: 1px dotted #0069d6;
+}
+
+div.cbi-value var.cbi-tooltip-container,
+.td.cbi-value-field var.cbi-tooltip-container .cbi-tooltip {
+ font-style: normal;
+ white-space: normal;
+ color: #444;
+}
+
+#modal_overlay > .modal.uci-dialog,
+#modal_overlay > .modal.cbi-modal {
+ max-width: 900px;
+}
+
.uci-change-list {
line-height: 170%;
white-space: pre;
.uci-change-legend-label > var {
float: left;
margin-right: 4px;
- width: 10px;
- height: 10px;
+ width: 16px;
+ height: 16px;
display: block;
position: relative;
}
background: #fff;
box-shadow: 0 0 3px #444;
padding: 1em 1em .5em 1em;
- max-height: 2400px;
min-width: 270px;
}
overflow: visible;
transition: opacity .25s ease-in;
}
+
+.cbi-filebrowser {
+ min-width: 210px;
+ max-width: 100%;
+ border: 1px solid #ccc;
+ border-radius: 3px;
+ display: flex;
+ flex-direction: column;
+ opacity: 0;
+ height: 0;
+ overflow: hidden;
+}
+
+.cbi-filebrowser.open {
+ opacity: 1;
+ height: auto;
+ overflow: visible;
+ transition: opacity .25s ease-in;
+}
+
+.cbi-filebrowser > * {
+ max-width: 100%;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ padding: 0 0 .25em 0;
+ margin: .25em .25em 0px .25em;
+ white-space: nowrap;
+ border-bottom: 1px solid #ccc;
+}
+
+.cbi-filebrowser .cbi-button-positive {
+ margin-right: .25em;
+}
+
+.cbi-filebrowser > div {
+ border-bottom: none;
+}
+
+.cbi-filebrowser > ul > li {
+ display: flex;
+ flex-direction: row;
+}
+
+.cbi-filebrowser > ul > li:hover {
+ background: #f5f5f5;
+}
+
+.cbi-filebrowser > ul > li > div:first-child {
+ flex: 10;
+ overflow: hidden;
+ text-overflow: ellipsis;
+}
+
+.cbi-filebrowser > ul > li > div:last-child {
+ flex: 3;
+ text-align: right;
+}
+
+.cbi-filebrowser > ul > li > div:last-child > button {
+ padding: .125em .25em;
+ margin: 1px 0 1px .25em;
+}
+
+.cbi-filebrowser .upload {
+ display: flex;
+ flex-direction: row;
+ flex-wrap: wrap;
+ margin: 0 -.125em .25em -.125em;
+ padding: 0 0 .125em 0px;
+ border-bottom: 1px solid #ccc;
+}
+
+.cbi-filebrowser .upload > * {
+ margin: .125em;
+ flex: 1;
+}
+
+.cbi-filebrowser .upload > .btn {
+ flex-basis: 60px;
+}
+
+.cbi-filebrowser .upload > div {
+ flex: 10;
+ min-width: 150px;
+}
+
+.cbi-filebrowser .upload > div > input {
+ width: 100%;
+}
+
+@keyframes fade-in {
+ 0% { opacity: 0; }
+ 100% { opacity: 1; }
+}
+
+@keyframes fade-out {
+ 0% { opacity: 1; }
+ 100% { opacity: 0; }
+}
+
+.fade-in {
+ animation: fade-in .4s ease;
+}
+
+.fade-out {
+ animation: fade-out .4s ease;
+}