ui: lobby tweaks & dropdown icon fix

This commit is contained in:
jean-emmanuel 2018-01-19 01:31:47 +01:00
parent 54c481751e
commit 42f2bd2932
4 changed files with 9 additions and 17 deletions

View file

@ -97,7 +97,6 @@ var SessionManager = class SessionManager {
lobby.list.addEventListener('click', function(e){
e.preventDefault()
e.stopPropagation()
e.target.blur()
if (e.target.hasAttribute('data-session')) {
ipc.send('sessionOpen',{path:e.target.getAttribute('data-session')})
@ -113,22 +112,15 @@ var SessionManager = class SessionManager {
var nws = lobby.footer.appendChild(DOM.create('<a href="#" tabindex="0" class="btn new">'+icon('file')+' New</a>'))
brw.addEventListener('click', (e)=>{
e.stopPropagation()
e.preventDefault()
this.browse()
})
brw.addEventListener('mousedown touchstart', function(e){
if (e.type == 'mousedown') e.preventDefault()
e.target.blur()
})
nws.addEventListener('click', (e)=>{
e.stopPropagation()
e.preventDefault()
this.create()
})
nws.addEventListener('mousedown touchstart', (e)=>{
if (e.type == 'mousedown') e.preventDefault()
e.target.blur()
})
}
lobby.open()

View file

@ -165,7 +165,7 @@
position: absolute;
padding:5rem;
right:0;
top:0;
top:1rem;
font-size: 20rem;
pointer-events: none;
}

View file

@ -135,8 +135,8 @@ body {
left:0;
bottom:0;
right:0;
border:1rem solid var(--color-accent);
opacity: 0.3;
background: var(--color-accent);
opacity: 0.1;
}
}
}
@ -169,8 +169,8 @@ body {
left:0;
bottom:0;
right:0;
border:1rem solid var(--color-accent);
opacity: 0.3;
background: var(--color-accent);
opacity: 0.1;
}
}
}

View file

@ -207,7 +207,7 @@
padding:0 10rem;
right:0;
top:50%;
margin-top:-11rem;
margin-top:-10rem;
font-size: 180%;
height: 20rem;
line-height: 20rem;