logo

pleroma-fe

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

settings_modal.scss (2052B)


  1. .settings-modal {
  2. overflow: hidden;
  3. h4 {
  4. margin-bottom: 0.5em;
  5. }
  6. .setting-list,
  7. .option-list {
  8. list-style-type: none;
  9. padding-left: 2em;
  10. li {
  11. margin-bottom: 0.5em;
  12. }
  13. .suboptions {
  14. margin-top: 0.3em;
  15. }
  16. &.two-column {
  17. column-count: 2;
  18. > li {
  19. break-inside: avoid;
  20. }
  21. }
  22. }
  23. .setting-description {
  24. margin-top: 0.2em;
  25. margin-bottom: 2em;
  26. font-size: 70%;
  27. }
  28. .settings-modal-panel {
  29. overflow: hidden;
  30. transition: transform;
  31. transition-timing-function: ease-in-out;
  32. transition-duration: 300ms;
  33. width: 1000px;
  34. max-width: 90vw;
  35. height: 90vh;
  36. @media all and (max-width: 800px) {
  37. max-width: 100vw;
  38. height: 100%;
  39. }
  40. >.panel-body {
  41. height: 100%;
  42. overflow-y: hidden;
  43. .btn {
  44. min-height: 2em;
  45. }
  46. .btn:not(.dropdown-button) {
  47. padding: 0 2em;
  48. }
  49. }
  50. }
  51. .settings-footer {
  52. display: flex;
  53. flex-wrap: wrap;
  54. line-height: 2;
  55. >* {
  56. margin-right: 0.5em;
  57. }
  58. .extra-content {
  59. display: flex;
  60. flex-grow: 1;
  61. }
  62. }
  63. &.peek {
  64. .settings-modal-panel {
  65. /* Explanation:
  66. * Modal is positioned vertically centered.
  67. * 100vh - 100% = Distance between modal's top+bottom boundaries and screen
  68. * (100vh - 100%) / 2 = Distance between bottom (or top) boundary and screen
  69. * + 100% - we move modal completely off-screen, it's top boundary touches
  70. * bottom of the screen
  71. * - 50px - leaving tiny amount of space so that titlebar + tiny amount of modal is visible
  72. */
  73. transform: translateY(calc(((100vh - 100%) / 2 + 100%) - 50px));
  74. @media all and (max-width: 800px) {
  75. /* For mobile, the modal takes 100% of the available screen.
  76. This ensures the minimized modal is always 50px above the browser bottom
  77. bar regardless of whether or not it is visible.
  78. */
  79. transform: translateY(calc(100% - 50px));
  80. }
  81. }
  82. }
  83. }