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.

170 lines
2.5 KiB

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