active-posters.less 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  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 (min-width: @screen-md-min) {
  33. margin-left: @line-height-computed * .8;
  34. width: 25%;
  35. .user-name {
  36. font-size: @font-size-large;
  37. }
  38. }
  39. }
  40. // User details
  41. .active-posters .user-details {
  42. overflow: auto;
  43. font-family: Sans-Serif;
  44. .user-status, .rank-name, .user-title {
  45. display: block;
  46. float: left;
  47. margin-right: 3px;
  48. font-size: @font-size-small;
  49. @media screen and (min-width: @screen-md-min) {
  50. margin-right: 8px;
  51. }
  52. }
  53. .user-title {
  54. margin-right: 0px;
  55. }
  56. @media screen and (min-width: @screen-md-min) {
  57. overflow: visible;
  58. .rank-name, .user-title {
  59. height: 14px;
  60. overflow: hidden;
  61. position: relative;
  62. top: 1px;
  63. vertical-align: baseline;
  64. }
  65. }
  66. }
  67. // User status
  68. .active-posters .user-status {
  69. overflow: auto;
  70. position: relative;
  71. top: 1px;
  72. span {
  73. display: block;
  74. float: left;
  75. }
  76. @media screen and (min-width: @screen-md-min) {
  77. height: 14px;
  78. overflow: hidden;
  79. }
  80. .status-icon {
  81. position: relative;
  82. @media screen and (max-width: @screen-sm-max) {
  83. top: 0px;
  84. width: 12px;
  85. height: 12px;
  86. font-size: 12px;
  87. line-height: 12px;
  88. }
  89. @media screen and (min-width: @screen-md-min) {
  90. top: 1px;
  91. margin-right: 3px;
  92. width: 13px;
  93. height: 13px;
  94. font-size: 13px;
  95. line-height: 13px;
  96. }
  97. }
  98. }
  99. // User status UI preview
  100. .active-posters {
  101. .status-label.ui-preview-text,
  102. .rank-name .ui-preview-text,
  103. .user-title .ui-preview-text {
  104. height: 11px;
  105. position: relative;
  106. top: 2px;
  107. font-size: 11px;
  108. line-height: 11px;
  109. }
  110. // even rank/title preview with status
  111. .rank-name, .user-title {
  112. .ui-preview-text {
  113. position: static;
  114. }
  115. }
  116. }
  117. // Rank stats
  118. .active-posters {
  119. .rank-position, .rank-posts-counted, .rank-posts-total {
  120. strong, small {
  121. display: block;
  122. }
  123. @media screen and (max-width: @screen-sm-max) {
  124. overflow: auto;
  125. strong, small {
  126. float: left;
  127. font-size: @font-size-base * .75;
  128. }
  129. strong {
  130. min-width: 30px;
  131. margin-right: 3px;
  132. text-align: right;
  133. }
  134. .ui-preview-text {
  135. height: 8px;
  136. position: relative;
  137. top: -1px;
  138. font-size: 8px;
  139. line-height: 8px;
  140. }
  141. }
  142. @media screen and (min-width: @screen-md-min) {
  143. float: left;
  144. margin-top: 3px;
  145. width: 23%;
  146. font-size: @font-size-large;
  147. text-align: center;
  148. small {
  149. font-size: @font-size-small;
  150. font-weight: normal;
  151. }
  152. }
  153. }
  154. }
  155. // Small adjustments for stats on compact displays
  156. @media screen and (max-width: @screen-sm-max) {
  157. // Margin top first state so its even with username
  158. .active-posters .rank-position {
  159. margin-top: 6px;
  160. }
  161. // Hide rank-posts-total on small displays (cos it overflows for crazy posters)
  162. .active-posters .rank-posts-total {
  163. display: none;
  164. }
  165. }