#floatContact { position: fixed; right: 5px; top: 25%; @baitWidth: 42px; @containerWidth: 244px; > .bait, > .container { cursor: pointer; } > .bait { position: absolute; right: 0; top: 0; width: @baitWidth; height: 167px; > img { width: 100%; height: 100%; object-fit: contain; } } > .container { position: absolute; right: -100%; top: 0; width: @containerWidth; height: 286px; background-color: white; z-index: 1; border: 1px #e5e5e5 solid; border-radius: 5px; > .people { position: absolute; width: 78px; height: 96px; left: 50%; top: 0; transform: translate(-50%, -50%); > img { width: 100%; height: 100%; object-fit: contain; } } > .title { text-align: center; font-size: 18px; color: #666; margin-top: 60px; margin-bottom: 15px; } > .contact { padding: 0 10px; > ul { > li { margin-bottom: 7px; height: 35px; > a { padding: 0 10px; height: 100%; background-image: linear-gradient(#eee, #fefefe); border: 1px #eee solid; border-radius: 5px; @iWidth: 20px; > i { width: @iWidth; height: 20px; background-image: var(--show); background-repeat: no-repeat; background-position: center; background-size: contain; } > span { width: calc(100% - @iWidth); padding: 0 10px; font-size: 15px; color: #373937; } &:hover { background-color: #5996ff; background-image: none; > i { background-image: var(--hide); } > span { color: white; } } } } } } > .tel { text-align: center; margin-top: 15px; > img { width: 24px; height: 24px; object-fit: contain; } } > .mob { text-align: center; font-size: 18px; color: #fd3939; font-weight: bold; margin-top: 5px; } } > .bait-fade-enter-active, > .bait-fade-leave-active, > .container-fade-enter-active, > .container-fade-leave-active { transition: all 0.6s; } > .bait-fade-enter { right: ~'-@{baitWidth}'; } > .bait-fade-enter-to { right: 0; } > .bait-fade-leave { right: 0; } > .bait-fade-leave-to { right: ~'-@{baitWidth}'; } > .container-fade-enter { right: ~'-@{containerWidth}'; } > .container-fade-enter-to { right: 0; } > .container-fade-leave { right: 0; } > .container-fade-leave-to { right: ~'-@{containerWidth}'; } }