ui-lib.module.scss 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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. --modal-padding: 20px;
  58. .modal-header {
  59. padding: var(--modal-padding);
  60. display: flex;
  61. align-items: center;
  62. justify-content: space-between;
  63. border-bottom: var(--border-in-light);
  64. .modal-title {
  65. font-weight: bolder;
  66. font-size: 16px;
  67. }
  68. .modal-close-btn {
  69. cursor: pointer;
  70. &:hover {
  71. filter: brightness(1.2);
  72. }
  73. }
  74. }
  75. .modal-content {
  76. height: 40vh;
  77. padding: var(--modal-padding);
  78. overflow: auto;
  79. }
  80. .modal-footer {
  81. padding: var(--modal-padding);
  82. display: flex;
  83. justify-content: flex-end;
  84. .modal-actions {
  85. display: flex;
  86. align-items: center;
  87. .modal-action {
  88. &:not(:last-child) {
  89. margin-right: 20px;
  90. }
  91. }
  92. }
  93. }
  94. }
  95. @media only screen and (max-width: 600px) {
  96. .modal-container {
  97. width: 90vw;
  98. .modal-content {
  99. height: 50vh;
  100. }
  101. }
  102. }