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.

266 lines
20 KiB

  1. /*!
  2. * # Semantic UI 2.0.0 - Rating
  3. * http://github.com/semantic-org/semantic-ui/
  4. *
  5. *
  6. * Copyright 2015 Contributors
  7. * Released under the MIT license
  8. * http://opensource.org/licenses/MIT
  9. *
  10. */
  11. /*******************************
  12. Rating
  13. *******************************/
  14. .ui.rating {
  15. display: -webkit-inline-box;
  16. display: -webkit-inline-flex;
  17. display: -ms-inline-flexbox;
  18. display: inline-flex;
  19. white-space: nowrap;
  20. vertical-align: baseline;
  21. }
  22. .ui.rating:last-child {
  23. margin-right: 0em;
  24. }
  25. /* Icon */
  26. .ui.rating .icon {
  27. padding: 0em;
  28. margin: 0em;
  29. text-align: center;
  30. font-weight: normal;
  31. font-style: normal;
  32. -webkit-box-flex: 1;
  33. -webkit-flex: 1 0 auto;
  34. -ms-flex: 1 0 auto;
  35. flex: 1 0 auto;
  36. cursor: pointer;
  37. width: 1.25em;
  38. height: auto;
  39. -webkit-transition: opacity 0.1s ease, background 0.1s ease, text-shadow 0.1s ease, color 0.1s ease;
  40. transition: opacity 0.1s ease, background 0.1s ease, text-shadow 0.1s ease, color 0.1s ease;
  41. }
  42. /*******************************
  43. Types
  44. *******************************/
  45. /*-------------------
  46. Standard
  47. --------------------*/
  48. /* Inactive Icon */
  49. .ui.rating .icon {
  50. background: transparent;
  51. color: rgba(0, 0, 0, 0.15);
  52. }
  53. /* Active Icon */
  54. .ui.rating .active.icon {
  55. background: transparent;
  56. color: rgba(0, 0, 0, 0.85);
  57. }
  58. /* Selected Icon */
  59. .ui.rating .icon.selected,
  60. .ui.rating .icon.selected.active {
  61. background: transparent;
  62. color: rgba(0, 0, 0, 0.87);
  63. }
  64. /*-------------------
  65. Star
  66. --------------------*/
  67. /* Inactive */
  68. .ui.star.rating .icon {
  69. width: 1.25em;
  70. height: auto;
  71. background: transparent;
  72. color: rgba(0, 0, 0, 0.15);
  73. text-shadow: none;
  74. }
  75. /* Active Star */
  76. .ui.star.rating .active.icon {
  77. background: transparent !important;
  78. color: #ffe623 !important;
  79. text-shadow: 0px -1px 0px #ddc507, -1px 0px 0px #ddc507, 0px 1px 0px #ddc507, 1px 0px 0px #ddc507 !important;
  80. }
  81. /* Selected Star */
  82. .ui.star.rating .icon.selected,
  83. .ui.star.rating .icon.selected.active {
  84. background: transparent !important;
  85. color: #ffcc00 !important;
  86. text-shadow: 0px -1px 0px #e6a200, -1px 0px 0px #e6a200, 0px 1px 0px #e6a200, 1px 0px 0px #e6a200 !important;
  87. }
  88. /*-------------------
  89. Heart
  90. --------------------*/
  91. .ui.heart.rating .icon {
  92. width: 1.4em;
  93. height: auto;
  94. background: transparent;
  95. color: rgba(0, 0, 0, 0.15);
  96. text-shadow: none !important;
  97. }
  98. /* Active Heart */
  99. .ui.heart.rating .active.icon {
  100. background: transparent !important;
  101. color: #ff6d75 !important;
  102. text-shadow: 0px -1px 0px #cd0707, -1px 0px 0px #cd0707, 0px 1px 0px #cd0707, 1px 0px 0px #cd0707 !important;
  103. }
  104. /* Selected Heart */
  105. .ui.heart.rating .icon.selected,
  106. .ui.heart.rating .icon.selected.active {
  107. background: transparent !important;
  108. color: #ff3000 !important;
  109. text-shadow: 0px -1px 0px #aa0101, -1px 0px 0px #aa0101, 0px 1px 0px #aa0101, 1px 0px 0px #aa0101 !important;
  110. }
  111. /*******************************
  112. States
  113. *******************************/
  114. /*-------------------
  115. Disabled
  116. --------------------*/
  117. /* disabled rating */
  118. .ui.disabled.rating .icon {
  119. cursor: default;
  120. }
  121. /*-------------------
  122. User Interactive
  123. --------------------*/
  124. /* Selected Rating */
  125. .ui.rating.selected .active.icon {
  126. opacity: 1;
  127. }
  128. .ui.rating.selected .icon.selected,
  129. .ui.rating .icon.selected {
  130. opacity: 1;
  131. }
  132. /*******************************
  133. Variations
  134. *******************************/
  135. .ui.mini.rating {
  136. font-size: 0.71428571rem;
  137. }
  138. .ui.tiny.rating {
  139. font-size: 0.85714286rem;
  140. }
  141. .ui.small.rating {
  142. font-size: 0.92857143rem;
  143. }
  144. .ui.rating {
  145. font-size: 1rem;
  146. }
  147. .ui.large.rating {
  148. font-size: 1.14285714rem;
  149. }
  150. .ui.huge.rating {
  151. font-size: 1.42857143rem;
  152. }
  153. .ui.massive.rating {
  154. font-size: 2rem;
  155. }
  156. /*******************************
  157. Theme Overrides
  158. *******************************/
  159. @font-face {
  160. font-family: 'Rating';
  161. src: url(data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMggjCBsAAAC8AAAAYGNtYXCj2pm8AAABHAAAAKRnYXNwAAAAEAAAAcAAAAAIZ2x5ZlJbXMYAAAHIAAARnGhlYWQBGAe5AAATZAAAADZoaGVhA+IB/QAAE5wAAAAkaG10eCzgAEMAABPAAAAAcGxvY2EwXCxOAAAUMAAAADptYXhwACIAnAAAFGwAAAAgbmFtZfC1n04AABSMAAABPHBvc3QAAwAAAAAVyAAAACAAAwIAAZAABQAAAUwBZgAAAEcBTAFmAAAA9QAZAIQAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADxZQHg/+D/4AHgACAAAAABAAAAAAAAAAAAAAAgAAAAAAACAAAAAwAAABQAAwABAAAAFAAEAJAAAAAgACAABAAAAAEAIOYF8AbwDfAj8C7wbvBw8Irwl/Cc8SPxZf/9//8AAAAAACDmAPAE8AzwI/Au8G7wcPCH8JfwnPEj8WT//f//AAH/4xoEEAYQAQ/sD+IPow+iD4wPgA98DvYOtgADAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAH//wAPAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAAAAAAAAAAAAAgAANzkBAAAAAAIAAP/tAgAB0wAKABUAAAEvAQ8BFwc3Fyc3BQc3Jz8BHwEHFycCALFPT7GAHp6eHoD/AHAWW304OH1bFnABGRqgoBp8sFNTsHyyOnxYEnFxElh8OgA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BQYGBQgSAQEBAQICAQEDAgEULwgIBQoLCgsJDhQHCQk
  162. font-weight: normal;
  163. font-style: normal;
  164. }
  165. .ui.rating .icon {
  166. font-family: 'Rating';
  167. line-height: 1;
  168. -webkit-backface-visibility: hidden;
  169. backface-visibility: hidden;
  170. font-weight: normal;
  171. font-style: normal;
  172. text-align: center;
  173. }
  174. /* Empty Star */
  175. .ui.rating .icon:before {
  176. content: '\f006';
  177. }
  178. /* Active Star */
  179. .ui.rating .active.icon:before {
  180. content: '\f005';
  181. }
  182. /*-------------------
  183. Star
  184. --------------------*/
  185. /* Unfilled Star */
  186. .ui.star.rating .icon:before {
  187. content: '\f005';
  188. }
  189. /* Active Star */
  190. .ui.star.rating .active.icon:before {
  191. content: '\f005';
  192. }
  193. /* Partial */
  194. .ui.star.rating .partial.icon:before {
  195. content: '\f006';
  196. }
  197. .ui.star.rating .partial.icon {
  198. content: '\f005';
  199. }
  200. /*-------------------
  201. Heart
  202. --------------------*/
  203. /* Empty Heart
  204. .ui.heart.rating .icon:before {
  205. content: '\f08a';
  206. }
  207. */
  208. .ui.heart.rating .icon:before {
  209. content: '\f004';
  210. }
  211. /* Active */
  212. .ui.heart.rating .active.icon:before {
  213. content: '\f004';
  214. }
  215. /*******************************
  216. Site Overrides
  217. *******************************/