Gallery Expander

ICQ,Telegram Gallery Expander

  1. /* ==UserStyle==
  2. @name Gallery Expander
  3. @namespace greasyfork.org/en/users/781396-yad
  4. @version 1.0.1
  5. @description ICQ,Telegram Gallery Expander
  6. @author YAD
  7. @advanced dropdown time "Time/Label" {
  8. 1 "ON*" <<<EOT 1 EOT;
  9. 2 "OFF" <<<EOT 0 EOT;
  10. }
  11. @var range trans "Thumbnail Size" [96,40,496,1,"px"]
  12. ==/UserStyle== */
  13.  
  14. @-moz-document domain("web.icq.com") {
  15. .im-gallery {
  16. position: fixed;
  17. }
  18. .im-gallery-preview__info {
  19. opacity: /*[[time]]*/
  20. }
  21. .im-gallery-preview {
  22. width: var(--hoysize);
  23. height:var(--hoysize);
  24. }
  25. :root {
  26. --hoysize:/*[[trans]]*/!important;
  27. }
  28. }
  29. @-moz-document domain("telegram.org") {
  30. .Media .video-duration,
  31. .search-super-content-media .video-time {
  32. opacity: /*[[time]]*/
  33. }
  34.  
  35. .search-super-content-media .search-super-month-items {
  36. grid-template-columns: [linename1 linename2] var(--hoysize)
  37. repeat(auto-fit, [linename1] var(--hoysize)) [linename3];
  38. }
  39. [class="media-photo grid-item-media"] {
  40. width: var(--hoysize)!important;
  41. height:var(--hoysize)!important;
  42. }
  43. body.is-right-column-shown:not(.is-left-column-shown) #column-right {
  44. width: 100%!important;
  45. }
  46. /*-----------Z------------*/
  47. .Media {
  48. width: 150px;
  49. height: 150px;
  50. overflow: hidden;
  51. padding: 1px!important;
  52. margin: auto;
  53. }
  54. .shared-media .content.media-list {
  55. position: absolute!important;
  56. display:flex!important;
  57. flex-direction: row!important;
  58. flex-wrap: wrap!important;
  59. align-items: flex-start;
  60. grid-template-columns: unset!important;
  61. grid-auto-rows: unset!important;
  62. grid-gap: unset!important;
  63. }
  64. .Media img {
  65. position: absolute;
  66. width: 150px;
  67. height: 150px;
  68. }
  69.  
  70. #RightColumn {
  71. width: 75%!important;
  72. overflow: visible!important;
  73. display: inline-block
  74. }
  75. .ProfileInfo {
  76. aspect-ratio: 0/0;
  77. bottom: 90px
  78. }
  79. :root {
  80. --hoysize:/*[[trans]]*/!important;
  81. }
  82. }