active-posters.less 3.4 KB

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