mask.module.scss 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. @import "../styles/animation.scss";
  2. @keyframes search-in {
  3. from {
  4. opacity: 0;
  5. transform: translateY(5vh) scaleX(0.5);
  6. }
  7. to {
  8. opacity: 1;
  9. transform: translateY(0) scaleX(1);
  10. }
  11. }
  12. .mask-page {
  13. height: 100%;
  14. display: flex;
  15. flex-direction: column;
  16. .mask-page-body {
  17. padding: 20px;
  18. overflow-y: auto;
  19. .search-bar {
  20. width: 100%;
  21. max-width: 100%;
  22. margin-bottom: 20px;
  23. animation: search-in ease 0.3s;
  24. }
  25. .mask-item {
  26. display: flex;
  27. justify-content: space-between;
  28. padding: 20px;
  29. border: var(--border-in-light);
  30. animation: slide-in ease 0.3s;
  31. &:not(:last-child) {
  32. border-bottom: 0;
  33. }
  34. &:first-child {
  35. border-top-left-radius: 10px;
  36. border-top-right-radius: 10px;
  37. }
  38. &:last-child {
  39. border-bottom-left-radius: 10px;
  40. border-bottom-right-radius: 10px;
  41. }
  42. .mask-header {
  43. display: flex;
  44. align-items: center;
  45. .mask-icon {
  46. display: flex;
  47. align-items: center;
  48. justify-content: center;
  49. margin-right: 10px;
  50. }
  51. .mask-title {
  52. .mask-name {
  53. font-size: 14px;
  54. font-weight: bold;
  55. }
  56. .mask-info {
  57. font-size: 12px;
  58. }
  59. }
  60. }
  61. .mask-actions {
  62. display: flex;
  63. flex-wrap: nowrap;
  64. transition: all ease 0.3s;
  65. }
  66. @media screen and (max-width: 600px) {
  67. display: flex;
  68. flex-direction: column;
  69. padding-bottom: 10px;
  70. border-radius: 10px;
  71. margin-bottom: 20px;
  72. box-shadow: var(--card-shadow);
  73. &:not(:last-child) {
  74. border-bottom: var(--border-in-light);
  75. }
  76. .mask-actions {
  77. width: 100%;
  78. justify-content: space-between;
  79. padding-top: 10px;
  80. }
  81. }
  82. }
  83. }
  84. }