menus.css
ASCII text
1.toolbar { 2list-style: none; 3display: flex; 4justify-content: flex-start; 5flex-wrap: wrap; 6background: var(--color-toolbar); 7color: var(--color-toolbar-text); 8border: var(--border-toolbar); 9box-shadow: var(--shadow-toolbar); 10min-height: var(--haight-toolbar); 11align-items: center; 12gap: var(--gap-toolbar); 13padding: var(--padding-toolbar); 14border-radius: var(--radius-toolbar); 15} 16 17.flexible-space { 18flex: 1 0 auto; 19} 20 21.toolbar.vertical { 22flex-direction: column; 23min-width: var(--width-toolbar); 24align-items: stretch; 25} 26 27.toolbar.vertical * { 28width: 100%; 29} 30 31details:is(.dropdown, .slidein) > summary { 32cursor: pointer; 33height: fit-content; 34display: flex; 35padding-top: 0; 36padding-bottom: 0; 37} 38 39details:is(.dropdown, .slidein) > summary ~ * { 40position: absolute; 41background: var(--color-menu); 42color: var(--color-menu-text); 43box-shadow: var(--shadow-menu); 44padding: var(--padding-menu); 45border-radius: var(--radius-menu); 46gap: var(--gap-menu); 47display: flex; 48align-items: stretch; 49flex-direction: column; 50} 51 52details:is(.dropdown, .slidein) > summary ~ menu > li { 53padding: var(--padding-menu-item); 54min-height: var(--height-menu-item); 55border: var(--border-menu-item); 56background: var(--color-menu-item); 57color: var(--color-menu-item-text); 58position: relative; 59display: flex; 60align-items: center; 61justify-content: space-between; 62} 63 64details:is(.dropdown, .slidein) > summary ~ menu > li:hover { 65background: var(--color-menu-item-hover); 66color: var(--color-menu-item-hover-text); 67} 68 69details.slidein > summary ~ * { 70left: 100%; 71top: 0; 72display: flex; 73align-items: center; 74justify-content: space-between; 75}