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.

125 line
2.1KB

  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. 'media media'
  11. ;
  12. grid-template-columns: 1fr auto;
  13. grid-template-rows: 140px auto auto;
  14. position: fixed;
  15. top: 0;
  16. --pad: 3px;
  17. padding: var(--pad);
  18. width: calc(100vw - 2 * var(--pad));
  19. }
  20. .ts {
  21. color: rgba(0, 0, 0, 0.4);
  22. font-family: monospace;
  23. }
  24. .source {
  25. font-weight: bold;
  26. }
  27. .online {
  28. grid-area: online;
  29. }
  30. .posts {
  31. grid-area: posts;
  32. overflow-y: scroll;
  33. }
  34. .post .text p {
  35. margin: 0;
  36. }
  37. .post .text p:first-child {
  38. display: inline;
  39. }
  40. .actions {
  41. grid-area: actions;
  42. display: grid;
  43. grid-template-columns: 1fr auto;
  44. }
  45. .media {
  46. grid-area: media;
  47. position: relative;
  48. }
  49. #textbox {
  50. resize: none;
  51. }
  52. .post > div {
  53. display: inline;
  54. padding-left: var(--pad);
  55. }
  56. .video-meta {
  57. position: absolute;
  58. z-index: 999;
  59. }
  60. .video-option {
  61. display: block;
  62. }
  63. .videos {
  64. display: grid;
  65. grid-auto-flow: column;
  66. justify-content: start;
  67. overflow-x: scroll;
  68. height: 200px;
  69. resize: vertical;
  70. }
  71. .video-container {
  72. display: inline-block;
  73. position: relative;
  74. height: 100%;
  75. overflow: scroll;
  76. }
  77. .video-container video {
  78. background-color: black;
  79. height: 100%;
  80. width: 100%;
  81. }
  82. /* mirror */
  83. .video-container.mirror video {
  84. transform: scaleX(-1);
  85. }
  86. /* square */
  87. .video-container.square {
  88. width: var(--height);
  89. overflow: hidden;
  90. }
  91. .video-container.square video {
  92. object-fit: cover;
  93. }
  94. /* full-screen */
  95. .video-container.full-screen {
  96. position: absolute;
  97. top: 0;
  98. left: 0;
  99. right: 0;
  100. width: unset;
  101. z-index: 999;
  102. overflow: scroll;
  103. background-color: black;
  104. }
  105. .video-container.full-screen video {
  106. object-fit: contain;
  107. width: unset;
  108. height: unset;
  109. }
  110. @media only screen and (min-width: 800px) {
  111. .chat {
  112. grid-template-areas:
  113. 'online media'
  114. 'posts media'
  115. 'actions media'
  116. ;
  117. grid-template-columns: 1fr 4fr;
  118. grid-template-rows: auto 1fr auto;
  119. height: 100vh;
  120. width: 100vw;
  121. }
  122. }