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.

175 lines
2.7 KiB

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