The code powering m.abunchtell.com https://m.abunchtell.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

354 lines
5.9 KiB

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