ui-lib.module.scss 3.3 KB

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