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.

251 lines
19 KiB

9 years ago
9 years ago
9 years ago
10 years ago
9 years ago
10 years ago
9 years ago
10 years ago
  1. /*!
  2. * # Semantic UI 1.11.5 - Rating
  3. * http://github.com/semantic-org/semantic-ui/
  4. *
  5. *
  6. * Copyright 2014 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. }
  18. .ui.rating:last-child {
  19. margin-right: 0em;
  20. }
  21. .ui.rating:before {
  22. display: block;
  23. content: '';
  24. visibility: hidden;
  25. clear: both;
  26. height: 0;
  27. }
  28. /* Icon */
  29. .ui.rating .icon {
  30. cursor: pointer;
  31. margin: 0em;
  32. width: 1.1em;
  33. height: auto;
  34. text-align: center;
  35. padding: 0em;
  36. font-weight: normal;
  37. font-style: normal;
  38. }
  39. /*******************************
  40. Types
  41. *******************************/
  42. /*-------------------
  43. Star
  44. --------------------*/
  45. /* Inactive */
  46. .ui.star.rating .icon {
  47. width: 1.1em;
  48. color: rgba(0, 0, 0, 0.15);
  49. }
  50. /* Active Star */
  51. .ui.star.rating .active.icon {
  52. color: #ffe623 !important;
  53. text-shadow: 0px -1px 0px #cfa300, -1px 0px 0px #cfa300, 0px 1px 0px #cfa300, 1px 0px 0px #cfa300;
  54. }
  55. /* Selected Star */
  56. .ui.star.rating .icon.selected,
  57. .ui.star.rating .icon.selected.active {
  58. color: #ffb70a !important;
  59. }
  60. .ui.star.rating.partial {
  61. position: relative;
  62. z-index: 1;
  63. }
  64. .ui.star.rating.partial:before {
  65. position: absolute;
  66. z-index: -1;
  67. }
  68. /*-------------------
  69. Heart
  70. --------------------*/
  71. .ui.heart.rating .icon {
  72. width: 1.25em;
  73. color: rgba(0, 0, 0, 0.15);
  74. }
  75. /* Active Heart */
  76. .ui.heart.rating .active.icon {
  77. color: #ff2733 !important;
  78. text-shadow: 0px -1px 0px #9e0000, -1px 0px 0px #9e0000, 0px 1px 0px #9e0000, 1px 0px 0px #9e0000;
  79. }
  80. /* Selected Heart */
  81. .ui.heart.rating .icon.selected,
  82. .ui.heart.rating .icon.selected.active {
  83. color: #ff2733 !important;
  84. }
  85. /*******************************
  86. States
  87. *******************************/
  88. /* Inactive Icon */
  89. .ui.rating .icon {
  90. color: rgba(0, 0, 0, 0.15);
  91. }
  92. /* Active Icon */
  93. .ui.rating .active.icon {
  94. color: rgba(0, 0, 0, 0.85);
  95. }
  96. /* Selected Icon */
  97. .ui.rating .icon.selected,
  98. .ui.rating .icon.selected.active {
  99. color: rgba(0, 0, 0, 0.8);
  100. }
  101. /*-------------------
  102. Disabled
  103. --------------------*/
  104. /* disabled rating */
  105. .ui.disabled.rating .icon {
  106. cursor: default;
  107. }
  108. /*-------------------
  109. Interacting (Active)
  110. --------------------*/
  111. /* Selected Rating */
  112. .ui.rating.selected .active.icon {
  113. opacity: 0.5;
  114. }
  115. .ui.rating.selected .icon.selected,
  116. .ui.rating .icon.selected {
  117. opacity: 1;
  118. }
  119. /*******************************
  120. Variations
  121. *******************************/
  122. .ui.mini.rating .icon {
  123. font-size: 0.7rem;
  124. }
  125. .ui.tiny.rating .icon {
  126. font-size: 0.8rem;
  127. }
  128. .ui.small.rating .icon {
  129. font-size: 0.875rem;
  130. }
  131. .ui.rating .icon {
  132. font-size: 1rem;
  133. }
  134. .ui.large.rating .icon {
  135. font-size: 1.1rem;
  136. }
  137. .ui.huge.rating .icon {
  138. font-size: 1.5rem;
  139. }
  140. .ui.massive.rating .icon {
  141. font-size: 2rem;
  142. }
  143. /*******************************
  144. Theme Overrides
  145. *******************************/
  146. @font-face {
  147. font-family: 'Rating';
  148. src: url(data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMggjCBsAAAC8AAAAYGNtYXCj2pm8AAABHAAAAKRnYXNwAAAAEAAAAcAAAAAIZ2x5ZlJbXMY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BAUEBQEEHjw8Hg4DBQQiBQ0pIyIZBiUvSxYZDg4RQSuEBAQGBgQEEREZBgQEBAQGJBkaVxU9MzQiIDASGxkZEAYGCxQrODk/LlACFxYlyQsJQycnBRwEAgEDAwIDAwIBAwUCNmxsNhkFFAMFBBUTHh8nCQtKISgSHBsfIh4hRCUGBAQEBAYYEhEEBAYGBAQaGiPJJQUiIjYzISASGhkbCgoKChIXMRsbUZANCyghIA8AAAMAAAAAAbcB2wA5AEoAlAAANzU0NzY7ATY3Njc2NzY3Njc2MzIXFhcWFRQHMzIXFhUUBxYVFAcUFRQHFgcGKwEiJyYnJisBIicmNTcUFxYzMjc2NTQnJiMiBwYVFzMyFxYXFhcWFxYXFhcWOwEyNTQnNjc2NTQnNjU0JyYnNjc2NTQnJisBNDc2NTQnJiMGBwYHBgcGBwYHBgcGBwYHBgcGBwYrARUACwoQTgodEQ4GBAMFBgwLDxgTEwoKDjMdFhYOAgoRARkZKCUbGxsjIQZSEAoLJQUFCAcGBQUGBwgFBUkJBAUFBAQHBwMDBwcCPCUjNwIJBQUFDwMDBAkGBgsLDmUODgoJGwgDAwYFDAYQAQUGAwQGBgYFBgUGBgQJSbcPCwsGJhUPCBERExMMCgkJFBQhGxwWFR4ZFQoKFhMGBh0WKBcXBgcMDAoLDxIHBQYGBQcIBQYGBQgSAQEBAQICAQEDAgEULwgIBQoLCgsJDhQHCQk
  149. font-weight: normal;
  150. font-style: normal;
  151. }
  152. .ui.rating .icon {
  153. font-family: 'Rating';
  154. line-height: 1;
  155. -webkit-backface-visibility: hidden;
  156. backface-visibility: hidden;
  157. font-weight: normal;
  158. font-style: normal;
  159. text-align: center;
  160. }
  161. /* Empty Star */
  162. .ui.rating .icon:before {
  163. content: '\f006';
  164. }
  165. /* Active Star */
  166. .ui.rating .active.icon:before {
  167. content: '\f005';
  168. }
  169. /*-------------------
  170. Star
  171. --------------------*/
  172. /* Unfilled Star */
  173. .ui.star.rating .icon:before {
  174. content: '\f005';
  175. }
  176. /* Active Star */
  177. .ui.star.rating .active.icon:before {
  178. content: '\f005';
  179. }
  180. /* Partial */
  181. .ui.star.rating .partial.icon:before {
  182. content: '\f006';
  183. }
  184. .ui.star.rating .partial.icon {
  185. content: '\f005';
  186. }
  187. /*-------------------
  188. Heart
  189. --------------------*/
  190. /* Empty Heart
  191. .ui.heart.rating .icon:before {
  192. content: '\f08a';
  193. }
  194. */
  195. .ui.heart.rating .icon:before {
  196. content: '\f004';
  197. }
  198. /* Active */
  199. .ui.heart.rating .active.icon:before {
  200. content: '\f004';
  201. }
  202. /*******************************
  203. Site Overrides
  204. *******************************/