Working on editing team games
This commit is contained in:
@@ -17,6 +17,14 @@ div.content {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
input.file {
|
||||
padding: .5em .6em;
|
||||
display: inline-block;
|
||||
border: 1px solid #ccc;
|
||||
box-shadow: inset 0 1px 3px #ddd;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
#menu {
|
||||
width: 100%;
|
||||
height: 40px;
|
||||
@@ -29,6 +37,14 @@ div.content {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
#menu .pure-menu-nonlink {
|
||||
color: #777;
|
||||
padding: .5em 1em;
|
||||
display: block;
|
||||
text-decoration: none;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
#menu .menu-button {
|
||||
display: inline;
|
||||
position: absolute;
|
||||
@@ -57,8 +73,87 @@ div.content {
|
||||
background-color: #191818;
|
||||
}
|
||||
|
||||
input.uuid-field {
|
||||
width: 360px;
|
||||
div.horizontal-scroll {
|
||||
overflow-x: scroll;
|
||||
}
|
||||
|
||||
img.thumbnail {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
}
|
||||
|
||||
.thumbnail-container {
|
||||
display: block;
|
||||
height: 120px;
|
||||
background-color: #EEE;
|
||||
}
|
||||
|
||||
.padding {
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.space {
|
||||
margin: 5px;
|
||||
}
|
||||
|
||||
.space-sides {
|
||||
margin-left: 5px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
.big-space {
|
||||
margin: 10px;
|
||||
}
|
||||
|
||||
.left {
|
||||
text-align: left;
|
||||
}
|
||||
.right {
|
||||
text-align: right;
|
||||
}
|
||||
.center {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.center-all {
|
||||
text-align: center;
|
||||
vertical-align: center;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
table.center td {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
table.padding td {
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.pure-button-error {
|
||||
background-color: #DD0000;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
#modal-overlay {
|
||||
visibility: hidden;
|
||||
position: absolute;
|
||||
left: 0px;
|
||||
top: 0px;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
text-align: center;
|
||||
z-index: 1000;
|
||||
background-color: rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
|
||||
#modal-overlay>div {
|
||||
width: 500px;
|
||||
margin: 100px auto;
|
||||
background-color: #FFF;
|
||||
border: 1px solid #000;
|
||||
border-radius: 10px;
|
||||
padding: 15px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@media (min-width: 40em) {
|
||||
@@ -92,6 +187,11 @@ input.uuid-field {
|
||||
margin-left: 150px;
|
||||
}
|
||||
|
||||
aside.flash.success {
|
||||
background-color: #229af9;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
.content {
|
||||
margin-left: 150px;
|
||||
}
|
||||
|
@@ -15,3 +15,51 @@ document.onkeydown = function(evt) {
|
||||
toggleAdminPanel();
|
||||
}
|
||||
}
|
||||
|
||||
function showModal(options) {
|
||||
var modal = document.getElementById('modal-overlay');
|
||||
document.getElementById('modal-title').innerText = (options.title)?options.title:"";
|
||||
document.getElementById('modal-subtitle').innerText = (options.subtitle)?options.subtitle:"";
|
||||
if(options.body) {
|
||||
document.getElementById('modal-body').innerText = options.body;
|
||||
} else if(options.bodyNode) {
|
||||
document.getElementById('modal-body').appendChild(options.bodyNode);
|
||||
}
|
||||
if(options.buttons) {
|
||||
for(var i = 0; i < options.buttons.length; i++) {
|
||||
var btn;
|
||||
if(options.buttons[i].isSubmit) {
|
||||
btn = document.createElement('submit');
|
||||
} else {
|
||||
btn = document.createElement('a');
|
||||
}
|
||||
options.buttons[i].title = (options.buttons[i].title==undefined)?'':options.buttons[i].title;
|
||||
options.buttons[i].href = (options.buttons[i].href==undefined)?'#':options.buttons[i].href;
|
||||
options.buttons[i].click = (options.buttons[i].click==undefined)?function(){}:options.buttons[i].click;
|
||||
options.buttons[i].class = (options.buttons[i].class==undefined)?'':options.buttons[i].class;
|
||||
options.buttons[i].position = (options.buttons[i].position==undefined)?'right':options.buttons[i].position;
|
||||
|
||||
btn.innerHTML = options.buttons[i].title;
|
||||
btn.title = options.buttons[i].title;
|
||||
btn.href = options.buttons[i].href;
|
||||
btn.className = 'space pure-button '+options.buttons[i].class+' '+options.buttons[i].position;
|
||||
snack.listener(
|
||||
{node:btn, event:'click'},
|
||||
options.buttons[i].click
|
||||
);
|
||||
document.getElementById('modal-buttons').appendChild(btn);
|
||||
}
|
||||
}
|
||||
modal.style.visibility = 'visible';
|
||||
}
|
||||
|
||||
function hideModal() {
|
||||
var modal = document.getElementById('modal-overlay');
|
||||
modal.style.visibility = 'hidden';
|
||||
document.getElementById('modal-title').innerHTML = '';
|
||||
document.getElementById('modal-body').innerHTML = '';
|
||||
var buttonsDiv = document.getElementById('modal-buttons')
|
||||
while(buttonsDiv.firstChild) {
|
||||
buttonsDiv.removeChild(buttonsDiv.firstChild);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user