threads.less 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350
  1. // Misago Threads Styles
  2. // --------------------------------------------------
  3. .subforums-list {
  4. margin: 0px;
  5. position: relative;
  6. bottom: 32px;
  7. .category {
  8. margin-bottom: -24px;
  9. }
  10. }
  11. // Threads list
  12. // --------------------------------------------------
  13. .threads-list {
  14. .thread-icon {
  15. background-color: @grayLighter;
  16. .border-radius(3px);
  17. padding: 5px 6px;
  18. }
  19. .jump {
  20. .border-radius(3px);
  21. padding: 3px 4px;
  22. margin: -3px 0px;
  23. .opacity(30);
  24. &:hover {
  25. .opacity(100);
  26. &.jump-new {
  27. background-color: @orange;
  28. }
  29. &.jump-last {
  30. background-color: @blue;
  31. }
  32. i {
  33. background-image: url("@{iconWhiteSpritePath}");
  34. }
  35. }
  36. }
  37. .thread-stat {
  38. text-align: right;
  39. }
  40. .thread-author, .thread-poster {
  41. font-weight: bold;
  42. a {
  43. color: @textColor;
  44. }
  45. .avatar-tiny {
  46. margin-right: 4px;
  47. }
  48. }
  49. .thread-closed {
  50. background-color: @red;
  51. }
  52. .thread-new {
  53. background-color: @linkColor;
  54. }
  55. .thread-flags {
  56. float: right;
  57. margin: 0px;
  58. padding: 0px;
  59. li {
  60. float: right;
  61. margin: 0px;
  62. margin-left: 6px;
  63. padding: 0px;
  64. }
  65. }
  66. }
  67. // Thread view
  68. // --------------------------------------------------
  69. .thread-info {
  70. overflow: auto;
  71. li {
  72. float: left;
  73. margin-right: 16px;
  74. .opacity(50);
  75. font-weight: bold;
  76. a {
  77. color: @textColor;
  78. }
  79. }
  80. }
  81. .posts-list {
  82. margin-top: 12px;
  83. margin-bottom: 20px;
  84. .well-post {
  85. margin: 0px;
  86. margin-bottom: 16px;
  87. overflow: auto;
  88. padding: 16px 0px;
  89. .post-author{
  90. overflow: auto;
  91. float: left;
  92. width: 286px;
  93. position: relative;
  94. bottom: 4px;
  95. .avatar-normal {
  96. float: left;
  97. margin: 4px 0px;
  98. margin-left: 16px;
  99. width: 80px;
  100. height: 80px;
  101. .box-shadow(0px 0px 4px @grayLight);
  102. }
  103. .post-bit {
  104. float: left;
  105. margin-left: 12px;
  106. padding-top: 4px;
  107. font-weight: bold;
  108. font-size: 120%;
  109. p {
  110. margin: 0px;
  111. }
  112. .lead {
  113. font-size: 150%;
  114. }
  115. span.lead {
  116. color: lighten(@grayLight, 20%);
  117. }
  118. .user-title {
  119. color: @grayLight;
  120. }
  121. .post-date {
  122. margin-top: 4px;
  123. color: @grayLight;
  124. font-size: 70%;
  125. font-weight: normal
  126. }
  127. }
  128. }
  129. .post-content {
  130. margin-left: 286px;
  131. padding: 0px 16px;
  132. .post-extra {
  133. overflow: auto;
  134. float: right;
  135. margin-bottom: 12px;
  136. .post-perma {
  137. margin-left: 8px;
  138. color: @grayLight;
  139. }
  140. .label {
  141. margin-left: 8px;
  142. padding: 4px 5px;
  143. font-size: 100%;
  144. }
  145. .label-purple {
  146. background-color: @purple;
  147. }
  148. }
  149. .post-foot {
  150. margin-top: 20px;
  151. .lead {
  152. margin: 0px;
  153. color: @grayLight;
  154. font-size: 100%;
  155. a {
  156. color: @grayLight;
  157. }
  158. }
  159. .signature {
  160. border-top: 1px solid @grayLighter;
  161. padding-top: 12px;
  162. .markdown {
  163. .opacity(70);
  164. }
  165. }
  166. }
  167. }
  168. .post-nav {
  169. clear: both;
  170. margin-left: 286px;
  171. overflow: auto;
  172. padding: 8px 16px;
  173. padding-bottom: 0px;
  174. margin-bottom: -8px;
  175. ul {
  176. margin: 0px;
  177. padding: 0px;
  178. }
  179. .nav-pills li {
  180. .opacity(10);
  181. a {
  182. padding: 6px 7px;
  183. }
  184. button {
  185. padding: 3px 7px;
  186. }
  187. a, button {
  188. background-color: darken(@bodyBackground, 20%);
  189. border: none;
  190. .border-radius(3px);
  191. margin: 0px;
  192. color: @white;
  193. font-weight: bold;
  194. &:hover {
  195. background-color: lighten(@linkColor, 15%);
  196. &.danger {
  197. background-color: lighten(@red, 15%);
  198. }
  199. }
  200. }
  201. i {
  202. background-image: url("@{iconWhiteSpritePath}");
  203. }
  204. }
  205. }
  206. &:hover {
  207. .nav-pills li {
  208. .opacity(100);
  209. }
  210. }
  211. }
  212. .post-checkpoints {
  213. padding-top: 4px;
  214. &:last-child {
  215. margin-bottom: -24px;
  216. }
  217. .checkpoint {
  218. margin: 0px;
  219. color: @grayLight;
  220. text-align: center;
  221. span {
  222. background-color: @bodyBackground;
  223. display: inline-block;
  224. padding: 4px 12px;
  225. position: relative;
  226. bottom: 16px;
  227. }
  228. }
  229. a {
  230. color: @textColor;
  231. font-weight: bold;
  232. }
  233. hr {
  234. background-color: @grayLight;
  235. background-image: -webkit-gradient(linear, 0 0, 100% 100%,
  236. color-stop(.25, rgba(255, 255, 255, .2)), color-stop(.25, transparent),
  237. color-stop(.5, transparent), color-stop(.5, rgba(255, 255, 255, .2)),
  238. color-stop(.75, rgba(255, 255, 255, .2)), color-stop(.75, transparent),
  239. to(transparent));
  240. background-image: -webkit-linear-gradient(-45deg, rgba(255, 255, 255, .2) 25%, transparent 25%,
  241. transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%,
  242. transparent 75%, transparent);
  243. background-image: -moz-linear-gradient(-45deg, rgba(255, 255, 255, .2) 25%, transparent 25%,
  244. transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%,
  245. transparent 75%, transparent);
  246. background-image: -ms-linear-gradient(-45deg, rgba(255, 255, 255, .2) 25%, transparent 25%,
  247. transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%,
  248. transparent 75%, transparent);
  249. background-image: -o-linear-gradient(-45deg, rgba(255, 255, 255, .2) 25%, transparent 25%,
  250. transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%,
  251. transparent 75%, transparent);
  252. background-image: linear-gradient(-45deg, rgba(255, 255, 255, .2) 25%, transparent 25%,
  253. transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%,
  254. transparent 75%, transparent);
  255. -webkit-background-size: 10px 10px;
  256. -moz-background-size: 10px 10px;
  257. background-size: 10px 10px;
  258. border: none;
  259. margin: 0px;
  260. margin-top: 8px;
  261. height: 4px;
  262. }
  263. }
  264. }
  265. // Quick reply box
  266. .quick-reply {
  267. margin-top: 12px;
  268. overflow: auto;
  269. .avatar-big, .arrow {
  270. float: left;
  271. }
  272. .arrow {
  273. width: 0;
  274. height: 0;
  275. border-top: 12px solid transparent;
  276. border-bottom: 12px solid transparent;
  277. border-right: 12px solid darken(@bodyBackground, 10%);
  278. position: relative;
  279. top: 12px;
  280. left: 5px;
  281. }
  282. .editor {
  283. margin-left: 142px;
  284. }
  285. }