.ct-unit-changer { display: flex; position: relative; background: #e0e0e0; padding: 1px; border-radius: 3px; transition: background 0.1s ease; > input { flex: 1 0 auto; padding: 0; border-color: #e0e0e0; } &.active { background: transparent; .ct-units-list { transform: scale3d(1, 1, 1); opacity: 1; visibility: visible; } } &:not(.no-unit-list) { &:hover { background: #E4E4E4; } .ct-current-unit { cursor: pointer; &:hover { color: #272727; font-weight: 700; } } } } .ct-current-unit { display: flex; align-items: center; justify-content: center; width: 35px; height: 26px; font-size: 9px; font-weight: 600; letter-spacing: 1px; line-height: normal; cursor: default; text-transform: uppercase; transition: color 0.1s ease, font-weight 0.1s ease; } .ct-units-list { position: absolute; z-index: 3; top: 0; left: 0; display: flex; flex-direction: column; width: 100%; padding: 2px; // padding-top: 27px; border-radius: 4px; background: #fff; box-sizing: border-box; box-shadow: 0 15px 15px rgba(0, 0, 0, 0.08); opacity: 0; visibility: hidden; transform: scale3d(0.95, 0.95, 1); transform-origin: center top; transition: opacity 0.1s ease, visibility 0.1s ease, transform 0.1s ease-out; div { display: flex; justify-content: space-between; &:not(:last-child) { margin-bottom: 2px; padding-bottom: 2px; border-bottom: 1px dashed #eee; } span { display: flex; align-items: center; justify-content: center; // width: calc(50% - 3px); height: 24px; font-size: 9px; font-weight: 600; text-align: center; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; border-radius: 2px; transition: color 0.1s ease, font-weight 0.1s ease, background 0.1s ease; &:hover { color: #272727; font-weight: 700; background: rgba(0, 0, 0, 0.04); } &:first-child { width: calc(50% - 3px); } &:last-child { width: calc(50% - 2px); } } } &:after { position: absolute; content: ''; top: 3px; left: 0px; right: 0; margin: 0 auto; width: 1px; height: calc(100% - 6px); border-left: 1px dashed #eee; } }