header disappear when mouse not over
This commit is contained in:
@@ -114,12 +114,16 @@ a:not(.disabled):hover, i:not(.disabled):hover {
|
|||||||
top: 0;
|
top: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
z-index: 1000;
|
z-index: 1000;
|
||||||
transition: opacity 0.1s ease-out;
|
transition: opacity 0.2s ease-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header.hide {
|
.app.player .header {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
cursor: none;
|
}
|
||||||
|
|
||||||
|
.app.player:hover .header:not(.hide) {
|
||||||
|
opacity: 0.8;
|
||||||
|
cursor: default;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header .title {
|
.header .title {
|
||||||
@@ -298,7 +302,7 @@ body.drag::before {
|
|||||||
height: 38px;
|
height: 38px;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
transition: all 0.1s ease-out;
|
transition: all 0.2s ease-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
.player:hover .player-controls {
|
.player:hover .player-controls {
|
||||||
|
|||||||
@@ -11,8 +11,13 @@ var TorrentList = require('./torrent-list')
|
|||||||
var isOSX = process.platform === 'darwin'
|
var isOSX = process.platform === 'darwin'
|
||||||
|
|
||||||
function App (state, dispatch) {
|
function App (state, dispatch) {
|
||||||
|
var cls = []
|
||||||
|
if (state.url === '/player') {
|
||||||
|
cls.push('player')
|
||||||
|
}
|
||||||
|
|
||||||
return hx`
|
return hx`
|
||||||
<div class='app'>
|
<div class='app ${cls.join(' ')}'>
|
||||||
${getHeader()}
|
${getHeader()}
|
||||||
<div class='content'>${getView()}</div>
|
<div class='content'>${getView()}</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user