ui-lib.module.scss 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. @import "../styles/animation.scss";
  2. .card {
  3. background-color: var(--white);
  4. border-radius: 10px;
  5. box-shadow: var(--card-shadow);
  6. padding: 10px;
  7. }
  8. .popover {
  9. position: relative;
  10. z-index: 2;
  11. }
  12. .popover-content {
  13. position: absolute;
  14. animation: slide-in 0.3s ease;
  15. right: 0;
  16. top: calc(100% + 10px);
  17. }
  18. .popover-mask {
  19. position: fixed;
  20. top: 0;
  21. left: 0;
  22. width: 100vw;
  23. height: 100vh;
  24. }
  25. .list-item {
  26. display: flex;
  27. justify-content: space-between;
  28. align-items: center;
  29. min-height: 40px;
  30. border-bottom: var(--border-in-light);
  31. padding: 10px 20px;
  32. animation: slide-in ease 0.6s;
  33. }
  34. .list {
  35. border: var(--border-in-light);
  36. border-radius: 10px;
  37. box-shadow: var(--card-shadow);
  38. margin-bottom: 20px;
  39. animation: slide-in ease 0.3s;
  40. }
  41. .list .list-item:last-child {
  42. border: 0;
  43. }
  44. .modal-container {
  45. box-shadow: var(--card-shadow);
  46. background-color: var(--white);
  47. border-radius: 12px;
  48. width: 50vw;
  49. animation: slide-in ease 0.3s;
  50. --modal-padding: 20px;
  51. .modal-header {
  52. padding: var(--modal-padding);
  53. display: flex;
  54. align-items: center;
  55. justify-content: space-between;
  56. border-bottom: var(--border-in-light);
  57. .modal-title {
  58. font-weight: bolder;
  59. font-size: 16px;
  60. }
  61. .modal-close-btn {
  62. cursor: pointer;
  63. &:hover {
  64. filter: brightness(1.2);
  65. }
  66. }
  67. }
  68. .modal-content {
  69. max-height: 40vh;
  70. padding: var(--modal-padding);
  71. overflow: auto;
  72. }
  73. .modal-footer {
  74. padding: var(--modal-padding);
  75. display: flex;
  76. justify-content: flex-end;
  77. .modal-actions {
  78. display: flex;
  79. align-items: center;
  80. .modal-action {
  81. &:not(:last-child) {
  82. margin-right: 20px;
  83. }
  84. }
  85. }
  86. }
  87. }
  88. .show {
  89. opacity: 1;
  90. transition: all ease 0.3s;
  91. transform: translateY(0);
  92. position: fixed;
  93. left: 0;
  94. bottom: 0;
  95. animation: slide-in ease 0.6s;
  96. z-index: 99999;
  97. }
  98. .hide {
  99. opacity: 0;
  100. transition: all ease 0.3s;
  101. transform: translateY(20px);
  102. }
  103. .toast-container {
  104. position: fixed;
  105. bottom: 0;
  106. left: 0;
  107. width: 100vw;
  108. display: flex;
  109. justify-content: center;
  110. pointer-events: none;
  111. .toast-content {
  112. max-width: 80vw;
  113. word-break: break-all;
  114. font-size: 14px;
  115. background-color: var(--white);
  116. box-shadow: var(--card-shadow);
  117. border: var(--border-in-light);
  118. color: var(--black);
  119. padding: 10px 20px;
  120. border-radius: 50px;
  121. margin-bottom: 20px;
  122. display: flex;
  123. align-items: center;
  124. pointer-events: all;
  125. .toast-action {
  126. padding-left: 20px;
  127. color: var(--primary);
  128. opacity: 0.8;
  129. border: 0;
  130. background: none;
  131. cursor: pointer;
  132. font-family: inherit;
  133. &:hover {
  134. opacity: 1;
  135. }
  136. }
  137. }
  138. }
  139. .input {
  140. border: var(--border-in-light);
  141. border-radius: 10px;
  142. padding: 10px;
  143. font-family: inherit;
  144. background-color: var(--white);
  145. color: var(--black);
  146. resize: none;
  147. min-width: 50px;
  148. }
  149. @media only screen and (max-width: 600px) {
  150. .modal-container {
  151. width: 90vw;
  152. .modal-content {
  153. max-height: 50vh;
  154. }
  155. }
  156. }