logo

pleroma-fe

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

settings_modal.scss (2297B)


  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. .btn:not(.dropdown-button) {
  11. padding: 0 2em;
  12. }
  13. li {
  14. margin-bottom: 0.5em;
  15. }
  16. .suboptions {
  17. margin-top: 0.3em;
  18. }
  19. &.two-column {
  20. column-count: 2;
  21. > li {
  22. break-inside: avoid;
  23. }
  24. }
  25. }
  26. .setting-description {
  27. margin-top: 0.2em;
  28. margin-bottom: 2em;
  29. font-size: 70%;
  30. }
  31. .settings-modal-panel {
  32. overflow: hidden;
  33. transition: transform;
  34. transition-timing-function: ease-in-out;
  35. transition-duration: 300ms;
  36. width: 1000px;
  37. max-width: 90vw;
  38. height: 90vh;
  39. @media all and (max-width: 800px) {
  40. max-width: 100vw;
  41. height: 100%;
  42. }
  43. >.panel-body {
  44. height: 100%;
  45. overflow-y: hidden;
  46. .btn {
  47. min-height: 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. &.-mobile {
  64. .setting-list,
  65. .option-list {
  66. padding-left: 0.25em;
  67. > li {
  68. margin: 1em 0;
  69. line-height: 1.5em;
  70. vertical-align: center;
  71. }
  72. &.two-column {
  73. column-count: 1;
  74. }
  75. }
  76. }
  77. &.peek {
  78. .settings-modal-panel {
  79. /* Explanation:
  80. * Modal is positioned vertically centered.
  81. * 100vh - 100% = Distance between modal's top+bottom boundaries and screen
  82. * (100vh - 100%) / 2 = Distance between bottom (or top) boundary and screen
  83. * + 100% - we move modal completely off-screen, it's top boundary touches
  84. * bottom of the screen
  85. * - 50px - leaving tiny amount of space so that titlebar + tiny amount of modal is visible
  86. */
  87. transform: translateY(calc(((100vh - 100%) / 2 + 100%) - 50px));
  88. @media all and (max-width: 800px) {
  89. /* For mobile, the modal takes 100% of the available screen.
  90. This ensures the minimized modal is always 50px above the browser bottom
  91. bar regardless of whether or not it is visible.
  92. */
  93. transform: translateY(calc(100% - 50px));
  94. }
  95. }
  96. }
  97. }