ui-lib.module.scss 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  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-header {
  34. display: flex;
  35. align-items: center;
  36. .list-icon {
  37. margin-right: 10px;
  38. }
  39. .list-item-title {
  40. font-size: 14px;
  41. font-weight: bolder;
  42. }
  43. .list-item-sub-title {
  44. font-size: 12px;
  45. font-weight: normal;
  46. }
  47. }
  48. }
  49. .list {
  50. border: var(--border-in-light);
  51. border-radius: 10px;
  52. box-shadow: var(--card-shadow);
  53. margin-bottom: 20px;
  54. animation: slide-in ease 0.3s;
  55. }
  56. .list .list-item:last-child {
  57. border: 0;
  58. }
  59. .modal-container {
  60. box-shadow: var(--card-shadow);
  61. background-color: var(--white);
  62. border-radius: 12px;
  63. width: 80vw;
  64. max-width: 900px;
  65. min-width: 300px;
  66. animation: slide-in ease 0.3s;
  67. --modal-padding: 20px;
  68. .modal-header {
  69. padding: var(--modal-padding);
  70. display: flex;
  71. align-items: center;
  72. justify-content: space-between;
  73. border-bottom: var(--border-in-light);
  74. .modal-title {
  75. font-weight: bolder;
  76. font-size: 16px;
  77. }
  78. .modal-close-btn {
  79. cursor: pointer;
  80. &:hover {
  81. filter: brightness(1.2);
  82. }
  83. }
  84. }
  85. .modal-content {
  86. max-height: 40vh;
  87. padding: var(--modal-padding);
  88. overflow: auto;
  89. }
  90. .modal-footer {
  91. padding: var(--modal-padding);
  92. display: flex;
  93. justify-content: flex-end;
  94. border-top: var(--border-in-light);
  95. box-shadow: var(--shadow);
  96. .modal-actions {
  97. display: flex;
  98. align-items: center;
  99. .modal-action {
  100. &:not(:last-child) {
  101. margin-right: 20px;
  102. }
  103. }
  104. }
  105. }
  106. }
  107. @media screen and (max-width: 600px) {
  108. .modal-container {
  109. width: 100vw;
  110. border-bottom-left-radius: 0;
  111. border-bottom-right-radius: 0;
  112. .modal-content {
  113. max-height: 50vh;
  114. }
  115. }
  116. }
  117. .show {
  118. opacity: 1;
  119. transition: all ease 0.3s;
  120. transform: translateY(0);
  121. position: fixed;
  122. left: 0;
  123. bottom: 0;
  124. animation: slide-in ease 0.6s;
  125. z-index: 99999;
  126. }
  127. .hide {
  128. opacity: 0;
  129. transition: all ease 0.3s;
  130. transform: translateY(20px);
  131. }
  132. .toast-container {
  133. position: fixed;
  134. bottom: 5vh;
  135. left: 0;
  136. width: 100vw;
  137. display: flex;
  138. justify-content: center;
  139. pointer-events: none;
  140. .toast-content {
  141. max-width: 80vw;
  142. word-break: break-all;
  143. font-size: 14px;
  144. background-color: var(--white);
  145. box-shadow: var(--card-shadow);
  146. border: var(--border-in-light);
  147. color: var(--black);
  148. padding: 10px 20px;
  149. border-radius: 50px;
  150. margin-bottom: 20px;
  151. display: flex;
  152. align-items: center;
  153. pointer-events: all;
  154. .toast-action {
  155. padding-left: 20px;
  156. color: var(--primary);
  157. opacity: 0.8;
  158. border: 0;
  159. background: none;
  160. cursor: pointer;
  161. font-family: inherit;
  162. &:hover {
  163. opacity: 1;
  164. }
  165. }
  166. }
  167. }
  168. .input {
  169. border: var(--border-in-light);
  170. border-radius: 10px;
  171. padding: 10px;
  172. font-family: inherit;
  173. background-color: var(--white);
  174. color: var(--black);
  175. resize: none;
  176. min-width: 50px;
  177. }
  178. .select-with-icon {
  179. position: relative;
  180. max-width: fit-content;
  181. .select-with-icon-select {
  182. height: 100%;
  183. border: var(--border-in-light);
  184. padding: 10px 25px 10px 10px;
  185. border-radius: 10px;
  186. appearance: none;
  187. cursor: pointer;
  188. background-color: var(--white);
  189. color: var(--black);
  190. text-align: center;
  191. }
  192. .select-with-icon-icon {
  193. position: absolute;
  194. top: 50%;
  195. right: 10px;
  196. transform: translateY(-50%);
  197. pointer-events: none;
  198. }
  199. }
  200. .modal-input {
  201. height: 100%;
  202. width: 100%;
  203. border-radius: 10px;
  204. border: var(--border-in-light);
  205. box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.03);
  206. background-color: var(--white);
  207. color: var(--black);
  208. font-family: inherit;
  209. padding: 10px;
  210. resize: none;
  211. outline: none;
  212. box-sizing: border-box;
  213. &:focus {
  214. border: 1px solid var(--primary);
  215. }
  216. }