Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

130 lines
2.3KB

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