stream_entries.scss 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  1. .activity-stream {
  2. clear: both;
  3. box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  4. .entry {
  5. border-bottom: 1px solid #d9e1e8;
  6. background: #fff;
  7. border-left: 2px solid #fff;
  8. &.entry-reblog {
  9. border-left-color: #2b90d9;
  10. }
  11. &.entry-predecessor, &.entry-successor {
  12. background: #d9e1e8;
  13. border-left-color: #d9e1e8;
  14. border-bottom-color: darken(#d9e1e8, 10%);
  15. .header {
  16. .header__right {
  17. .counter-btn {
  18. color: darken(#d9e1e8, 15%);
  19. }
  20. }
  21. }
  22. }
  23. &.entry-center {
  24. border-bottom-color: darken(#d9e1e8, 10%);
  25. }
  26. &.entry-follow, &.entry-favourite {
  27. .content {
  28. padding-top: 10px;
  29. padding-bottom: 10px;
  30. strong {
  31. font-weight: 500;
  32. }
  33. }
  34. }
  35. &:last-child {
  36. border-bottom: 0;
  37. border-radius: 0 0 4px 4px;
  38. }
  39. }
  40. .entry:first-child {
  41. border-radius: 4px 4px 0 0;
  42. &:last-child {
  43. border-radius: 4px;
  44. }
  45. }
  46. @media screen and (max-width: 700px) {
  47. border-radius: 0;
  48. box-shadow: none;
  49. .entry {
  50. &:last-child {
  51. border-radius: 0;
  52. }
  53. &:first-child {
  54. border-radius: 0;
  55. &:last-child {
  56. border-radius: 0;
  57. }
  58. }
  59. }
  60. }
  61. .entry__container {
  62. overflow: hidden;
  63. }
  64. .avatar {
  65. width: 56px;
  66. padding: 15px 10px;
  67. padding-right: 5px;
  68. float: left;
  69. img {
  70. width: 56px;
  71. height: 56px;
  72. display: block;
  73. border-radius: 4px;
  74. }
  75. }
  76. .entry__container__container {
  77. margin-left: 71px;
  78. }
  79. .header {
  80. margin-bottom: 10px;
  81. padding: 15px;
  82. padding-bottom: 0;
  83. padding-left: 8px;
  84. display: flex;
  85. .header__left {
  86. flex: 1;
  87. }
  88. .header__right {
  89. }
  90. .name {
  91. text-decoration: none;
  92. color: #9baec8;
  93. strong {
  94. color: #282c37;
  95. font-weight: 500;
  96. }
  97. &:hover {
  98. strong {
  99. text-decoration: underline;
  100. }
  101. }
  102. }
  103. }
  104. .pre-header {
  105. border-bottom: 1px solid #d9e1e8;
  106. color: #2b90d9;
  107. padding: 5px 10px;
  108. padding-left: 8px;
  109. clear: both;
  110. .name {
  111. color: #2b90d9;
  112. font-weight: 500;
  113. text-decoration: none;
  114. &:hover {
  115. text-decoration: underline;
  116. }
  117. }
  118. }
  119. .content {
  120. font-size: 14px;
  121. padding: 0 15px;
  122. padding-left: 8px;
  123. padding-bottom: 15px;
  124. color: #282c37;
  125. word-wrap: break-word;
  126. overflow: hidden;
  127. p {
  128. margin-bottom: 18px;
  129. &:last-child {
  130. margin-bottom: 0;
  131. }
  132. }
  133. a {
  134. color: #2b90d9;
  135. text-decoration: none;
  136. &:hover {
  137. text-decoration: underline;
  138. }
  139. &.mention {
  140. &:hover {
  141. text-decoration: none;
  142. span {
  143. text-decoration: underline;
  144. }
  145. }
  146. }
  147. }
  148. }
  149. .time {
  150. text-decoration: none;
  151. color: #9baec8;
  152. &:hover {
  153. text-decoration: underline;
  154. }
  155. }
  156. .media-attachments {
  157. list-style: none;
  158. margin: 0;
  159. padding: 0;
  160. display: block;
  161. overflow: hidden;
  162. padding-left: 10px;
  163. margin-bottom: 15px;
  164. li {
  165. display: block;
  166. float: left;
  167. width: 120px;
  168. height: 100px;
  169. border-radius: 4px;
  170. margin-right: 4px;
  171. margin-bottom: 4px;
  172. a {
  173. display: block;
  174. width: 120px;
  175. height: 100px;
  176. border-radius: 4px;
  177. background-position: center;
  178. background-repeat: none;
  179. background-size: cover;
  180. }
  181. }
  182. }
  183. @media screen and (max-width: 360px) {
  184. .avatar {
  185. display: none;
  186. }
  187. .entry__container__container {
  188. margin-left: 7px;
  189. }
  190. }
  191. }