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.

130 lines
2.3KB

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