0
0
mirror of https://github.com/marcrobledo/savegame-editors.git synced 2025-04-28 09:05:10 +00:00
2024-09-22 10:33:51 +02:00

87 lines
1.5 KiB
CSS

#menu[open] {
border: 0px solid gray;
border-radius: 5px;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
display: grid;
grid-template-areas:
'a b';
grid-template-columns: auto 1fr;
height: 100%;
padding: unset;
user-select: none;
width: max-content;
}
#menu .menu-sidebar {
display: none;
}
#menu[data-type="dog"] #menu-sidebar-dog {
display: unset;
}
#menu[data-type="cat"] #menu-sidebar-cat {
display: unset;
}
#menu-close {
position: absolute;
bottom: 0;
right: 0;
}
#menu-content {
grid-area: b;
height: 100%;
min-width: 454px;
position: relative;
width: 100%;
}
#menu-content > div {
margin: 5px;
}
.menu-sidebar {
background: #e6e6e7;
font-family: 'Open Sans',sans-serif;
grid-area: a;
overflow-y: scroll;
padding-left: 5px;
padding-right: 5px;
scrollbar-width: none;
text-align: left;
white-space: nowrap;
}
.menu-sidebar div {
padding: 5px;
}
.menu-sidebar .header {
color: gray;
font-size:small;
font-weight: bold;
}
.menu-sidebar .header:not(:first-of-type) {
padding-top: 10px;
}
.menu-sidebar > div[class^="page-"] {
text-indent: 1em;
}
.menu-sidebar > div[class^="page-"]:hover {
background: #cececf;
border-radius: 5px;
cursor: pointer;
}
.menu-sidebar > div[open] {
background: #cececf;
border-radius: 5px;
}
.sprite {
background-repeat: no-repeat;
display: inline-block;
height: 64px;
margin: 5px;
vertical-align: text-top;
width: 64px;
}