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.

114 line
2.0KB

  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. }
  48. #textbox {
  49. resize: vertical;
  50. }
  51. .post > div {
  52. display: inline;
  53. padding-left: var(--pad);
  54. }
  55. .videos {
  56. display: inline-grid;
  57. grid-auto-flow: column;
  58. grid-gap: 3px;
  59. justify-content: start;
  60. overflow: hidden;
  61. resize: vertical;
  62. height: 200px;
  63. width: 100%;
  64. }
  65. .video-container {
  66. background-color: lightsteelblue;
  67. display: inline-block;
  68. position: relative;
  69. overflow: scroll;
  70. }
  71. .video-meta {
  72. position: absolute;
  73. z-index: 999;
  74. }
  75. .video-option {
  76. display: block;
  77. }
  78. .video-container video {
  79. position: absolute;
  80. }
  81. .video-container.square {
  82. height: 100%;
  83. width: var(--height);
  84. }
  85. .video-container.square video {
  86. object-fit: cover;
  87. width: 100%;
  88. height: 100%;
  89. }
  90. .video-container.mirror video {
  91. transform: scaleX(-1);
  92. }
  93. .video-container.full-screen {
  94. position: initial;
  95. }
  96. .video-container.full-screen video {
  97. position: relative;
  98. }
  99. @media only screen and (min-width: 800px) {
  100. .chat {
  101. grid-template-areas:
  102. 'online media'
  103. 'posts media'
  104. 'actions media'
  105. ;
  106. grid-template-columns: 1fr 4fr;
  107. grid-template-rows: auto 1fr auto;
  108. height: 100vh;
  109. width: 100vw;
  110. }
  111. }