.tab-group-openers { display: flex; justify-content: stretch; line-height: 40px; font-size: 16px; margin: 0; } .tab-opener { display: inline-block; flex: 1; text-align: center; padding: 0 13px; background-color: #b3b7c1; color: white; font-size: 20px; font-weight: 600; transition: color .2s ease, background .2s ease; } .tab-opener:not(.tab-visible):hover { cursor: pointer; background-color: transparent; color: rgb(52, 48, 58); } .tab-opener.tab-visible { background-color: transparent; color: rgb(52, 48, 58); }