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.

198 lines
3.2 KiB

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
  1. /*
  2. * # Semantic - Rating
  3. * http://github.com/semantic-org/semantic-ui/
  4. *
  5. *
  6. * Copyright 2014 Contributor
  7. * Released under the MIT license
  8. * http://opensource.org/licenses/MIT
  9. *
  10. */
  11. /*******************************
  12. Theme
  13. *******************************/
  14. @type : 'module';
  15. @element : 'rating';
  16. @import '../../semantic.config';
  17. /*******************************
  18. Rating
  19. *******************************/
  20. .ui.rating {
  21. display: @display;
  22. font-size: 0em;
  23. vertical-align: @verticalAlign;
  24. margin: @margin;
  25. }
  26. .ui.rating:last-child {
  27. margin-right: 0em;
  28. }
  29. .ui.rating:before {
  30. display: block;
  31. content: '';
  32. visibility: hidden;
  33. clear: both;
  34. height: 0;
  35. }
  36. /* Icon */
  37. .ui.rating .icon {
  38. cursor: pointer;
  39. margin: 0em;
  40. width: @iconHitbox;
  41. text-align: center;
  42. height: auto;
  43. padding: 0em;
  44. font-weight: normal;
  45. font-style: normal;
  46. vertical-align: @verticalAlign;
  47. }
  48. /*******************************
  49. Types
  50. *******************************/
  51. /*-------------------
  52. Star
  53. --------------------*/
  54. /* Inactive */
  55. .ui.star.rating .icon {
  56. width: @starIconHitbox;
  57. color: @starInactiveColor;
  58. }
  59. /* Active Star */
  60. .ui.star.rating .active.icon {
  61. color: @starActiveColor !important;
  62. text-shadow: @starActiveShadow;
  63. }
  64. /* Hovered Star */
  65. .ui.star.rating .icon.hover,
  66. .ui.star.rating .icon.hover.active {
  67. color: @starHoverColor !important;
  68. }
  69. .ui.star.rating.partial {
  70. position: relative;
  71. z-index: 1;
  72. }
  73. .ui.star.rating.partial:before {
  74. position: absolute;
  75. z-index: -1;
  76. }
  77. /*-------------------
  78. Heart
  79. --------------------*/
  80. .ui.heart.rating .icon {
  81. width: @heartIconHitbox;
  82. color: @heartInactiveColor;
  83. }
  84. /* Active Heart */
  85. .ui.heart.rating .active.icon {
  86. color: @heartActiveColor !important;
  87. text-shadow: @heartActiveShadow;
  88. }
  89. /* Hovered Heart */
  90. .ui.heart.rating .icon.hover,
  91. .ui.heart.rating .icon.hover.active {
  92. color: @heartHoverColor !important;
  93. }
  94. /*******************************
  95. States
  96. *******************************/
  97. /* Inactive Icon */
  98. .ui.rating .icon {
  99. color: @inactiveColor;
  100. }
  101. /* Active Icon */
  102. .ui.rating .active.icon {
  103. color: @activeColor;
  104. }
  105. /* Hovered Icon */
  106. .ui.rating .icon.hover,
  107. .ui.rating .icon.hover.active {
  108. color: @hoverColor;
  109. }
  110. /*-------------------
  111. Disabled
  112. --------------------*/
  113. /* disabled rating */
  114. .ui.disabled.rating .icon {
  115. cursor: default;
  116. }
  117. /*-------------------
  118. Interacting
  119. --------------------*/
  120. /* Selected Rating */
  121. .ui.rating.hover .active.icon {
  122. opacity: @interactiveIconOpacity;
  123. }
  124. .ui.rating.hover .icon.hover,
  125. .ui.rating .icon.hover {
  126. opacity: @interactiveHoveredIconOpacity;
  127. }
  128. /*******************************
  129. Variations
  130. *******************************/
  131. .ui.mini.rating .icon {
  132. font-size: @mini;
  133. }
  134. .ui.tiny.rating .icon {
  135. font-size: @tiny;
  136. }
  137. .ui.small.rating .icon {
  138. font-size: @small;
  139. }
  140. .ui.rating .icon {
  141. font-size: @medium;
  142. }
  143. .ui.large.rating .icon {
  144. font-size: @large;
  145. }
  146. .ui.huge.rating .icon {
  147. font-size: @huge;
  148. }
  149. .ui.massive.rating .icon {
  150. font-size: @massive;
  151. }
  152. /* Realign */
  153. .ui.large.rating,
  154. .ui.huge.rating,
  155. .ui.massive.rating {
  156. vertical-align: @oversizedVerticalAlign;
  157. }
  158. .loadUIOverrides();