active-posters.less 3.3 KB

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