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.

87 lines
1.4 KiB

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. }
  12. .mg-user {
  13. display: flex;
  14. flex-direction: row;
  15. flex-wrap: nowrap;
  16. margin-top: 0.75em;
  17. margin-bottom: 0.75em;
  18. }
  19. .mg-pfp {
  20. margin-right: 0.75em;
  21. }
  22. .mg-user > .mg-pfp > img {
  23. width: var(--pfp-size);
  24. height: var(--pfp-size);
  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: 14pt;
  70. }