.reactive-label { position: absolute; left: 4px; top: 2px; transition: all .1s; cursor: text; color: #666; } .reactive-label.small { transform: translateY(-100%); font-size: 12px; cursor: default; color: #333; }