mask.module.scss 2.3 KB

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