/* compone/code-input/code-input.wxss */ .input { margin-top: 240rpx; padding: 0 60rpx; position: relative; display: flex; justify-content: space-between; } .input-item { position: relative; display: inline-block; width: 90rpx; height: 106rpx; background-color: #FFFFFF; border-radius: 12rpx; } /* .input-item:not(:first-child) { margin-left: 26.67rpx; } */ .input-value { display: inline-block; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 28rpx; } .input-password { position: absolute; left: -360rpx; top: 0; height: 90rpx; width: 880rpx; opacity: 0; } .focus { width: 2rpx; height: 50rpx; background-color: #333; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); } .show { display: block; animation: blink 1s linear infinite; } .hide { display: none; } @keyframes blink { 0%, 50% { opacity: 1; } 50.01%, to { opacity: 0; } }