.container { position: relative; } .popup { background: #fff; top: calc(100% + 8px); opacity: 1; color: #000; position: absolute; z-index: 100; min-width: 144px; ul { margin-bottom: 0; li { position: relative; &:last-child { margin-bottom: 0; } } } &.bordered { @include font-size(1.6rem); border: 2px solid #000; padding: 2.4rem; ul li { margin-bottom: 1.6rem; &:last-child { margin-bottom: 0; } } } &.tiny { @include font-size(1.4rem); box-shadow: 0 4px 60px rgba(0, 0, 0, 0.1); padding: 1rem; ul li { margin-bottom: 1rem; &:last-child { margin-bottom: 0; } } } &.horizontalAnchorCenter { left: 50%; transform: translateX(-50%); } &.horizontalAnchorRight { right: 0; } .topBorderItem { border-top: 2px solid; padding-top: 1em; } a { border: none; white-space: nowrap; &:hover { img { filter: invert(0); } } } img { filter: invert(1); max-height: 2rem; max-width: 2rem; transition: filter 0.3s; } .icon { display: inline-block; width: 3.6rem; } } // TODO: animation // .popup { // opacity: 1; // transition: opacity 0.3s; // z-index: 1; // &.visible { // opacity: 0; // transition: opacity 0.3s, z-index 0s 0.3s; // z-index: -1; // } // }