#mdl-domains-menu { display: flex; flex-direction: row; width: 100%; } .mdl-domains-menu-element { display: flex; flex: 1 1 0; flex-direction: column; >a { margin: 0 auto; display: flex; flex-direction: column; text-decoration: none; >div { display: flex; padding: 0; margin: 0 auto; border-radius: 50%; img { margin: auto; } } >h5 { width: 100%; text-align: center; color: var(--e-global-color-text); } } >a:hover { >div { background-color: var(--e-global-color-primary); } >div img { filter: brightness(0) invert(100%); } >h5 { color: var(--e-global-color-primary); } } }