gitea源码

comment.css 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. /* These are the remnants of the fomantic comment module */
  2. /* TODO: remove all of these rules */
  3. .ui.comments {
  4. margin: 1.5em 0;
  5. }
  6. .ui.comments:first-child {
  7. margin-top: 0;
  8. }
  9. .ui.comments:last-child {
  10. margin-bottom: 0;
  11. }
  12. .ui.comments .comment {
  13. display: flex;
  14. position: relative;
  15. background: none;
  16. margin: 3px 0 0;
  17. padding: 0.5em 0 0;
  18. border: none;
  19. border-top: none;
  20. }
  21. .edit-content-zone .comment {
  22. flex-direction: column;
  23. }
  24. .ui.comments .comment:first-child {
  25. margin-top: 0;
  26. padding-top: 0;
  27. }
  28. .ui.comments .comment > .comments {
  29. margin: 0 0 0.5em 0.5em;
  30. padding: 1em 0 1em 1em;
  31. }
  32. .ui.comments .comment > .comments::before {
  33. position: absolute;
  34. top: 0;
  35. left: 0;
  36. }
  37. .ui.comments .comment > .comments .comment {
  38. border: none;
  39. border-top: none;
  40. background: none;
  41. }
  42. .ui.comments .comment > .content {
  43. display: flex;
  44. flex-direction: column;
  45. flex: 1;
  46. min-width: 0;
  47. }
  48. .ui.comments .comment .author {
  49. font-size: 1em;
  50. font-weight: var(--font-weight-medium);
  51. }
  52. .ui.comments .comment a.author {
  53. cursor: pointer;
  54. }
  55. .ui.comments .comment .metadata {
  56. display: inline-block;
  57. margin-left: 0.5em;
  58. font-size: 0.875em;
  59. }
  60. .ui.comments .comment .metadata > * {
  61. display: inline-block;
  62. margin: 0 0.5em 0 0;
  63. }
  64. .ui.comments .comment .metadata > :last-child {
  65. margin-right: 0;
  66. }
  67. .ui.comments .comment .text {
  68. margin: 0.25em 0 0.5em;
  69. font-size: 1em;
  70. overflow-wrap: break-word;
  71. line-height: 1.3;
  72. }