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.

pico.css 2.3KB

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