Hypertabs { display: flex flex-direction: column height: 100% /* needed to stop scroller blowing out */ nav { display: flex background: linear-gradient(to bottom, #efefef, #e5e5e5) section.tabs { padding: .5rem 0 0 .5rem flex-grow: 1 display: flex min-width: 0 div.tab { flex-grow: 1 display: flex align-items: center justify-content: space-between min-width: 3.5rem font-size: .9rem background-color: #efefef overflow: hidden padding: 0 margin-left: .3rem border: none :hover { background-color: #f8f8f8 a.close { visibility: visible } } -selected { color: #222 background-color: #fff :hover { background-color: #fff } a.link { text-decoration: none max-width: calc(100% - 2rem) } a.close { visibility: visible } } -notify { background-color: orange; } a { color: #666 :hover { text-decoration: none } } a.link { flex-grow: 1 flex-shrink: 0 overflow-x: hidden min-width: 0 max-width: calc(100% - 1.4rem) white-space: nowrap text-overflow: ellipsis padding: .45rem 0 .45rem .6rem } a.close { visibility: hidden font-family: monospace line-height: 1rem width: .9rem height: .9rem /* border-radius: 1rem */ margin-right: .3rem display: flex justify-content: center :hover { background: #aaaaaa color: #fff font-weight: 600 } } } } div.navExtra { padding-top: .2rem display: flex align-items: center } } section.content { display: flex height: 100% /* needed to stop making nav weird */ div.page { flex-grow: 1 display: flex /*hack to get give Scroller context it needs */ } } }