ui-lib.module.scss 2.7 KB

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