Commit 8d9f78d0 authored by yann300's avatar yann300

modal styling / @Rob

parent a5a7b12e
......@@ -15,6 +15,7 @@ module.exports = (title, content, ok, cancel, focusSelector) => {
var cancelDiv = document.getElementById('modal-footer-cancel')
cancelDiv.innerHTML = (cancel && cancel.label !== undefined) ? cancel.label : 'Cancel'
cancelDiv.style.display = cancelDiv.innerHTML === '' ? 'none' : 'inline-block'
var modal = document.querySelector(`.${css.modalBody}`)
var modalTitle = document.querySelector(`.${css.modalHeader} h3`)
......
......@@ -17,17 +17,21 @@ var css = csjs`
display: flex;
justify-content: space-between;
background: var(--info);
color: var(--primary);
}
.modalBody {
padding: 1.5em;
line-height: 1.5em;
color: var(--success);
color: var(--primary);
}
.modalBody em {
color: var(--text-secondary);
color: var(--success);
}
.modalBody a {
color: var(--text-secondary);
color: var(--secondary);
}
.modalBody a:hover {
color: var(--success);
}
.modalFooter {
display: flex;
......
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