Commit 9e45ceba authored by yann300's avatar yann300

misc fix

parent 707251a4
...@@ -21,6 +21,8 @@ var css = csjs` ...@@ -21,6 +21,8 @@ var css = csjs`
padding: 2px 16px; padding: 2px 16px;
background-color: ${styles.colors.orange}; background-color: ${styles.colors.orange};
color: ${styles.colors.white}; color: ${styles.colors.white};
display: flex;
justify-content: space-between;
} }
.modalBody { .modalBody {
padding: 1.5em; padding: 1.5em;
...@@ -51,9 +53,12 @@ var css = csjs` ...@@ -51,9 +53,12 @@ var css = csjs`
} }
.modalFooterOk { .modalFooterOk {
cursor: pointer; cursor: pointer;
color: #393939;
} }
.modalFooterCancel { .modalFooterCancel {
margin-left: 1em;
cursor: pointer; cursor: pointer;
color: #393939;
} }
.modalClose { .modalClose {
margin: auto 0; margin: auto 0;
...@@ -109,6 +114,7 @@ module.exports = (title, content, ok, cancel) => { ...@@ -109,6 +114,7 @@ module.exports = (title, content, ok, cancel) => {
function hide () { function hide () {
container.style.display = 'none' container.style.display = 'none'
container.parentElement.removeChild(container)
} }
function show () { function show () {
...@@ -127,8 +133,8 @@ module.exports = (title, content, ok, cancel) => { ...@@ -127,8 +133,8 @@ module.exports = (title, content, ok, cancel) => {
} }
function html () { function html () {
return yo`<div id="modal-dialog" class="${css.modal}" onclick="clickModal()" > return yo`<div id="modal-dialog" class="${css.modal}">
<div class="${css['modalContent']}"> <div class="${css['modalContent']}">
<div class="${css['modalHeader']}"> <div class="${css['modalHeader']}">
<h2></h2> <h2></h2>
<i id="modal-close" title="Close" class="fa fa-times ${css['modalClose']}" aria-hidden="true"></i> <i id="modal-close" title="Close" class="fa fa-times ${css['modalClose']}" aria-hidden="true"></i>
...@@ -136,7 +142,7 @@ function html () { ...@@ -136,7 +142,7 @@ function html () {
<div class="${css['modalBody']}"> - <div class="${css['modalBody']}"> -
</div> </div>
<div class="${css['modalFooter']}"> <div class="${css['modalFooter']}">
<span id="modal-footer-ok" class="modalFooterOk">OK</span><span id="modal-footer-cancel" class="modalFooterCancel">Cancel</span> <span id="modal-footer-ok" class=${css['modalFooterOk']}>OK</span><span id="modal-footer-cancel" class=${css['modalFooterCancel']}>Cancel</span>
</div> </div>
</div> </div>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment