logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe git clone https://hacktivis.me/git/mastofe.git

stream_entries.scss (6465B)


  1. .activity-stream {
  2. clear: both;
  3. box-shadow: 0 0 15px rgba($base-shadow-color, 0.2);
  4. .entry {
  5. background: $simple-background-color;
  6. .detailed-status.light,
  7. .status.light,
  8. .more.light {
  9. border-bottom: 1px solid $ui-secondary-color;
  10. animation: none;
  11. }
  12. &:last-child {
  13. &,
  14. .detailed-status.light,
  15. .status.light {
  16. border-bottom: 0;
  17. border-radius: 0 0 4px 4px;
  18. }
  19. }
  20. &:first-child {
  21. &,
  22. .detailed-status.light,
  23. .status.light {
  24. border-radius: 4px 4px 0 0;
  25. }
  26. &:last-child {
  27. &,
  28. .detailed-status.light,
  29. .status.light {
  30. border-radius: 4px;
  31. }
  32. }
  33. }
  34. @media screen and (max-width: 740px) {
  35. &,
  36. .detailed-status.light,
  37. .status.light {
  38. border-radius: 0 !important;
  39. }
  40. }
  41. }
  42. &.with-header {
  43. .entry {
  44. &:first-child {
  45. &,
  46. .detailed-status.light,
  47. .status.light {
  48. border-radius: 0;
  49. }
  50. &:last-child {
  51. &,
  52. .detailed-status.light,
  53. .status.light {
  54. border-radius: 0 0 4px 4px;
  55. }
  56. }
  57. }
  58. }
  59. }
  60. .media-gallery__gifv__label {
  61. bottom: 9px;
  62. }
  63. .status.light {
  64. padding: 14px 14px 14px (48px + 14px * 2);
  65. position: relative;
  66. min-height: 48px;
  67. cursor: default;
  68. .status__header {
  69. font-size: 15px;
  70. .status__meta {
  71. float: right;
  72. font-size: 14px;
  73. .status__relative-time {
  74. color: $ui-primary-color;
  75. }
  76. }
  77. }
  78. .status__display-name {
  79. display: block;
  80. max-width: 100%;
  81. padding-right: 25px;
  82. color: $ui-base-color;
  83. }
  84. .status__avatar {
  85. position: absolute;
  86. left: 14px;
  87. top: 14px;
  88. width: 48px;
  89. height: 48px;
  90. & > div {
  91. width: 48px;
  92. height: 48px;
  93. }
  94. img {
  95. display: block;
  96. border-radius: 4px;
  97. }
  98. }
  99. .display-name {
  100. display: block;
  101. max-width: 100%;
  102. overflow: hidden;
  103. white-space: nowrap;
  104. text-overflow: ellipsis;
  105. strong {
  106. font-weight: 500;
  107. color: $ui-base-color;
  108. @each $lang in $cjk-langs {
  109. &:lang(#{$lang}) {
  110. font-weight: 700;
  111. }
  112. }
  113. }
  114. span {
  115. font-size: 14px;
  116. color: $ui-primary-color;
  117. }
  118. }
  119. .status__content {
  120. color: $ui-base-color;
  121. a {
  122. color: $ui-highlight-color;
  123. }
  124. a.status__content__spoiler-link {
  125. color: $primary-text-color;
  126. background: $ui-base-color;
  127. &:hover {
  128. background: lighten($ui-base-color, 8%);
  129. }
  130. }
  131. }
  132. }
  133. .detailed-status.light {
  134. padding: 14px;
  135. background: $simple-background-color;
  136. cursor: default;
  137. .detailed-status__display-name {
  138. display: block;
  139. overflow: hidden;
  140. margin-bottom: 15px;
  141. & > div {
  142. float: left;
  143. margin-right: 10px;
  144. }
  145. .display-name {
  146. display: block;
  147. max-width: 100%;
  148. overflow: hidden;
  149. white-space: nowrap;
  150. text-overflow: ellipsis;
  151. strong {
  152. font-weight: 500;
  153. color: $ui-base-color;
  154. @each $lang in $cjk-langs {
  155. &:lang(#{$lang}) {
  156. font-weight: 700;
  157. }
  158. }
  159. }
  160. span {
  161. font-size: 14px;
  162. color: $ui-primary-color;
  163. }
  164. }
  165. }
  166. .avatar {
  167. width: 48px;
  168. height: 48px;
  169. img {
  170. display: block;
  171. border-radius: 4px;
  172. }
  173. }
  174. .status__content {
  175. color: $ui-base-color;
  176. a {
  177. color: $ui-highlight-color;
  178. }
  179. a.status__content__spoiler-link {
  180. color: $primary-text-color;
  181. background: $ui-base-color;
  182. &:hover {
  183. background: lighten($ui-base-color, 8%);
  184. }
  185. }
  186. }
  187. .detailed-status__meta {
  188. margin-top: 15px;
  189. color: $ui-primary-color;
  190. font-size: 14px;
  191. line-height: 18px;
  192. a {
  193. color: inherit;
  194. }
  195. span > span {
  196. font-weight: 500;
  197. font-size: 12px;
  198. margin-left: 6px;
  199. display: inline-block;
  200. }
  201. }
  202. .status-card {
  203. border-color: lighten($ui-secondary-color, 4%);
  204. color: darken($ui-primary-color, 4%);
  205. &:hover {
  206. background: lighten($ui-secondary-color, 4%);
  207. }
  208. }
  209. .status-card__title,
  210. .status-card__description {
  211. color: $ui-base-color;
  212. }
  213. .status-card__image {
  214. background: $ui-secondary-color;
  215. }
  216. }
  217. .media-spoiler {
  218. background: $ui-base-color;
  219. color: $ui-primary-color;
  220. }
  221. .pre-header {
  222. padding: 14px 0;
  223. padding-left: (48px + 14px * 2);
  224. padding-bottom: 0;
  225. margin-bottom: -4px;
  226. color: $ui-primary-color;
  227. font-size: 14px;
  228. position: relative;
  229. .pre-header__icon {
  230. position: absolute;
  231. left: (48px + 14px * 2 - 30px);
  232. }
  233. .status__display-name.muted strong {
  234. color: $ui-primary-color;
  235. }
  236. }
  237. .open-in-web-link {
  238. text-decoration: none;
  239. &:hover {
  240. text-decoration: underline;
  241. }
  242. }
  243. .more {
  244. color: $classic-primary-color;
  245. display: block;
  246. padding: 14px;
  247. text-align: center;
  248. &:not(:hover) {
  249. text-decoration: none;
  250. }
  251. }
  252. }
  253. .embed {
  254. .activity-stream {
  255. box-shadow: none;
  256. .entry {
  257. .detailed-status.light {
  258. display: flex;
  259. flex-wrap: wrap;
  260. justify-content: space-between;
  261. align-items: flex-start;
  262. .detailed-status__display-name {
  263. flex: 1;
  264. margin: 0 5px 15px 0;
  265. }
  266. .button.button-secondary.logo-button {
  267. flex: 0 auto;
  268. font-size: 14px;
  269. svg {
  270. width: 20px;
  271. height: auto;
  272. vertical-align: middle;
  273. margin-right: 5px;
  274. path:first-child {
  275. fill: $ui-primary-color;
  276. }
  277. path:last-child {
  278. fill: $simple-background-color;
  279. }
  280. }
  281. &:active,
  282. &:focus,
  283. &:hover {
  284. svg path:first-child {
  285. fill: lighten($ui-primary-color, 4%);
  286. }
  287. }
  288. }
  289. .status__content,
  290. .detailed-status__meta {
  291. flex: 100%;
  292. }
  293. }
  294. }
  295. }
  296. }