active-posters.less 3.4 KB

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