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.

144 lines
2.6 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: color 0.3s ease,
  44. opacity 0.3s ease
  45. ;
  46. -moz-transition: color 0.3s ease,
  47. opacity 0.3s ease
  48. ;
  49. -ms-transition: color 0.3s ease,
  50. opacity 0.3s ease
  51. ;
  52. -o-transition: color 0.3s ease,
  53. opacity 0.3s ease
  54. ;
  55. transition: color 0.3s ease,
  56. opacity 0.3s ease
  57. ;
  58. }
  59. /*******************************
  60. Types
  61. *******************************/
  62. /*-------------------
  63. Star
  64. --------------------*/
  65. .ui.star.rating .icon {
  66. width: 1em;
  67. margin-right: 0.1em;
  68. }
  69. .ui.star.rating .icon:last-child {
  70. margin: 0em;
  71. }
  72. .ui.star.rating .icon:after {
  73. content: '\f006';
  74. font-family: 'Icons';
  75. }
  76. .ui.star.rating .active.icon:after {
  77. content: '\f005';
  78. font-family: 'Icons';
  79. }
  80. /*-------------------
  81. Heart
  82. --------------------*/
  83. .ui.heart.rating .icon {
  84. width: 1em;
  85. margin-right: 0.1em;
  86. }
  87. .ui.heart.rating .icon:last-child {
  88. margin: 0em;
  89. }
  90. .ui.heart.rating .icon:after {
  91. content: '\f08a';
  92. font-family: 'Icons';
  93. }
  94. .ui.heart.rating .active.icon:after {
  95. content: '\f004';
  96. font-family: 'Icons';
  97. color: #EF404A;
  98. }
  99. .ui.heart.rating .hover.icon:after,
  100. .ui.heart.rating .active.hover.icon:after {
  101. color: #FF2733;
  102. }
  103. /*******************************
  104. States
  105. *******************************/
  106. /*-------------------
  107. Active
  108. --------------------*/
  109. /* active rating */
  110. .ui.active.rating .icon {
  111. cursor: pointer;
  112. }
  113. /* active icons */
  114. .ui.rating .active.icon:after {
  115. color: #FFCB08;
  116. }
  117. /*-------------------
  118. Hover
  119. --------------------*/
  120. /* rating */
  121. .ui.rating.hover .active.icon:after {
  122. opacity: 0.5;
  123. }
  124. /* icon */
  125. .ui.rating .icon.hover:after,
  126. .ui.rating .icon.hover.active:after {
  127. opacity: 1;
  128. color: #FFB70A;
  129. }
  130. /*******************************
  131. Variations
  132. *******************************/
  133. .ui.mini.rating {
  134. font-size: 1rem;
  135. }
  136. .ui.small.rating {
  137. font-size: 1.25rem;
  138. }
  139. .ui.rating {
  140. font-size: 1.5rem;
  141. }
  142. .ui.large.rating {
  143. font-size: 2rem;
  144. }