Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. input[type="date"] {
  2. position: relative;
  3. }
  4.  
  5. /* create a new arrow, because we are going to mess up the native one
  6. see "List of symbols" below if you want another, you could also try to add a font-awesome icon.. */
  7. input[type="date"]:after {
  8. font-family: "Font Awesome 5 Free";
  9. font-weight: 900;
  10. content: "\f073";
  11. color: #555;
  12. padding: 0 5px;
  13. }
  14.  
  15. /* change color of symbol on hover */
  16. input[type="date"]:hover:after {
  17. color: #bf1400;
  18. }
  19.  
  20. /* make the native arrow invisible and stretch it over the whole field so you can click anywhere in the input field to trigger the native datepicker*/
  21. input[type="date"]::-webkit-calendar-picker-indicator {
  22. position: absolute;
  23. top: 0;
  24. left: 0;
  25. right: 0;
  26. bottom: 0;
  27. width: auto;
  28. height: auto;
  29. color: transparent;
  30. background: transparent;
  31. }
  32.  
  33. /* adjust increase/decrease button */
  34. input[type="date"]::-webkit-inner-spin-button {
  35. z-index: 1;
  36. }
  37.  
  38. /* adjust clear button */
  39. input[type="date"]::-webkit-clear-button {
  40. z-index: 1;
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement