logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://hacktivis.me/git/pleroma-fe.git

update_notification.scss (2583B)


  1. .UpdateNotification {
  2. overflow: hidden;
  3. }
  4. .UpdateNotificationModal {
  5. --__top-fringe: 15em; // how much pleroma-tan should stick her head above
  6. --__bottom-fringe: 80em; // just reserving as much as we can, number is mostly irrelevant
  7. --__right-fringe: 8em;
  8. font-size: 15px;
  9. position: relative;
  10. transition: transform;
  11. transition-timing-function: ease-in-out;
  12. transition-duration: 500ms;
  13. .text {
  14. max-width: 40em;
  15. padding-left: 1em;
  16. }
  17. @media all and (max-width: 800px) {
  18. /* For mobile, the modal takes 100% of the available screen.
  19. This ensures the minimized modal is always 50px above the browser
  20. bottom bar regardless of whether or not it is visible.
  21. */
  22. width: 100vw;
  23. }
  24. @media all and (max-height: 600px) {
  25. display: none;
  26. }
  27. .content {
  28. overflow: hidden;
  29. margin-top: calc(-1 * var(--__top-fringe));
  30. margin-bottom: calc(-1 * var(--__bottom-fringe));
  31. margin-right: calc(-1 * var(--__right-fringe));
  32. &.-noImage {
  33. .text {
  34. padding-right: var(--__right-fringe);
  35. }
  36. }
  37. }
  38. .panel-body {
  39. border-width: 0 0 1px;
  40. border-style: solid;
  41. border-color: var(--border);
  42. }
  43. .panel-footer {
  44. z-index: 22;
  45. position: relative;
  46. border-width: 0;
  47. grid-template-columns: auto;
  48. }
  49. .pleroma-tan {
  50. object-fit: cover;
  51. object-position: top;
  52. transition: position, left, right, top, bottom, max-width, max-height;
  53. transition-timing-function: ease-in-out;
  54. transition-duration: 500ms;
  55. width: 25em;
  56. float: right;
  57. z-index: 20;
  58. position: relative;
  59. shape-margin: 0.5em;
  60. filter: drop-shadow(5px 5px 10px rgb(0 0 0 / 50%));
  61. pointer-events: none;
  62. }
  63. .spacer-top {
  64. min-height: var(--__top-fringe);
  65. }
  66. .spacer-bottom {
  67. min-height: var(--__bottom-fringe);
  68. }
  69. .extra-info-group {
  70. transition: max-height, padding, height;
  71. transition-timing-function: ease-in;
  72. transition-duration: 700ms;
  73. max-height: 70vh;
  74. mask:
  75. linear-gradient(to top, white, transparent) bottom/100% 2px no-repeat,
  76. linear-gradient(to top, white, white);
  77. }
  78. .art-credit {
  79. text-align: right;
  80. }
  81. &.-peek {
  82. /* Explanation:
  83. * 100vh - 100% = Distance between modal's top+bottom boundaries and screen
  84. * (100vh - 100%) / 2 = Distance between bottom (or top) boundary and screen
  85. */
  86. transform: translateY(calc(((100vh - 100%) / 2)));
  87. .pleroma-tan {
  88. float: right;
  89. z-index: 10;
  90. shape-image-threshold: 70%;
  91. }
  92. .extra-info-group {
  93. max-height: 0;
  94. }
  95. }
  96. }