This commit is contained in:
Denys Konovalov 2020-12-07 19:41:25 +01:00
parent d13884deb5
commit 626eec131b
2 changed files with 16 additions and 5 deletions

@ -140,11 +140,6 @@
// Set handler for scene list toggle. // Set handler for scene list toggle.
sceneListToggleElement.addEventListener('click', toggleSceneList); sceneListToggleElement.addEventListener('click', toggleSceneList);
// // Start with the scene list open on desktop.
// if (!document.body.classList.contains('mobile')) {
// showSceneList();
// }
// Set handler for scene switch. // Set handler for scene switch.
scenes.forEach(function(scene) { scenes.forEach(function(scene) {
var el = document.querySelector('#sceneList .scene[data-id="' + scene.data.id + '"]'); var el = document.querySelector('#sceneList .scene[data-id="' + scene.data.id + '"]');

@ -731,3 +731,19 @@ body.view-control-buttons .viewControlButton {
font-size: 60px; font-size: 60px;
display: inline-block; display: inline-block;
} }
summary {
font-weight: 900;
margin: -.5em -.5em 0;
padding: .5em;
font-size: 20px;
}
details[open] {
padding: .5em;
}
details[open] summary {
border-bottom: 1px solid #aaa;
margin-bottom: .5em;
}