media.scss 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. @import "_variables";
  2. .gallery-row {
  3. display: flex;
  4. flex-direction: row;
  5. flex-wrap: nowrap;
  6. overflow: hidden;
  7. flex-grow: 1;
  8. max-height: 379.5px;
  9. max-width: 533px;
  10. pointer-events: all;
  11. .still-image {
  12. width: 100%;
  13. align-self: center;
  14. }
  15. }
  16. .attachments {
  17. margin-top: 0.35em;
  18. display: flex;
  19. flex-direction: row;
  20. width: 100%;
  21. max-height: 600px;
  22. border-radius: 7px;
  23. overflow: hidden;
  24. flex-flow: column;
  25. background-color: var(--bg_color);
  26. align-items: center;
  27. pointer-events: all;
  28. .image-attachment {
  29. width: 100%;
  30. }
  31. }
  32. .attachment {
  33. position: relative;
  34. line-height: 0;
  35. overflow: hidden;
  36. margin: 0 0.25em 0 0;
  37. flex-grow: 1;
  38. box-sizing: border-box;
  39. min-width: 2em;
  40. &:last-child {
  41. margin: 0;
  42. max-height: 530px;
  43. }
  44. }
  45. .gallery-gif video {
  46. max-height: 530px;
  47. background-color: #101010;
  48. }
  49. .still-image {
  50. max-height: 379.5px;
  51. max-width: 533px;
  52. img {
  53. object-fit: cover;
  54. max-width: 100%;
  55. max-height: 379.5px;
  56. flex-basis: 300px;
  57. flex-grow: 1;
  58. }
  59. }
  60. .alt-text {
  61. margin: 0px;
  62. padding: 11px 7px;
  63. box-sizing: border-box;
  64. position: absolute;
  65. bottom: 10px;
  66. left: 10px;
  67. width: 2.98em;
  68. max-height: 25px;
  69. white-space: pre;
  70. overflow: hidden;
  71. border-radius: 10px;
  72. color: var(--fg_color);
  73. font-size: 12px;
  74. font-weight: bold;
  75. background: rgba(0, 0, 0, 0.5);
  76. backdrop-filter: blur(12px);
  77. }
  78. .alt-text:hover {
  79. padding: 7px;
  80. width: Min(230px, calc(100% - 10px * 2));
  81. max-height: calc(100% - 10px);
  82. line-height: 1.2em;
  83. white-space: pre-wrap;
  84. transition-duration: 0.4s;
  85. transition-property: max-height;
  86. }
  87. .image {
  88. display: flex;
  89. }
  90. // .single-image {
  91. // display: inline-block;
  92. // width: 100%;
  93. // max-height: 600px;
  94. // .attachments {
  95. // width: unset;
  96. // max-height: unset;
  97. // display: inherit;
  98. // }
  99. // }
  100. .overlay-circle {
  101. border-radius: 50%;
  102. background-color: var(--dark_grey);
  103. width: 40px;
  104. height: 40px;
  105. align-items: center;
  106. display: flex;
  107. border-width: 5px;
  108. border-color: var(--play_button);
  109. border-style: solid;
  110. }
  111. .overlay-triangle {
  112. width: 0;
  113. height: 0;
  114. border-style: solid;
  115. border-width: 12px 0 12px 17px;
  116. border-color: transparent transparent transparent var(--play_button);
  117. margin-left: 14px;
  118. }
  119. .media-gif {
  120. display: table;
  121. background-color: unset;
  122. width: unset;
  123. }
  124. .media-body {
  125. flex: 1;
  126. padding: 0;
  127. white-space: pre-wrap;
  128. }