ShareDialog.scss 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. @import "../../packages/excalidraw/css/variables.module.scss";
  2. .excalidraw {
  3. .ShareDialog {
  4. display: flex;
  5. flex-direction: column;
  6. gap: 1.5rem;
  7. @include isMobile {
  8. height: calc(100vh - 5rem);
  9. }
  10. &__separator {
  11. border-top: 1px solid var(--dialog-border-color);
  12. text-align: center;
  13. display: flex;
  14. justify-content: center;
  15. align-items: center;
  16. margin-top: 1em;
  17. span {
  18. background: var(--island-bg-color);
  19. padding: 0px 0.75rem;
  20. transform: translateY(-1ch);
  21. display: inline-flex;
  22. line-height: 1;
  23. }
  24. }
  25. &__popover {
  26. @keyframes ShareDialog__popover__scaleIn {
  27. from {
  28. opacity: 0;
  29. }
  30. to {
  31. opacity: 1;
  32. }
  33. }
  34. box-sizing: border-box;
  35. z-index: 100;
  36. display: flex;
  37. flex-direction: row;
  38. justify-content: center;
  39. align-items: flex-start;
  40. padding: 0.125rem 0.5rem;
  41. gap: 0.125rem;
  42. height: 1.125rem;
  43. border: none;
  44. border-radius: 0.6875rem;
  45. font-family: "Assistant";
  46. font-style: normal;
  47. font-weight: 600;
  48. font-size: 0.75rem;
  49. line-height: 110%;
  50. background: var(--color-success);
  51. color: var(--color-success-text);
  52. & > svg {
  53. width: 0.875rem;
  54. height: 0.875rem;
  55. }
  56. transform-origin: var(--radix-popover-content-transform-origin);
  57. animation: ShareDialog__popover__scaleIn 150ms ease-out;
  58. }
  59. &__picker {
  60. font-family: "Assistant";
  61. &__illustration {
  62. display: flex;
  63. width: 100%;
  64. align-items: center;
  65. justify-content: center;
  66. & svg {
  67. filter: var(--theme-filter);
  68. }
  69. }
  70. &__header {
  71. display: flex;
  72. width: 100%;
  73. align-items: center;
  74. justify-content: center;
  75. font-weight: 700;
  76. font-size: 1.3125rem;
  77. line-height: 130%;
  78. color: var(--color-primary);
  79. }
  80. &__description {
  81. font-weight: 400;
  82. font-size: 0.875rem;
  83. line-height: 150%;
  84. text-align: center;
  85. color: var(--text-primary-color);
  86. & strong {
  87. display: block;
  88. font-weight: 700;
  89. }
  90. }
  91. &__button {
  92. display: flex;
  93. align-items: center;
  94. justify-content: center;
  95. }
  96. }
  97. &__active {
  98. &__share {
  99. display: none !important;
  100. @include isMobile {
  101. display: flex !important;
  102. }
  103. }
  104. &__header {
  105. margin: 0;
  106. }
  107. &__linkRow {
  108. display: flex;
  109. flex-direction: row;
  110. align-items: flex-end;
  111. gap: 0.75rem;
  112. }
  113. &__description {
  114. border-top: 1px solid var(--color-gray-20);
  115. padding: 0.5rem 0.5rem 0;
  116. font-weight: 400;
  117. font-size: 0.75rem;
  118. line-height: 150%;
  119. & p {
  120. margin: 0;
  121. }
  122. & p + p {
  123. margin-top: 1em;
  124. }
  125. }
  126. &__actions {
  127. display: flex;
  128. justify-content: center;
  129. }
  130. }
  131. }
  132. }