The frontend/UI server, written in JS using the MarkoJS library
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.

112 lines
1.5 KiB

  1. div.comment {
  2. position: relative;
  3. div.options {
  4. width: 100%;
  5. max-width: 95ch;
  6. }
  7. }
  8. div.comment.mode-message {
  9. margin-bottom: 1.5em;
  10. font-size: 1em;
  11. .metadata {
  12. padding-bottom: 0.5em;
  13. }
  14. .content {
  15. outline: 1px solid;
  16. padding: 0.25em 1ch;
  17. font-size: 1.25em;
  18. table.header {
  19. border-bottom: 0.5px solid;
  20. margin: 0;
  21. width: 100%;
  22. tbody {
  23. tr {
  24. text-align: left;
  25. th {
  26. width: 12ch;
  27. padding-right: 1ch;
  28. }
  29. td {
  30. width: 100%;
  31. }
  32. }
  33. }
  34. }
  35. }
  36. div.body {
  37. padding-top: 0.5em;
  38. p:first-of-type {
  39. margin-top: 0;
  40. padding-top: 0;
  41. }
  42. }
  43. }
  44. div.comment.mode-chat {
  45. div.options {
  46. display: none;
  47. bottom: -0.25em;
  48. a {
  49. background: black;
  50. opacity: 0.666;
  51. }
  52. a:hover {
  53. opacity: 1;
  54. }
  55. }
  56. div.content {
  57. line-height: 2em;
  58. font-size: 1.125em;
  59. div.tooltip-content {
  60. text-indent: 0;
  61. }
  62. div.message-text {
  63. vertical-align: top;
  64. padding-left: 2ch;
  65. text-indent: -2ch;
  66. div.body {
  67. p:first-of-type {
  68. display: inline;
  69. }
  70. p:last-of-type {
  71. margin-bottom: 0;
  72. padding-bottom: 0;
  73. }
  74. p {
  75. line-height: 1.5em;
  76. }
  77. }
  78. }
  79. }
  80. }
  81. div.comment.mode-article {
  82. margin-bottom: 1em;
  83. .content {
  84. font-size: 1.25em;
  85. }
  86. }
  87. div.comment.mode-chat:hover {
  88. div.options {
  89. display: block;
  90. }
  91. }