ui-lib.module.scss 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. .card {
  2. background-color: var(--white);
  3. border-radius: 10px;
  4. box-shadow: var(--card-shadow);
  5. padding: 10px;
  6. }
  7. .popover {
  8. position: relative;
  9. }
  10. .popover-content {
  11. position: absolute;
  12. animation: slide-in 0.3s ease;
  13. right: 0;
  14. top: calc(100% + 10px);
  15. }
  16. .popover-mask {
  17. position: fixed;
  18. top: 0;
  19. left: 0;
  20. width: 100vw;
  21. height: 100vh;
  22. }
  23. @keyframes slide-in {
  24. from {
  25. transform: translateY(10px);
  26. opacity: 0;
  27. }
  28. to {
  29. transform: translateY(0);
  30. opacity: 1;
  31. }
  32. }
  33. .list-item {
  34. display: flex;
  35. justify-content: space-between;
  36. align-items: center;
  37. min-height: 40px;
  38. border-bottom: var(--border-in-light);
  39. padding: 10px 20px;
  40. animation: slide-in ease 0.6s;
  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: 50vw;
  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. .modal-actions {
  86. display: flex;
  87. align-items: center;
  88. .modal-action {
  89. &:not(:last-child) {
  90. margin-right: 20px;
  91. }
  92. }
  93. }
  94. }
  95. }
  96. .show {
  97. opacity: 1;
  98. transition: all ease 0.3s;
  99. transform: translateY(0);
  100. position: fixed;
  101. left: 0;
  102. bottom: 0;
  103. animation: slide-in ease 0.6s;
  104. z-index: 99999;
  105. }
  106. .hide {
  107. opacity: 0;
  108. transition: all ease 0.3s;
  109. transform: translateY(20px);
  110. }
  111. .toast-container {
  112. position: fixed;
  113. bottom: 0;
  114. left: 0;
  115. width: 100vw;
  116. display: flex;
  117. justify-content: center;
  118. .toast-content {
  119. font-size: 14px;
  120. background-color: var(--white);
  121. box-shadow: var(--card-shadow);
  122. border: var(--border-in-light);
  123. color: var(--black);
  124. padding: 10px 30px;
  125. border-radius: 50px;
  126. margin-bottom: 20px;
  127. }
  128. }
  129. @media only screen and (max-width: 600px) {
  130. .modal-container {
  131. width: 90vw;
  132. .modal-content {
  133. max-height: 50vh;
  134. }
  135. }
  136. }