active-posters.less 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  1. //
  2. // Active posters list
  3. // --------------------------------------------------
  4. // List layout
  5. .active-posters {
  6. li {
  7. display: block;
  8. overflow: auto;
  9. }
  10. }
  11. // User avatar
  12. .active-posters .rank-user-avatar {
  13. float: left;
  14. @media screen and (max-width: @screen-sm-max) {
  15. height: 42px; // even list item vertically
  16. img {
  17. width: 36px;
  18. height: 36px;
  19. position: relative;
  20. top: 3px;
  21. }
  22. }
  23. }
  24. // User
  25. .active-posters .rank-user {
  26. float: left;
  27. margin-top: 3px;
  28. @media screen and (max-width: @screen-sm-max) {
  29. margin-left: @line-height-computed * .66;
  30. width: 40%;
  31. }
  32. @media screen and (max-width: @screen-xs-max) {
  33. float: none;
  34. margin-left: 50px;
  35. width: auto;
  36. }
  37. @media screen and (min-width: @screen-md-min) {
  38. margin-left: @line-height-computed * .8;
  39. width: 25%;
  40. .user-name {
  41. font-size: @font-size-large;
  42. }
  43. }
  44. }
  45. // User details
  46. .active-posters .user-details {
  47. overflow: auto;
  48. font-family: Sans-Serif;
  49. .user-status, .rank-name, .user-title {
  50. display: block;
  51. float: left;
  52. margin-right: 3px;
  53. font-size: @font-size-small;
  54. @media screen and (min-width: @screen-md-min) {
  55. margin-right: 8px;
  56. }
  57. }
  58. .user-title {
  59. margin-right: 0px;
  60. }
  61. @media screen and (min-width: @screen-md-min) {
  62. overflow: visible;
  63. .rank-name, .user-title {
  64. height: 14px;
  65. overflow: hidden;
  66. position: relative;
  67. top: 1px;
  68. vertical-align: baseline;
  69. }
  70. }
  71. @media screen and (max-width: @screen-xs-max) {
  72. margin-top: @padding-base-vertical / 2;
  73. .rank-name, .user-title {
  74. font-weight: normal;
  75. }
  76. }
  77. }
  78. // User status
  79. .active-posters .user-status {
  80. overflow: auto;
  81. position: relative;
  82. top: 1px;
  83. span {
  84. display: block;
  85. float: left;
  86. }
  87. @media screen and (min-width: @screen-md-min) {
  88. height: 14px;
  89. overflow: hidden;
  90. }
  91. .status-icon {
  92. position: relative;
  93. @media screen and (max-width: @screen-sm-max) {
  94. top: 0px;
  95. width: 12px;
  96. height: 12px;
  97. font-size: 12px;
  98. line-height: 12px;
  99. }
  100. @media screen and (min-width: @screen-md-min) {
  101. top: 1px;
  102. margin-right: 3px;
  103. width: 13px;
  104. height: 13px;
  105. font-size: 13px;
  106. line-height: 13px;
  107. }
  108. }
  109. }
  110. // User status UI preview
  111. .active-posters {
  112. .status-label.ui-preview-text,
  113. .rank-name .ui-preview-text,
  114. .user-title .ui-preview-text {
  115. height: 11px;
  116. position: relative;
  117. top: 2px;
  118. font-size: 11px;
  119. line-height: 11px;
  120. }
  121. // even rank/title preview with status
  122. .rank-name, .user-title {
  123. .ui-preview-text {
  124. position: static;
  125. }
  126. }
  127. }
  128. // Rank stats
  129. .active-posters {
  130. .rank-position, .rank-posts-counted, .rank-posts-total {
  131. strong, small {
  132. display: block;
  133. }
  134. @media screen and (max-width: @screen-sm-max) {
  135. overflow: auto;
  136. strong, small {
  137. float: left;
  138. font-size: @font-size-base * .75;
  139. }
  140. strong {
  141. min-width: 30px;
  142. margin-right: 3px;
  143. text-align: right;
  144. }
  145. .ui-preview-text {
  146. height: 8px;
  147. position: relative;
  148. top: -1px;
  149. font-size: 8px;
  150. line-height: 8px;
  151. }
  152. }
  153. @media screen and (min-width: @screen-md-min) {
  154. float: left;
  155. margin-top: 3px;
  156. width: 23%;
  157. font-size: @font-size-large;
  158. text-align: center;
  159. small {
  160. font-size: @font-size-small;
  161. font-weight: normal;
  162. }
  163. }
  164. }
  165. }
  166. .user-compact-stats {
  167. .rank-position, .rank-posts-counted {
  168. strong, small {
  169. display: inline-block;
  170. float: none;
  171. }
  172. strong {
  173. min-width: auto;
  174. }
  175. small {
  176. margin-right: @line-height-computed;
  177. }
  178. }
  179. }
  180. // Tablet displays
  181. @media screen and (min-width: @screen-sm-min) and (max-width: @screen-sm-max) {
  182. // Margin top first state so its even with username
  183. .active-posters .rank-position {
  184. margin-top: 6px;
  185. }
  186. // Hide rank-posts-total on small displays (cos it overflows for crazy posters)
  187. .active-posters .rank-posts-total {
  188. display: none;
  189. }
  190. }
  191. // Mobile displays
  192. @media screen and (min-width: @screen-sm-min) and (max-width: @screen-sm-max) {
  193. // Margin top first state so its even with username
  194. .active-posters .rank-position {
  195. margin-top: 6px;
  196. }
  197. // Hide rank-posts-total on small displays (cos it overflows for crazy posters)
  198. .active-posters .rank-posts-total {
  199. display: none;
  200. }
  201. }