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.

174 lines
2.7 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
  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: top;
  47. }
  48. /*******************************
  49. Types
  50. *******************************/
  51. /*-------------------
  52. Star
  53. --------------------*/
  54. /* Inactive */
  55. .ui.star.rating .icon {
  56. color: @starInactiveColor;
  57. }
  58. /* Active Star */
  59. .ui.star.rating .active.icon {
  60. color: @starActiveColor !important;
  61. }
  62. /* Hovered Star */
  63. .ui.star.rating .icon.hover,
  64. .ui.star.rating .icon.hover.active {
  65. color: @starHoverColor !important;
  66. }
  67. /*-------------------
  68. Heart
  69. --------------------*/
  70. .ui.star.rating .icon {
  71. color: @heartInactiveColor;
  72. }
  73. /* Active Heart */
  74. .ui.heart.rating .active.icon {
  75. color: @heartActiveColor !important;
  76. }
  77. /* Hovered Heart */
  78. .ui.heart.rating .icon.hover,
  79. .ui.heart.rating .icon.hover.active {
  80. color: @heartHoverColor !important;
  81. }
  82. /*******************************
  83. States
  84. *******************************/
  85. /* Inactive Icon */
  86. .ui.rating .icon {
  87. color: @inactiveColor;
  88. }
  89. /* Active Icon */
  90. .ui.rating .active.icon {
  91. color: @activeColor;
  92. }
  93. /* Hovered Icon */
  94. .ui.rating .icon.hover,
  95. .ui.rating .icon.hover.active {
  96. color: @hoverColor;
  97. }
  98. /*-------------------
  99. Disabled
  100. --------------------*/
  101. /* disabled rating */
  102. .ui.disabled.rating .icon {
  103. cursor: default;
  104. }
  105. /*-------------------
  106. Interacting
  107. --------------------*/
  108. /* Selected Rating */
  109. .ui.rating.hover .active.icon {
  110. opacity: @interactiveIconOpacity;
  111. }
  112. .ui.rating.hover .icon.hover,
  113. .ui.rating .icon.hover {
  114. opacity: @interactiveHoveredIconOpacity;
  115. }
  116. /*******************************
  117. Variations
  118. *******************************/
  119. .ui.small.rating .icon {
  120. font-size: @small;
  121. }
  122. .ui.rating .icon {
  123. font-size: @medium;
  124. }
  125. .ui.large.rating .icon {
  126. font-size: @large;
  127. }
  128. .ui.huge.rating .icon {
  129. font-size: @huge;
  130. }
  131. /* Realign */
  132. .ui.large.rating,
  133. .ui.huge.rating {
  134. vertical-align: @oversizedVerticalAlign;
  135. }
  136. .loadUIOverrides();