Advertisement
Guest User

Untitled

a guest
Apr 19th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. .star-rating {
  2. font-size: 1.5rem;
  3. display: flex;
  4. flex-direction: row-reverse;
  5. justify-content: flex-end;
  6.  
  7. & > input {
  8. display: none;
  9. }
  10.  
  11. & > label:before {
  12. font-size: inherit;
  13. display: inline-block;
  14. font-family: 'Material Icons';
  15. content: 'star_border';
  16. color: #f6a623;
  17. }
  18.  
  19. &:hover > label:before {
  20. color: #aaa;
  21. }
  22.  
  23. & > input:checked ~ label,
  24. &:not(:checked) > label:hover,
  25. &:not(:checked) > label:hover ~ label {
  26. &:before {
  27. content: 'star';
  28. }
  29. }
  30.  
  31. & > input + label:hover,
  32. & > input ~ label:hover,
  33. & > label:hover ~ input ~ label,
  34. & > input ~ label:hover ~ label {
  35. &:before {
  36. color: #f6a623;
  37. }
  38. }
  39.  
  40. // Overwrite materialize styling
  41. label {
  42. height: unset !important;
  43. line-height: unset !important;
  44. padding: 0 !important;
  45. margin: 0 !important;
  46. font-size: inherit !important;
  47.  
  48. &:after {
  49. display: none !important;
  50. }
  51.  
  52. &:before {
  53. position: static !important;
  54. border: none !important;
  55. width: unset !important;
  56. height: unset !important;
  57. line-height: unset !important;
  58. padding: 0 !important;
  59. margin: 0 !important;
  60. }
  61. }
  62. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement