threads-lists.less 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  1. //
  2. // Threads Lists
  3. // --------------------------------------------------
  4. .threads-list {
  5. margin-bottom: @line-height-computed;
  6. }
  7. // Thread layout
  8. // --------------------------------------------------
  9. // Remove side padding from thread row
  10. .threads-list .thread-new, .threads-list .thread-read {
  11. padding-left: 0px;
  12. padding-right: 0px;
  13. }
  14. // Icon column
  15. .threads-list .thread-icon {
  16. float: left;
  17. width: @thread-col-icon;
  18. @media screen and (max-width: @screen-sm-max) {
  19. width: @thread-col-icon-mb;
  20. }
  21. }
  22. // Options column
  23. .thread-ops-one .thread-options {
  24. float: right;
  25. width: @thread-col-option;
  26. @media screen and (max-width: @screen-sm-max) {
  27. width: @thread-col-option-mb;
  28. }
  29. }
  30. .thread-ops-two .thread-options {
  31. float: right;
  32. width: @thread-col-options;
  33. @media screen and (max-width: @screen-sm-max) {
  34. width: @thread-col-options-mb;
  35. }
  36. }
  37. // Thready body left space
  38. .thread-main {
  39. margin-left: @thread-col-icon;
  40. @media screen and (max-width: @screen-sm-max) {
  41. margin-left: @thread-col-icon-mb;
  42. padding-top: 2px;
  43. }
  44. }
  45. // Thready body right space
  46. .thread-main {
  47. margin-right: 10px;
  48. }
  49. .thread-ops-one .thread-main {
  50. margin-right: @thread-col-option;
  51. @media screen and (max-width: @screen-sm-max) {
  52. margin-right: @thread-col-option-mb;
  53. }
  54. }
  55. .thread-ops-two .thread-main {
  56. margin-right: @thread-col-options;
  57. @media screen and (max-width: @screen-sm-max) {
  58. margin-right: @thread-col-options-mb;
  59. }
  60. }
  61. // Thread icon
  62. // --------------------------------------------------
  63. .threads-list .thread-icon {
  64. padding-top: 2px;
  65. text-align: center;
  66. }
  67. // Read icon
  68. .threads-list .read-status {
  69. .material-icon {
  70. width: 24px;
  71. height: 24px;
  72. color: @thread-read-icon-color;
  73. font-size: 24px;
  74. line-height: 24px;
  75. }
  76. }
  77. .threads-list .thread-new .read-status {
  78. .material-icon {
  79. color: @thread-new-icon-color;
  80. }
  81. }
  82. // Thread flags
  83. .threads-list .thread-flags {
  84. display: none;
  85. margin-left: auto;
  86. margin-right: auto;
  87. position: relative;
  88. bottom: 4px;
  89. color: @text-muted;
  90. pointer-events: none;
  91. @media screen and (max-width: @screen-sm-max) {
  92. display: block;
  93. margin: 0px;
  94. padding: 0px;
  95. }
  96. li {
  97. margin: 0px 2px;
  98. }
  99. .material-icon {
  100. font-size: 10px;
  101. line-height: 10px;
  102. }
  103. }
  104. // Thread top row
  105. // --------------------------------------------------
  106. // Thread title
  107. .threads-list .thread-title {
  108. &, &:link, &:active, &:visited, &:hover, &:focus {
  109. color: @thread-read-color;
  110. font-size: @font-size-large;
  111. font-weight: normal;
  112. word-wrap: break-word;
  113. @media screen and (max-width: @screen-sm-max) {
  114. font-size: @font-size-base;
  115. font-weight: bold;
  116. }
  117. }
  118. }
  119. .threads-list .thread-new .thread-title {
  120. &, &:link, &:active, &:visited, &:hover, &:focus {
  121. color: @thread-new-color;
  122. }
  123. }
  124. // Bottom row
  125. // --------------------------------------------------
  126. // Full details used on desktop
  127. .threads-list .thread-details-full {
  128. display: block;
  129. float: none;
  130. margin: 0px;
  131. margin-top: @line-height-computed * .25;
  132. padding: 0px;
  133. overflow: auto;
  134. font-size: @font-size-small;
  135. @media screen and (max-width: @screen-sm-max) {
  136. display: none;
  137. }
  138. &>li {
  139. display: block;
  140. float: left;
  141. .material-icon {
  142. position: relative;
  143. top: -1px;
  144. margin-right: 2px;
  145. font-size: 14px;
  146. line-height: 14px;
  147. }
  148. }
  149. }
  150. // Compact details used on mobile
  151. .threads-list .thread-details-compact {
  152. display: none;
  153. float: none;
  154. margin: 0px;
  155. margin-top: @line-height-computed * .25;
  156. padding: 0px;
  157. overflow: auto;
  158. color: @text-muted;
  159. font-size: @font-size-base * .66;
  160. @media screen and (max-width: @screen-sm-max) {
  161. display: block;
  162. }
  163. &>li {
  164. display: block;
  165. float: left;
  166. margin: 0px;
  167. margin-right: 6px;
  168. padding: 0px;
  169. .material-icon {
  170. position: relative;
  171. top: -1px;
  172. margin-right: 2px;
  173. font-size: (@font-size-base * .66) + 1px;
  174. line-height: (@font-size-base * .66) + 1px;
  175. }
  176. }
  177. }
  178. // Thread path
  179. .threads-list .thread-path {
  180. .material-icon {
  181. margin: 0px 2px;
  182. }
  183. }
  184. // Thread options
  185. // --------------------------------------------------
  186. .threads-list .thread-options {
  187. ul {
  188. margin: 0px;
  189. }
  190. li {
  191. float: right;
  192. }
  193. .btn-default {
  194. padding: 4px;
  195. color: @gray-light;
  196. &:hover, &:active {
  197. color: @gray;
  198. }
  199. .material-icon {
  200. margin: 0px;
  201. position: relative;
  202. top: 0px;
  203. width: 22px;
  204. height: 22px;
  205. font-size: 22px;
  206. line-height: 22px;
  207. }
  208. .icon-legend {
  209. display: none;
  210. }
  211. }
  212. }