.zh-strength-meter { position: relative; &-bar { position: relative; height: 4px; margin: 10px auto 6px; background: rgba(0, 0, 0, 0.25); border-radius: 3px; &::before, &::after { position: absolute; z-index: 10; display: block; width: 20%; height: inherit; content: ''; background: transparent; border-color: #ffffff; border-style: solid; border-width: 0 5px 0 5px; } &::before { left: 20%; } &::after { right: 20%; } &--fill { position: absolute; width: 0; height: inherit; background: transparent; border-radius: inherit; transition: width 0.5s ease-in-out, background 0.25s; &[data-score='0'] { width: 20%; background: #e74242; } &[data-score='1'] { width: 40%; background: #ed6f6f; } &[data-score='2'] { width: 60%; background: #efbd47; } &[data-score='3'] { width: 80%; background: rgba(85, 209, 135, 0.5); } &[data-score='4'] { width: 100%; background: #55d187; } } } }