threads-lists.less 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  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. .thread-last-poster {
  72. display: block;
  73. }
  74. }
  75. // Thread options
  76. // --------------------------------------------------
  77. .thread-options-xs {
  78. margin-top: @line-height-computed * -0.5;
  79. margin-bottom: @line-height-computed * -1;
  80. position: relative;
  81. top: @padding-base-vertical - 1px;
  82. .btn {
  83. padding: 0px 2px;
  84. font-size: @font-size-small;
  85. .material-icon {
  86. width: 14px;
  87. height: 14px;
  88. font-size: 14px;
  89. line-height: 14px;
  90. }
  91. }
  92. }
  93. // Threads diff message
  94. // --------------------------------------------------
  95. .threads-diff-message {
  96. padding: 0px;
  97. }
  98. .threads-diff-message .btn {
  99. border: none;
  100. border-bottom-left-radius: 0px;
  101. border-bottom-right-radius: 0px;
  102. padding: @padding-large-vertical @padding-large-horizontal;
  103. width: 100%;
  104. overflow: none;
  105. text-align: left;
  106. .material-icon {
  107. margin-right: 4px;
  108. width: 24px;
  109. height: 24px;
  110. font-size: 24px;
  111. height: 24px;
  112. }
  113. @media screen and (max-width: @screen-sm-max) {
  114. text-align: center;
  115. white-space: normal;
  116. word-wrap: break-word;
  117. .material-icon {
  118. display: none;
  119. }
  120. }
  121. }
  122. // UI Preview
  123. // --------------------------------------------------
  124. .threads-list .thread-preview {
  125. .ui-preview-text {
  126. margin-right: @padding-large-horizontal;
  127. }
  128. .thread-details-bottom div, .thread-details-top {
  129. .ui-preview-text {
  130. height: @font-size-small * 0.8;
  131. }
  132. }
  133. .thread-details-bottom {
  134. margin-top: @padding-base-vertical;
  135. }
  136. .thread-details-top {
  137. margin-bottom: @padding-base-vertical;
  138. }
  139. }
  140. // Pulse busy threads
  141. // --------------------------------------------------
  142. .threads-list .thread-busy {
  143. .thread-row {
  144. .animation(thread-busy-animation 600ms linear infinite);
  145. }
  146. }
  147. @keyframes thread-busy-animation {
  148. 0% {
  149. .opacity(0.2);
  150. }
  151. 50% {
  152. .opacity(0.5);
  153. }
  154. 100% {
  155. .opacity(0.2);
  156. }
  157. }