Guest User

Untitled

a guest
Jan 24th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. <div class="group col-md-12 no-padder form-group require-field">
  2. <input pattern="[0-9]+" class="form-control" [(ngModel)]="price" name="price" type="text" required>
  3. <span class="highlight"></span>
  4. <span class="bar"></span>
  5. <label class="price">rial</label>
  6. </div>
  7.  
  8. .group label {
  9. color: #7B53C1;
  10. font-size: 14px;
  11. font-weight: normal;
  12. position: absolute;
  13. pointer-events: none;
  14. right: 25px;
  15. top: 0px;
  16. transition: 0.2s ease all;
  17. -moz-transition: 0.2s ease all;
  18. -webkit-transition: 0.2s ease all;
  19. }
  20. .group input:focus ~ label, .group input:valid ~ label {
  21. top: -20px;
  22. font-size: 14px;
  23. color: #7B53C1;
  24. }
Add Comment
Please, Sign In to add comment