active-posters.less 3.4 KB

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