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