post-detail.component.scss 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355
  1. .post {
  2. padding: 10px; /* 设置内边距 */
  3. background-color: white; /* 背景色 */
  4. border-bottom: grey 1px solid; /* 下边框 */
  5. }
  6. .post-header {
  7. display: flex; /* 使用 Flexbox 布局 */
  8. align-items: center; /* 垂直居中 */
  9. margin-bottom: 10px; /* 标题与用户信息之间的间距 */
  10. }
  11. .avatar {
  12. width: 45px; /* 头像宽度 */
  13. height: 45px; /* 头像高度 */
  14. border-radius: 50%; /* 圆形头像 */
  15. overflow: hidden; /* 隐藏超出部分 */
  16. margin-right: 10px; /* 头像与用户名之间的间距 */
  17. border: black 1px solid; /* 边框 */
  18. }
  19. .avatar-image {
  20. width: 100%; /* 头像宽度100% */
  21. height: 100%; /* 头像高度100% */
  22. object-fit: cover; /* 保持比例填充 */
  23. }
  24. .user-info {
  25. flex: 1; /* 让用户名部分占用剩余空间 */
  26. display: flex;
  27. justify-content: space-between; /* 用户名和三个点之间的间距 */
  28. align-items: center; /* 垂直居中 */
  29. }
  30. .username {
  31. font-weight: bold; /* 加粗用户名 */
  32. font-size: 22px; /* 用户名字体大小 */
  33. }
  34. .more-icon {
  35. font-size: 25px; /* 三个点图标大小 */
  36. color: gray;
  37. margin-right: 10px;
  38. }
  39. .post-title {
  40. font-size: 18px; /* 标题字体大小 */
  41. margin: 10px 5px; /* 标题上下间距 */
  42. font-weight: bold;
  43. }
  44. //标签
  45. .tag-container {
  46. display: flex;
  47. justify-content: flex-start; /* 标签靠左对齐 */
  48. margin-bottom: 10px; /* 将标签容器推到底部 */
  49. }
  50. .tag {
  51. background-color: #f0f0f0; // 灰色背景
  52. color: black; // 黑色字体
  53. border-radius: 20px; // 椭圆形效果
  54. padding: 5px 10px; // 标签内边距
  55. margin-right: 17px; // 标签之间的间距
  56. font-size: 14px; // 标签字体大小
  57. display: inline-flex; // 让标签内容居中
  58. align-items: center; // 垂直居中
  59. }
  60. .tagpicture{
  61. margin-left: 5px;
  62. margin-right: 5px;
  63. }
  64. .post-content-text {
  65. font-size: 18px; /* 帖子内容字体大小 */
  66. margin-bottom: 10px; /* 内容与图片之间的间距 */
  67. }
  68. .image-gallery {
  69. display: flex; /* 使用 Flexbox 布局 */
  70. flex-wrap: wrap; /* 允许换行 */
  71. }
  72. .post-image {
  73. width: 32%; /* 每张图片占用32%的宽度 */
  74. height: auto; /* 高度自适应 */
  75. border-radius: 5px; /* 图片圆角 */
  76. margin-bottom: 5px; /* 图片与下一张图片之间的间距 */
  77. margin-right: 5px; /* 图片与下一张图片之间的间距 */
  78. }
  79. .button-container {
  80. display: flex; /* 使用 Flexbox 布局 */
  81. justify-content: space-between; /* 按钮之间的间距 */
  82. }
  83. .action-button {
  84. flex: 1; /* 每个按钮占用相同的空间 */
  85. font-size: 17px; /* 按钮字体大小 */
  86. align-items: center; // 垂直居中
  87. color: black; // 字体颜色
  88. }
  89. .action-button ion-icon {
  90. font-size: 20px; /* 图标大小 */
  91. margin-right: 5px; /* 图标与文本之间的间距 */
  92. }
  93. //关注按钮
  94. .follow-button {
  95. display: flex;
  96. align-items: center;
  97. justify-content: center;
  98. width: 80px; /* 按钮宽度 */
  99. height: 30px; /* 按钮高度 */
  100. border-radius: 20px; /* 椭圆形 */
  101. background-color: black; /* 初始背景色 */
  102. color: white; /* 初始字体颜色 */
  103. cursor: pointer;
  104. transition: background-color 0.3s, color 0.3s; /* 添加过渡效果 */
  105. }
  106. //已关注按钮
  107. .fan-button {
  108. display: flex;
  109. align-items: center;
  110. justify-content: center;
  111. width: 80px; /* 按钮宽度 */
  112. height: 30px; /* 按钮高度 */
  113. border-radius: 20px; /* 椭圆形 */
  114. background-color:white; /* 初始背景色 */
  115. color: black; /* 初始字体颜色 */
  116. }
  117. //+与关注的距离
  118. .distance{
  119. margin-right: 5px;
  120. }
  121. .comment-section {
  122. background-color: white; /* 背景色 */
  123. border-radius: 8px; /* 圆角效果 */
  124. }
  125. .comment-title {
  126. font-size: 20px; /* 标题字体大小 */
  127. font-weight: bold; /* 加粗 */
  128. margin-bottom: 15px; /* 标题与评论之间的间距 */
  129. margin-left: 10px;
  130. }
  131. .comment {
  132. margin-bottom: 20px; /* 每条评论之间的间距 */
  133. }
  134. .comment-box {
  135. display: flex; /* 使用 Flexbox 布局 */
  136. }
  137. .comment-left {
  138. display: flex;
  139. flex-direction: column; /* 垂直排列 */
  140. align-items: center; /* 水平居中 */
  141. margin-right: 10px; /* 左侧与中间盒子之间的间距 */
  142. margin-left: 10px;
  143. }
  144. .comment-middle {
  145. flex: 1; /* 占用剩余空间 */
  146. display: flex;
  147. flex-direction: column; /* 垂直排列 */
  148. }
  149. .comment-right {
  150. display: flex;
  151. margin-left: 10px; /* 右侧与中间盒子之间的间距 */
  152. padding-right: 15px;
  153. }
  154. .comment-avatar {
  155. width: 45px; /* 头像宽度 */
  156. height: 45px; /* 头像高度 */
  157. border-radius: 50%; /* 圆形头像 */
  158. overflow: hidden; /* 隐藏超出部分 */
  159. margin-bottom: 5px;
  160. }
  161. .comment-avatar-image {
  162. width: 100%; /* 头像宽度100% */
  163. height: 100%; /* 头像高度100% */
  164. object-fit: cover; /* 保持比例填充 */
  165. }
  166. .floor {
  167. font-size: 18px; /* 楼数字体大小 */
  168. color: gray; /* 楼数颜色 */
  169. }
  170. .comment-username {
  171. font-weight: bold; /* 加粗用户名 */
  172. font-size: 17px; /* 用户名字体大小 */
  173. }
  174. .comment-text {
  175. font-size: 16px; /* 评论内容字体大小 */
  176. margin: 3px 0; /* 内容上下间距 */
  177. }
  178. .time-ago {
  179. font-size: 16px; /* 时间字体大小 */
  180. color: gray; /* 时间颜色 */
  181. }
  182. .like-icon {
  183. font-size: 25px; /* 点赞图标大小 */
  184. color: gray; /* 点赞图标颜色 */
  185. margin-right: 5px; /* 图标与点赞数之间的间距 */
  186. }
  187. .like-count {
  188. font-size: 14px; /* 点赞数字体大小 */
  189. color: black; /* 点赞数颜色 */
  190. margin-top: 3px; /* 点赞数与评论之间的间距 */
  191. }
  192. .comment-input-container {
  193. display: flex; /* 使用 Flexbox 布局 */
  194. align-items: center; /* 垂直居中 */
  195. background-color: #f9f9f9; /* 背景色 */
  196. border-top: 1px solid #ccc; /* 顶部边框 */
  197. }
  198. .share-icon {
  199. margin-left: 5px;
  200. font-size: 30px; /* 分享按钮大小 */
  201. color: black; /* 分享按钮颜色 */
  202. margin-right: 20px; /* 与输入框的间距 */
  203. }
  204. .comment-input {
  205. display: flex;
  206. align-items: center; /* 垂直居中 */
  207. min-height: 50px; /* 最小高度 */
  208. margin-right: 5px; /* 与按钮的间距 */
  209. border-radius: 20px; /* 椭圆形效果 */
  210. padding: 5px; /* 内边距 */
  211. border: 1px solid #ccc; /* 边框 */
  212. box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* 添加阴影效果 */
  213. height:50px;
  214. width: 50%;
  215. }
  216. .comment-input1 {
  217. display: flex;
  218. align-items: center; /* 垂直居中 */
  219. margin-right: 5px; /* 与按钮的间距 */
  220. border-radius: 20px; /* 椭圆形效果 */
  221. padding: 5px; /* 内边距 */
  222. border: 1px solid #ccc; /* 边框 */
  223. box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* 添加阴影效果 */
  224. height:50px;
  225. width: 80%;
  226. position: relative;
  227. margin-top: 7px;
  228. margin-bottom: 7px;
  229. }
  230. .comment-buttons {
  231. display: flex; /* 使用 Flexbox 布局 */
  232. align-items: center; /* 垂直居中 */
  233. }
  234. .comment-button {
  235. margin-right: 10px; /* 评论按钮与点赞按钮的间距 */
  236. color: black; /* 按钮字体颜色 */
  237. --background: #f9f9f9;
  238. --background-activated: #f9f9f9;
  239. }
  240. .like-button {
  241. font-size: 30px; /* 点赞图标大小 */
  242. color:black; /* 点赞图标颜色 */
  243. }
  244. .send-button {
  245. height: 25px;
  246. width: 60px;
  247. --background: #ccc;
  248. --background-activated: #ccc;
  249. color:grey;
  250. border-radius: 25px;
  251. font-size: 15px;
  252. }
  253. .send-button1 {
  254. height: 25px;
  255. width: 60px;
  256. --background:black;
  257. --background-activated: #ccc;
  258. color:white;
  259. border-radius: 25px;
  260. font-size: 15px;
  261. }
  262. .emoji-button {
  263. display: flex; /* 使用 Flexbox 布局 */
  264. align-items: center; /* 垂直居中 */
  265. margin-right: 10px;
  266. }
  267. /* 表情选择器样式 */
  268. .emoji-picker {
  269. --background: transparent; /* 去除默认样式 */
  270. background-color:white; /* 背景颜色 */
  271. padding: 10px;
  272. display: flex;
  273. justify-content: center; /* 水平居中 */
  274. overflow: hidden; /* 隐藏多余内容 */
  275. }
  276. /* 表情容器用于支持滚动 */
  277. .emoji-container {
  278. display: flex;
  279. flex-wrap: wrap; /* 允许换行 */
  280. overflow-y: auto; /* 允许纵向滚动 */
  281. max-height: 70vh; /* 最大高度,防止超出屏幕 */
  282. width: 100%; /* 容器宽度 */
  283. }
  284. /* 表情按钮 */
  285. .emoji-buttons {
  286. margin: 5px; /* 每个表情与顶部的间距 */
  287. font-size: 28px; /* 字体大小 */
  288. height: 40px; /* 按钮高度 */
  289. width: 40px; /* 按钮宽度 */
  290. display: flex; /* 使用 flexbox 对齐 */
  291. align-items: center; /* 垂直居中 */
  292. justify-content: center; /* 水平居中 */
  293. --background: transparent; /* 背景透明 */
  294. --box-shadow: none; /* 去掉阴影 */
  295. --outline: none; /* 去掉轮廓 */
  296. border: none; /* 去掉边框 */
  297. }