mask.module.scss 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  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. .mask-filter {
  20. width: 100%;
  21. max-width: 100%;
  22. margin-bottom: 20px;
  23. animation: search-in ease 0.3s;
  24. height: 40px;
  25. display: flex;
  26. .search-bar {
  27. flex-grow: 1;
  28. max-width: 100%;
  29. min-width: 0;
  30. animation: search-in ease 0.3s;
  31. }
  32. .mask-filter-lang {
  33. height: 100%;
  34. margin-left: 10px;
  35. }
  36. .mask-create {
  37. height: 100%;
  38. margin-left: 10px;
  39. box-sizing: border-box;
  40. min-width: 80px;
  41. }
  42. }
  43. .mask-item {
  44. display: flex;
  45. justify-content: space-between;
  46. padding: 20px;
  47. border: var(--border-in-light);
  48. animation: slide-in ease 0.3s;
  49. &:not(:last-child) {
  50. border-bottom: 0;
  51. }
  52. &:first-child {
  53. border-top-left-radius: 10px;
  54. border-top-right-radius: 10px;
  55. }
  56. &:last-child {
  57. border-bottom-left-radius: 10px;
  58. border-bottom-right-radius: 10px;
  59. }
  60. .mask-header {
  61. display: flex;
  62. align-items: center;
  63. .mask-icon {
  64. display: flex;
  65. align-items: center;
  66. justify-content: center;
  67. margin-right: 10px;
  68. }
  69. .mask-title {
  70. .mask-name {
  71. font-size: 14px;
  72. font-weight: bold;
  73. }
  74. .mask-info {
  75. font-size: 12px;
  76. }
  77. }
  78. }
  79. .mask-actions {
  80. display: flex;
  81. flex-wrap: nowrap;
  82. transition: all ease 0.3s;
  83. }
  84. @media screen and (max-width: 600px) {
  85. display: flex;
  86. flex-direction: column;
  87. padding-bottom: 10px;
  88. border-radius: 10px;
  89. margin-bottom: 20px;
  90. box-shadow: var(--card-shadow);
  91. &:not(:last-child) {
  92. border-bottom: var(--border-in-light);
  93. }
  94. .mask-actions {
  95. width: 100%;
  96. justify-content: space-between;
  97. padding-top: 10px;
  98. }
  99. }
  100. }
  101. }
  102. }