kedao
Version:
Rich Text Editor Based On Draft.js
125 lines (112 loc) • 2.03 kB
CSS
.kedao-modal {
position: fixed;
z-index: 99999;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.kedao-modal button {
outline: none;
}
.kedao-modal-mask {
position: absolute;
z-index: 1;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.1);
transition: opacity 0.2s;
}
.kedao-modal-content {
position: absolute;
z-index: 2;
top: 45%;
left: 50%;
max-width: 95%;
background-color: #fff;
border-radius: 2px;
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
transform: translate(-50%, -40%);
transition: transform 0.2s, opacity 0.2s;
}
.kedao-modal-header {
height: 50px;
}
.kedao-modal-caption {
float: left;
margin: 0;
padding: 0 15px;
color: #999999;
font-size: 14px;
font-weight: normal;
line-height: 50px;
}
.kedao-modal-close-button {
float: right;
width: 50px;
height: 50px;
background-color: transparent;
border: none;
color: #ccc;
font-size: 18px;
cursor: pointer;
}
.kedao-modal-close-button:hover {
color: #e74c3c;
}
.kedao-modal-body {
overflow: auto;
}
.kedao-modal-footer {
min-height: 15px;
padding: 0 15px;
overflow: hidden;
}
.kedao-modal-addon-text {
float: left;
color: #999;
font-size: 12px;
line-height: 60px;
}
.kedao-modal-buttons {
float: right;
}
.kedao-modal-cancel,
.kedao-modal-confirm {
height: 36px;
margin: 12px 0 12px 15px;
padding: 0 30px;
border: none;
border-radius: 2px;
font-size: 12px;
font-weight: bold;
cursor: pointer;
}
.kedao-modal-cancel {
background-color: #e8e9ea;
color: #999;
}
.kedao-modal-cancel:hover {
background-color: #d8d9da;
}
.kedao-modal-confirm {
background-color: #3498db;
color: #fff;
}
.kedao-modal-confirm:hover {
background-color: #8bc4ea;
}
.kedao-modal-confirm.disabled {
opacity: 0.3;
pointer-events: none;
filter: grayscale(0.4);
}
.kedao-modal-root.active .kedao-modal-mask {
opacity: 1;
}
.kedao-modal-root.active .kedao-modal-content {
opacity: 1;
transform: translate(-50%, -50%);
}