.aside { min-width: 272px; width: 20%; height: 100%; padding: 5px; display: flex; flex-direction: column; border-right: 1px solid #e5e5e5; box-shadow: -2px 0 10px #000; z-index: 9999; background-color: #fff; } .headline { padding-left: 16px; position: relative; } .headline h2 { display: inline-block; line-height: 40px; margin-bottom: 0; } .headline button { width: 40px; height: 40px; padding: 0; margin-left: 2px; display: inline-block; border: none; border-radius: 100%; background: none; cursor: pointer; } .headline button:hover { background: #e9f3ff; } .headline button div { width: 8px; height: 8px; border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 8px solid #000; display: inline-block; } .tripList { min-width: 80%; padding: 5px 0; position: absolute; top: 100%; left: 16px; background: #fff; border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 5px; box-shadow: 0 12px 28px 0 rgba(0, 0, 0, 0.2), 0 2px 4px 0 rgba(0, 0, 0, 0.1); } .tripList ul { margin: 0; padding: 0; list-style-type: none; } .tripList li { padding: 5px; user-select: none; } .tripList li a { padding: 10px 20px 10px 10px; display: block; border-radius: 5px; font-weight: bold; cursor: pointer; } .tripList li a:hover { background-color: #f5f5f5; } .list { margin: 24px 0 0 0; padding: 0; list-style: none; overflow-y: auto; } .listItem { min-height: 56px; margin-bottom: 5px; padding: 10px 16px; display: flex; border-radius: 10px; cursor: pointer; user-select: none; outline: currentcolor none medium; } .listItem:hover { background-color: #f5f5f5; } .listItem:hover > .listItemButton{ display: flex; } .listItemActive { background-color: #e9f3ff !important; } .listItemContent { max-width: calc(100% - 36px); margin: auto 0; flex-grow: 1; } .listItemButton { width: 36px; height: 36px; padding: 9px; margin: auto; display: none; border: none; border-radius: 36px; box-shadow: 0 0 0 1px rgb(0 0 0 / 10%); background: #fff; cursor: pointer; } .listItemButton:hover { background: #fafafa; } .listItemButton svg { margin: auto; } .preformatted { white-space: pre; } @media only screen and (max-width: 500px) { .aside { position: absolute; top: 0; bottom: 0; left: -100vw; transition: left 0.3s ease-in; } .asideOpen { left: 0; } }