You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

150 lines
2.3 KiB

  1. /*******************************
  2. Star Rating
  3. *******************************/
  4. .ui.rating {
  5. display: inline-block;
  6. vertical-align: middle;
  7. margin: 0em 0.5em;
  8. }
  9. .ui.rating:first-child {
  10. margin-left: 0em;
  11. }
  12. .ui.rating:last-child {
  13. margin-right: 0em;
  14. }
  15. .ui.rating:after {
  16. display: block;
  17. content: '';
  18. visibility: hidden;
  19. clear: both;
  20. height: 0;
  21. }
  22. /* Icon */
  23. .ui.rating .icon {
  24. cursor: default;
  25. float: left;
  26. margin: 0em;
  27. width: 1em;
  28. height: auto;
  29. padding: 0em;
  30. font-weight: normal;
  31. font-style: normal;
  32. }
  33. .ui.rating .icon:after {
  34. content: "\2605";
  35. color: rgba(0, 0, 0, 0.15);
  36. -webkit-transition:
  37. color 0.3s ease,
  38. opacity 0.3s ease
  39. ;
  40. -moz-transition:
  41. color 0.3s ease,
  42. opacity 0.3s ease
  43. ;
  44. -ms-transition:
  45. color 0.3s ease,
  46. opacity 0.3s ease
  47. ;
  48. -o-transition:
  49. color 0.3s ease,
  50. opacity 0.3s ease
  51. ;
  52. transition:
  53. color 0.3s ease,
  54. opacity 0.3s ease
  55. ;
  56. }
  57. /*******************************
  58. Types
  59. *******************************/
  60. /*-------------------
  61. Star
  62. --------------------*/
  63. .ui.star.rating .icon:after {
  64. content: '\e800';
  65. font-family: 'Icons';
  66. }
  67. .ui.star.rating .active.icon:after {
  68. content: '\e801';
  69. font-family: 'Icons';
  70. }
  71. /*-------------------
  72. Heart
  73. --------------------*/
  74. .ui.heart.rating .icon:after {
  75. content: '\2661';
  76. font-family: 'Icons';
  77. }
  78. .ui.heart.rating .active.icon:after {
  79. content: '\2665';
  80. font-family: 'Icons';
  81. color: #EF404A;
  82. }
  83. .ui.heart.rating .hover.icon:after,
  84. .ui.heart.rating .active.hover.icon:after {
  85. color: #FF2733;
  86. }
  87. /*******************************
  88. States
  89. *******************************/
  90. /*-------------------
  91. Active
  92. --------------------*/
  93. /* active rating */
  94. .ui.active.rating .icon {
  95. cursor: pointer;
  96. }
  97. /* active icons */
  98. .ui.rating .active.icon:after {
  99. color: #FFCB08;
  100. }
  101. /*-------------------
  102. Hover
  103. --------------------*/
  104. /* rating */
  105. .ui.rating.hover .active.icon:after {
  106. opacity: 0.5;
  107. }
  108. /* icon */
  109. .ui.rating .icon.hover:after,
  110. .ui.rating .icon.hover.active:after {
  111. opacity: 1;
  112. color: #FFB70A;
  113. }
  114. /*******************************
  115. Variations
  116. *******************************/
  117. .ui.small.rating {
  118. font-size: 1rem;
  119. }
  120. .ui.rating {
  121. font-size: 1.5rem;
  122. }
  123. .ui.large.rating {
  124. font-size: 2rem;
  125. }