logo

pleroma-fe

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

popover.scss (3203B)


  1. .popover-trigger-button {
  2. display: inline-block;
  3. }
  4. .popover {
  5. z-index: var(--ZI_popover_override, var(--ZI_popovers));
  6. position: fixed;
  7. min-width: 0;
  8. max-width: calc(100vw - 20px);
  9. box-shadow: var(--shadow);
  10. }
  11. .popover-default {
  12. &::after {
  13. content: "";
  14. position: absolute;
  15. top: -1px;
  16. bottom: -1px;
  17. left: -1px;
  18. right: -1px;
  19. z-index: -1px;
  20. box-shadow: var(--shadow);
  21. pointer-events: none;
  22. }
  23. border-radius: var(--roundness);
  24. border-color: var(--border);
  25. border-style: solid;
  26. border-width: 1px;
  27. background-color: var(--background);
  28. }
  29. .dropdown-menu {
  30. display: block;
  31. padding: 0;
  32. font-size: 1em;
  33. text-align: left;
  34. list-style: none;
  35. max-width: 100vw;
  36. z-index: var(--ZI_popover_override, var(--ZI_popovers));
  37. white-space: nowrap;
  38. background-color: var(--background);
  39. .dropdown-divider {
  40. height: 0;
  41. margin: 0.5rem 0;
  42. overflow: hidden;
  43. border-top: 1px solid var(--border);
  44. }
  45. .dropdown-item {
  46. padding: 0;
  47. display: grid;
  48. grid-template-columns: 1fr;
  49. grid-auto-flow: column;
  50. grid-auto-columns: auto;
  51. .popover-wrapper {
  52. box-sizing: border-box;
  53. display: grid;
  54. grid-template-columns: 1fr;
  55. }
  56. .extra-button {
  57. border-left: 1px solid var(--icon);
  58. padding-left: calc(var(--__horizontal-gap) - 1px);
  59. border-right: var(--__horizontal-gap) solid transparent;
  60. border-top: var(--__horizontal-gap) solid transparent;
  61. border-bottom: var(--__horizontal-gap) solid transparent;
  62. }
  63. .main-button {
  64. width: 100%;
  65. padding: var(--__horizontal-gap) var(--__horizontal-gap);
  66. grid-gap: var(--__horizontal-gap);
  67. grid-template-columns: 1fr var(--__line-height);
  68. grid-auto-flow: column;
  69. grid-auto-columns: auto;
  70. .menu-checkbox {
  71. display: inline-block;
  72. vertical-align: middle;
  73. min-width: calc(var(--__line-height) + 1px);
  74. max-width: calc(var(--__line-height) + 1px);
  75. min-height: calc(var(--__line-height) + 1px);
  76. max-height: calc(var(--__line-height) + 1px);
  77. line-height: var(--__line-height);
  78. text-align: center;
  79. border-radius: 0;
  80. box-shadow: var(--shadow);
  81. margin-right: var(--__horizontal-gap);
  82. &.menu-checkbox-checked::after {
  83. font-size: 1.25em;
  84. content: "✓";
  85. }
  86. &.-radio {
  87. border-radius: 9999px;
  88. &.menu-checkbox-checked::after {
  89. font-size: 2em;
  90. content: "•";
  91. }
  92. }
  93. }
  94. }
  95. .main-button,
  96. .extra-button {
  97. display: grid;
  98. box-sizing: border-box;
  99. align-items: center;
  100. &.disabled {
  101. cursor: not-allowed;
  102. }
  103. &:not(.disabled) {
  104. cursor: pointer;
  105. }
  106. }
  107. &.-icon {
  108. .main-button {
  109. grid-template-columns: var(--__line-height) 1fr;
  110. }
  111. }
  112. &.-icon-space {
  113. .main-button {
  114. padding-left: calc(var(--__line-height) + var(--__horizontal-gap) * 2);
  115. }
  116. }
  117. &.-icon-double {
  118. .main-button {
  119. grid-template-columns: var(--__line-height) var(--__line-height) 1fr;
  120. }
  121. }
  122. }
  123. }