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.

86 lines
1.4KB

  1. body {
  2. margin: 0;
  3. padding: 0;
  4. }
  5. .chat {
  6. display: grid;
  7. grid-template-areas:
  8. 'posts online'
  9. 'actions actions'
  10. ;
  11. grid-template-columns: 1fr auto;
  12. grid-template-rows: 140px auto;
  13. position: fixed;
  14. top: 0;
  15. --pad: 3px;
  16. padding: var(--pad);
  17. width: calc(100vw - 2 * var(--pad));
  18. }
  19. .ts {
  20. color: rgba(0, 0, 0, 0.4);
  21. font-family: monospace;
  22. }
  23. .source {
  24. font-weight: bold;
  25. }
  26. .online {
  27. grid-area: online;
  28. }
  29. .posts {
  30. grid-area: posts;
  31. overflow-y: scroll;
  32. }
  33. .post .text p {
  34. margin: 0;
  35. }
  36. .post .text p:first-child {
  37. display: inline;
  38. }
  39. .actions {
  40. grid-area: actions;
  41. display: grid;
  42. grid-template-columns: 1fr auto;
  43. }
  44. #textbox {
  45. resize: vertical;
  46. }
  47. .post > div {
  48. display: inline;
  49. padding-left: var(--pad);
  50. }
  51. .videos {
  52. display: inline-grid;
  53. grid-auto-flow: column;
  54. --gap: 1em;
  55. grid-gap: var(--gap);
  56. padding: var(--gap);
  57. overflow: hidden;
  58. resize: vertical;
  59. height: 200px;
  60. }
  61. .video-container {
  62. display: inline-block;
  63. position: relative;
  64. overflow: hidden;
  65. }
  66. .video-meta {
  67. position: absolute;
  68. z-index: 999;
  69. }
  70. .video-meta label {
  71. display: block;
  72. }
  73. .video-container video {
  74. background-color: lightsteelblue;
  75. height: 100%;
  76. width: 100%;
  77. }
  78. .video-container.square video {
  79. object-fit: cover;
  80. }
  81. .video-container.mirror video {
  82. transform: scaleX(-1);
  83. }