jspanel4
Version:
A JavaScript library to create highly configurable multifunctional floating panels that can also be used as modal, tooltip, hint or contextmenu
141 lines (122 loc) • 2.96 kB
CSS
/**
* jsPanel - A JavaScript library to create highly configurable multifunctional floating panels that can also be used as modal, tooltip, hint or contextmenu
* @version v4.16.1
* @homepage https://jspanel.de/
* @license MIT
* @author Stefan Sträßer - info@jspanel.de
* @author of dialog extension: Michael Daumling - michael@terrapinlogo.com
* @github https://github.com/Flyer53/jsPanel4.git
*/
/* Dialog adaptation: a simple white box */
.jsPanel-dialog {
min-width: 400px;
margin-top: 50px;
max-height: calc(90vh - 50px);
}
.jsPanel-dialog .jsPanel-content {
display: flex;
flex-direction: column;
overflow: hidden;
/* Add some padding to the dialog content */
padding: 1rem;
}
.jsPanel-dialog .buttonbar {
margin-top: 10px;
padding-top: 10px;
border-top: 1px solid #ccc;
width: 100%;
display: flex;
justify-content: right;
}
.jsPanel-dialog .buttonbar button {
margin-left: 0.5rem;
}
/* Modals in the background are partly transparent */
.jsPanel-modal.background {
opacity: 0.3 ;
}
/* Dialog sizes */
.dialog-sm, .dialog-md, .dialog-lg, .dialog-xl {
max-height: calc(90vh - 50px);
overflow: hidden auto;
margin: 0 auto;
}
.dialog-sm {
width: 400px ;
}
.dialog-md {
width: 600px ;
}
.dialog-lg {
width: 800px ;
}
.dialog-xl {
width: 1000px ;
}
@media (max-width: 767px) {
.dialog-md, .dialog-lg, .dialog-xl {
width: 90vw ;
}
}
@media (max-width: 991px) {
.dialog-lg, .dialog-xl {
width: 90vw ;
}
}
@media (max-width: 1199px) {
.dialog-xl {
width: 90vw ;
}
}
/* A few button colors */
button.blue, button.info {
color: #fff ;
background-color: #039be5 ;
border-color: #039be5 ;
}
button.gray, button.default, button.secondary {
color: #fff;
background-color: #b0bec5 ;
border-color: #b0bec5 ;
}
button.white {
color: #333 ;
background-color: #fff ;
}
button.primary {
color: #fff ;
background-color: #01579b ;
border-color: #01579b ;
}
button.yellow, button.warning {
color: #000 ;
background-color: #f57f17 ;
border-color: #f57f17 ;
}
button.red, button.danger {
color: #fff ;
background-color: #dd2c00 ;
border-color: #dd2c00 ;
}
button.green, button.success {
color: #fff ;
background-color: #2e7d32 ;
border-color: #2e7d32 ;
}
input:disabled, input[readonly] {
cursor: not-allowed ;
background-color: #eee ;
}
/* Radio buttons and checkboxes, followed by a span */
input[type=checkbox], input[type=radio] {
vertical-align: middle;
margin: 0 0.5rem 0 0;
}
input[type=radio] {
margin-bottom: 2px;
}
input:disabled + span {
opacity: 0.4;
cursor: not-allowed;
}
/*# sourceMappingURL=jspanel.dialog.css.map */