@import '@sharedStyles/core.less'; @navbarHeight: 29px; .homebrew nav { position: relative; z-index: 2; display: flex; justify-content: space-between; background-color: #333; color: #ccc; height: @navbarHeight; font-size: 15px; user-select:none; font-family: Alata, open sans; .navItem { display: flex; align-items: center; justify-content: start; height: 100%; padding: 5px; cursor: pointer; max-width: 220px; text-wrap: pretty; &:has(> button, > a) { padding: 0; } &.brewTitle { width: 100%; max-width: none; overflow: hidden; text-overflow: ellipsis; color: #fff; text-align: center; text-transform: initial; white-space: nowrap; letter-spacing: 1px; @media screen and (max-width: 800px) { display: none; } } &.metadata { position: relative; display: flex; flex-grow: 1; align-items: center; height: 100%; padding: 0; i { margin-right: 10px; } .window { position: absolute; bottom: 0; left: 50%; z-index: -1; display: flex; flex-flow: row wrap; align-content: baseline; justify-content: flex-start; width: 440px; max-height: ~'calc(100vh - 28px)'; padding: 0 10px 5px; margin: 0 auto; background-color: #333; border: 3px solid #444; border-top: unset; border-radius: 0 0 5px 5px; box-shadow: inset 0 7px 9px -7px #111; transition: transform 0.4s, opacity 0.4s; &.active { opacity: 1; transform: translateX(-50%) translateY(100%); } &.inactive { opacity: 0; transform: translateX(-50%) translateY(0%); } .row { display: flex; flex-flow: row wrap; width: 100%; h4 { box-sizing: border-box; display: block; flex-grow: 1; flex-basis: 20%; min-width: 76px; padding: 5px 0; color: #bbb; text-align: center; } p { flex-grow: 1; flex-basis: 80%; padding: 5px 0; font-family: 'Open Sans', sans-serif; font-size: 10px; font-weight: normal; text-transform: initial; .tag { display: inline-block; padding: 2px; margin: 2px 2px; background-color: #444; border: 2px solid grey; border-radius: 5px; } a.userPageLink { color: #fff; text-decoration: none; &:hover { text-decoration: underline; } } } &:nth-of-type(even) { background-color: #555; } } } } &.warning { position: relative; color: #fff; background-color: @orange; &:hover > .dropdown { visibility: visible; } .dropdown { position: absolute; top: 28px; left: 0; z-index: 10000; box-sizing: border-box; display: block; visibility: hidden; width: 100%; padding: 13px 5px; text-align: center; background-color: #333; } } &.account { min-width: 100px; &.username { text-transform: none; } } &.save { width: 100px; display:grid; place-items: stretch; &.neverSaved { background-color: @orange; color: #fff; transition: all 0.2s; &:hover { background-color: @green; } } &.saved { color: #666; cursor: initial; } } } .navItem, .menu-wrapper { --activeTriggerColor: #666; &:has(ul):not(:has(ul :is(button, a):not(:disabled))) { color: grey; //faux disabled if all buttons are disabled } &:not(.header):hover { background: #484848; } &:not(.header):has(:popover-open) { background: var(--activeTriggerColor); } &:has(> kbd) { display: flex; gap: 5px; justify-content: space-between; } i { position:absolute; left:5px; &.caret { left:unset; right:5px; } } &.header { cursor: default; place-content: center; } &.recent ul { position: relative; .navItem { position: relative; gap: 5px; height: 2.7em; isolation: isolate; padding-left:5px; &.header { padding: 5px 0; color: #bbb; border-top: 1px solid #888; &:nth-of-type(1) { background-color: darken(@teal, 20%); } &:nth-of-type(2) { background-color: darken(@purple, 30%); } } .clear { width: 55px; padding: 0; cursor: pointer; transition: background-color @defaultDuration; &:hover { background: @red; } } .title { width: 200px; padding-left: 5px; padding-bottom: 10px; .ellipsis(); } .time { position: absolute; left: 5px; bottom: 2px; font-size: 0.8em; color: #888; z-index: -1; } } } .googleDriveStorage { position: relative; img { height: 15px; padding: 0px; margin: -5px; translate: -5px; } } span { text-align: left; } } > ul { display: flex; align-items: center; height: 100%; > .menu-wrapper { height: 100%; text-wrap: nowrap; &:first-child > :is(button, a) { padding-left: 15px; } &:last-child > :is(button, a) { padding-right: 15px; } } ul { background: #333; font-size: 13px; text-transform: capitalize; min-width: 130px; .navItem { min-height: 2.2em; padding-left: 25px; &:last-child { padding-bottom: 10px; } &.save { width: 100%; } &.header { padding-left:5px; text-align: center; } } .nav-section:not(:last-child, :has(+ .header)) { border-bottom: 1px solid; padding-bottom: 5px; margin-bottom: 5px; } button.menu-item { padding:0; } li { margin-block: 2px; } } &:last-child ul { padding-right: 10px; translate: -10px 0; } } button, a { &:disabled { color: #777; } display: grid; place-items: stretch; height: 100%; width: 100%; padding: 5px 10px; @media screen and (max-width: 800px) { padding: 5px; } } a { color: inherit; text-decoration: none; } i.fa-power-off { color: red; &.active { color: #00b634; filter: drop-shadow(0 0 2px #00b634c3); } } kbd { font-size: 0.8em; font-family: monospace; color: #aaa; background: #222; padding: 2px 5px; border-radius: 5px; } }