ui: lobby tweaks & dropdown icon fix
This commit is contained in:
parent
648541bf39
commit
c37bdbe4a1
4 changed files with 9 additions and 17 deletions
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -165,7 +165,7 @@
|
|||
position: absolute;
|
||||
padding:5rem;
|
||||
right:0;
|
||||
top:0;
|
||||
top:1rem;
|
||||
font-size: 20rem;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue