jiro-ui
Version:
A Mithril.js UI library based from construct-ui
78 lines (71 loc) • 1.97 kB
CSS
.cui-dialog {
display: flex;
align-items: center;
justify-content: center;
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 20; }
.cui-dialog.cui-basic .cui-dialog-header,
.cui-dialog.cui-basic .cui-dialog-footer {
border: none;
background: #ffffff; }
.cui-dialog-content {
width: 600px;
max-width: 97%;
max-height: 97%;
display: flex;
flex-direction: column;
overflow: auto;
-webkit-transform-style: preserve-3d;
-webkit-backface-visibility: hidden;
transform: translate3d(0, 0, 0);
box-shadow: 0px 16px 24px -8px rgba(67, 90, 111, 0.3); }
.fade-enter .cui-dialog-content {
opacity: 0.01;
transform: scale(0.95);
transition: opacity 200ms cubic-bezier(0.4, 1, 0.75, 0.9), transform 200ms cubic-bezier(0.54, 1.12, 0.38, 1.11); }
.fade-enter-active .cui-dialog-content {
opacity: 1;
transform: scale(1); }
.fade-exit .cui-dialog-content {
transition: opacity 200ms cubic-bezier(0.4, 1, 0.75, 0.9), transform 200ms cubic-bezier(0.54, 1.12, 0.38, 1.11); }
.fade-exit-active .cui-dialog-content {
opacity: 0;
transform: scale(0.95); }
.cui-dialog-header {
display: flex;
flex: 0 0 auto;
align-items: center;
border-radius: 4.5px 4.5px 0 0;
border-bottom: solid 1px #c5cdd1;
background: #eceff1;
min-height: 40px;
padding: 15px; }
.cui-dialog-header h3 {
font-weight: normal;
flex: 1 1 auto;
margin-bottom: 1px;
line-height: inherit;
color: #37474f; }
.cui-dialog-close-button {
flex: 0 0 auto; }
.cui-dialog-body {
flex: 1 1 auto;
padding: 15px;
overflow: auto;
background: white; }
.cui-dialog-footer {
flex: 0 0 auto;
padding: 15px;
background: #eceff1;
border-radius: 0 0 4.5px 4.5px;
border-top: solid 1px #c5cdd1; }
.cui-dialog-footer .cui-button {
margin-right: 10px; }
.cui-dialog-footer .cui-button:last-child {
margin: 0; }
.cui-overlay-inline .cui-dialog {
position: absolute; }