converts irc logs to html files that look like discord
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.

143 lines
2.3 KiB

2 years ago
2 years ago
2 years ago
  1. html {
  2. font-family: sans-serif;
  3. padding: 2px;
  4. /* NOTE: When chaging, also update pfp_size in src/main.tsx */
  5. --pfp-size: 48px;
  6. --font-size: 14pt;
  7. --ts-font-size: calc(var(--font-size) - 2pt);
  8. }
  9. body {
  10. font-size: var(--font-size);
  11. padding-left: 0.8em;
  12. width: 90vw;
  13. }
  14. .mg-user {
  15. display: flex;
  16. flex-direction: row;
  17. flex-wrap: nowrap;
  18. margin-top: 0.75em;
  19. margin-bottom: 0.75em;
  20. }
  21. .mg-pfp {
  22. margin-right: 0.75em;
  23. }
  24. .mg-user > .mg-pfp > img {
  25. clip-path: url(#squircle);
  26. }
  27. .mg-user > .mg-contents {
  28. display: flex;
  29. flex-direction: column;
  30. align-items: flex-start;
  31. min-height: var(--pfp-size);
  32. gap: 0.33em;
  33. }
  34. .mg-user > .mg-contents > .mg-ts-u > .mg-ts-u-u {
  35. font-weight: bold;
  36. }
  37. .mg-user > .mg-contents > .mg-ts-u > .mg-ts-u-ts {
  38. font-weight: lighter;
  39. color: #666;
  40. font-size: var(--ts-font-size);
  41. }
  42. .mg-user > .mg-contents > .mg-m .mg-ts {
  43. display: none;
  44. }
  45. .mg-user > .mg-contents > .mg-m:hover .mg-ts {
  46. display: unset;
  47. position: absolute;
  48. margin-left: calc(-1 * var(--pfp-size) - 0.75em);
  49. font-size: var(--ts-font-size);
  50. font-weight: lighter;
  51. color: #666;
  52. }
  53. .mg-m > .mg-action {
  54. font-style: italic;
  55. }
  56. .mg-no-user > .mg-status {
  57. margin-top: 1em;
  58. margin-bottom: 1em;
  59. font-size: 0pt;
  60. font-weight: bold;
  61. }
  62. .mg-no-user > .mg-status > .mg-ts {
  63. font-size: 12pt;
  64. width: var(--pfp-size);
  65. display: inline-block;
  66. margin-right: 14px;
  67. }
  68. .mg-no-user > .mg-status > .mg-txt {
  69. font-size: var(--font-size);
  70. }
  71. .mg-sep {
  72. height: 0;
  73. border-top: 1px dotted #666;
  74. box-sizing: border-box;
  75. display: flex;
  76. justify-content: center;
  77. align-items: center;
  78. margin-top: 1em;
  79. margin-bottom: 1em;
  80. }
  81. .mg-sep > span {
  82. height: var(--font-size);
  83. background-color: white;
  84. padding-left: 0.5em;
  85. padding-right: 0.5em;
  86. }
  87. @media only screen and (max-width: 768px) {
  88. body {
  89. padding-left: 0;
  90. }
  91. .mg-status {
  92. font-weight: normal;
  93. }
  94. .mg-status > .mg-txt {
  95. font-style: italic;
  96. }
  97. }
  98. .mg-redacted {
  99. height: var(--pfp-height);
  100. width: 100%;
  101. background-color: black;
  102. color: red;
  103. display: flex;
  104. flex-direction: column;
  105. align-items: center;
  106. padding-top: 0.2em;
  107. padding-bottom: 0.2em;
  108. margin-top: 0.1em;
  109. margin-bottom: 0.1em;
  110. font-weight: bold;
  111. font-size: calc(1.2 * var(--font-size));
  112. }