cheaper shadows

This commit is contained in:
ed 2021-08-14 18:17:40 +02:00
parent 41867f578f
commit d9fa74711d
2 changed files with 11 additions and 2 deletions

View file

@ -353,11 +353,11 @@ window.baguetteBox = (function () {
ebi('bbox-overlay').style.background = sel ?
'rgba(153,34,85,0.7)' : '';
img.style.boxShadow = sel ? '0 0 3em #f4a' : '';
img.style.borderRadius = sel ? '1em' : '';
btnSel.style.color = sel ? '#fff' : '';
btnSel.style.background = sel ? '#d48' : '';
btnSel.style.textShadow = sel ? '1px 1px 0 #b38' : '';
btnSel.style.boxShadow = sel ? '.15em .15em 0 #502' : '';
}
function keyUpHandler(e) {
@ -780,6 +780,12 @@ window.baguetteBox = (function () {
selbg();
mp_ctl();
setVmode();
var prev = QS('.full-image.vis');
if (prev)
prev.classList.remove('vis');
vidimg().closest('div').classList.add('vis');
}
function preloadNext(index) {

View file

@ -1328,9 +1328,12 @@ html.light #tree::-webkit-scrollbar {
max-height: calc(100% - 1.4em);
margin-bottom: 1.4em;
vertical-align: middle;
box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
transition: transform .2s, left .2s, top .2s, width .2s, height .2s;
}
.full-image.vis img,
.full-image.vis video {
box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
}
.full-image video {
background: #333;
}