lobby: tab link selection, adjust colors

This commit is contained in:
jean-emmanuel 2017-07-12 21:46:00 +02:00
parent 6d4126cd29
commit e73ed05139
2 changed files with 31 additions and 2 deletions

View file

@ -49,7 +49,7 @@ var callbacks = module.exports = {
if (!window.READ_ONLY) {
}
list.append(`
<a class="btn load" data-session="${data[i]}">
<a href="#" tabIndex="0" class="btn load" data-session="${data[i]}">
${file} <em style="opacity:0.45">(${path})</em>
${window.READ_ONLY? '' : '<span>'+icon('remove')+'</span>'}
</a>
@ -58,6 +58,7 @@ var callbacks = module.exports = {
}
lobby.find('.load').click(function(e){
e.preventDefault()
e.stopPropagation()
ipc.send('sessionOpen',{path:$(this).data('session')})
})

View file

@ -132,6 +132,20 @@ body {
border-top:2rem solid var(--color-bg);
text-transform: none;
font-weight: 500;
a {
box-shadow: none;
&:hover, &:focus {
&:after {
content:"";
position: absolute;
top:0;
left:0;
bottom:0;
border-left:1rem solid var(--color-accent);
opacity: 0.3;
}
}
}
}
.header {
padding:20rem 20rem 18rem;
@ -142,7 +156,7 @@ body {
color:var(--color-accent);
letter-spacing: 1rem;
font-size: 12rem;
background:var(--color-raised);
box-shadow: 0 0 0 1rem var(--color-light) inset;
}
.footer {
@ -151,6 +165,9 @@ body {
text-overflow: ellipsis;
flex-grow: 0;
border-top:2rem solid var(--color-bg);
a {
background:var(--color-raised)
}
}
a {
display: block;
@ -165,6 +182,17 @@ body {
&:hover {
background:var(--color-raised)
}
&:focus {
&:after {
content:"";
position: absolute;
top:0;
left:0;
bottom:0;
border-left:1rem solid var(--color-accent);
opacity: 0.3;
}
}
&:last-child {
border-bottom:0;
}