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.

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