threads-lists.less 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. //
  2. // Threads Lists
  3. // --------------------------------------------------
  4. .threads-list {
  5. margin-bottom: @line-height-computed;
  6. }
  7. // Thread layout
  8. // --------------------------------------------------
  9. .threads-list .thread-title {
  10. &, &:link, &:active, &:visited, &:focus, &:hover {
  11. font-size: @font-size-large;
  12. font-weight: normal;
  13. }
  14. }
  15. .thread-last-action {
  16. .media-left, .media-body {
  17. padding-top: 2px;
  18. }
  19. }
  20. .threads-list .thread-options {
  21. padding-top: @padding-base-vertical - 1px;
  22. }
  23. // Thread starter
  24. // --------------------------------------------------
  25. .threads-list .thread-main {
  26. .media-left {
  27. padding-top: 2px;
  28. padding-bottom: 1px;
  29. }
  30. }
  31. // Thread details
  32. // --------------------------------------------------
  33. .threads-list .thread-details-top {
  34. overflow-x: auto;
  35. white-space: nowrap;
  36. }
  37. .threads-list .thread-details-bottom div,
  38. .threads-list .thread-details-top {
  39. &>a, &>span {
  40. margin-right: @padding-large-horizontal;
  41. font-size: @font-size-small;
  42. font-weight: normal;
  43. &>.material-icon {
  44. position: relative;
  45. top: -1px;
  46. }
  47. .detail-text {
  48. margin-left: 2px;
  49. }
  50. @media screen and (max-width: @screen-sm-max) {
  51. margin-right: @padding-base-horizontal;
  52. }
  53. }
  54. }
  55. @media screen and (max-width: @screen-xs-max) {
  56. .threads-list .thread-details-bottom {
  57. margin-top: @padding-large-vertical - 2px;
  58. }
  59. .threads-list .thread-details-top {
  60. margin-bottom: @padding-base-vertical;
  61. }
  62. }
  63. @media screen and (min-width: @screen-sm-min) {
  64. .threads-list .thread-details-top {
  65. margin-left: 54px;
  66. }
  67. }
  68. // Last action
  69. // --------------------------------------------------
  70. .thread-last-action {
  71. padding-top: 1px;
  72. .thread-last-poster {
  73. display: block;
  74. }
  75. }
  76. // Thread options
  77. // --------------------------------------------------
  78. .thread-options-xs {
  79. margin-top: @line-height-computed * -0.5;
  80. margin-bottom: @line-height-computed * -1;
  81. position: relative;
  82. top: @padding-base-vertical - 1px;
  83. .btn {
  84. padding: 0px 2px;
  85. font-size: @font-size-small;
  86. .material-icon {
  87. width: 14px;
  88. height: 14px;
  89. font-size: 14px;
  90. line-height: 14px;
  91. }
  92. }
  93. }
  94. // Threads diff message
  95. // --------------------------------------------------
  96. .threads-diff-message {
  97. padding: 0px;
  98. }
  99. .threads-diff-message .btn {
  100. border: none;
  101. border-bottom-left-radius: 0px;
  102. border-bottom-right-radius: 0px;
  103. padding: @padding-large-vertical @padding-large-horizontal;
  104. width: 100%;
  105. overflow: none;
  106. text-align: left;
  107. .material-icon {
  108. margin-right: 4px;
  109. width: 24px;
  110. height: 24px;
  111. font-size: 24px;
  112. height: 24px;
  113. }
  114. @media screen and (max-width: @screen-sm-max) {
  115. text-align: center;
  116. white-space: normal;
  117. word-wrap: break-word;
  118. .material-icon {
  119. display: none;
  120. }
  121. }
  122. }
  123. // UI Preview
  124. // --------------------------------------------------
  125. .threads-list .thread-preview {
  126. .ui-preview-text {
  127. margin-right: @padding-large-horizontal;
  128. }
  129. .thread-details-bottom div, .thread-details-top {
  130. .ui-preview-text {
  131. height: @font-size-small * 0.8;
  132. }
  133. }
  134. .thread-details-bottom {
  135. margin-top: @padding-base-vertical;
  136. }
  137. .thread-details-top {
  138. margin-bottom: @padding-base-vertical;
  139. }
  140. }
  141. // Pulse busy threads
  142. // --------------------------------------------------
  143. .threads-list .thread-busy {
  144. .thread-row {
  145. .animation(thread-busy-animation 600ms linear infinite);
  146. }
  147. }
  148. @keyframes thread-busy-animation {
  149. 0% {
  150. .opacity(0.2);
  151. }
  152. 50% {
  153. .opacity(0.5);
  154. }
  155. 100% {
  156. .opacity(0.2);
  157. }
  158. }