multiple-rate.wxss 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. /*
  2. * Author: simsir-lin
  3. * Github: https://github.com/simsir-lin
  4. * Email: 15986907592@163.com
  5. */
  6. .multiple-rate .star, .multiple-rate .star-o {
  7. width: 0;
  8. height: 0;
  9. color: red;
  10. position: relative;
  11. display: inline-block;
  12. vertical-align: middle;
  13. border-left: 12px solid transparent;
  14. border-right: 12px solid transparent;
  15. border-bottom: 10px solid rgb(247, 186, 42);
  16. transform: rotate(180deg);
  17. margin: 0 5px;
  18. }
  19. .multiple-rate .star::after, .multiple-rate .star::before,
  20. .multiple-rate .star-o::after, .multiple-rate .star-o::before {
  21. content: '';
  22. width: 0;
  23. height: 0;
  24. color: red;
  25. position: absolute;
  26. display: inline-block;
  27. border-left: 12px solid transparent;
  28. border-right: 12px solid transparent;
  29. border-bottom: 10px solid rgb(247, 186, 42);
  30. top: -0px;
  31. left: -12px;
  32. }
  33. .multiple-rate .star::after, .multiple-rate .star-o::after {
  34. content: '';
  35. transform: rotate(-68deg);
  36. }
  37. .multiple-rate .star::before, .multiple-rate .star-o::before {
  38. content: '';
  39. transform: rotate(68deg);
  40. }
  41. .multiple-rate .star-o {
  42. border-bottom: 10px solid #ccc;
  43. }
  44. .multiple-rate .star-o::after, .multiple-rate .star-o::before {
  45. border-bottom: 10px solid #ccc;
  46. }
  47. .heart,.heart-o {
  48. position: relative;
  49. display: inline-block;
  50. vertical-align: middle;
  51. width: 12px;
  52. height: 12px;
  53. background-color: red;
  54. border-radius: 2px;
  55. transform: rotate(45deg);
  56. margin: 0 10px;
  57. }
  58. .heart:before,.heart:after,.heart-o:before,.heart-o:after {
  59. content: '';
  60. position: absolute;
  61. display: inline-block;
  62. vertical-align: middle;
  63. width: 12px;
  64. height: 12px;
  65. background-color: red;
  66. border-radius: 50%;
  67. top: 0px;
  68. left: -6px;
  69. }
  70. .heart:after, .heart-o:after {
  71. left: 0px;
  72. top: -6px;
  73. }
  74. .heart-o {
  75. background: #ccc;
  76. }
  77. .heart-o:before,.heart-o:after {
  78. background: #ccc;
  79. }