spell-table.component.scss 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. .heading-list {
  2. flex: 0 0 3rem;
  3. padding: 10px 0.625rem;
  4. display: grid;
  5. grid-template-columns: 1.75fr 6fr 3.75fr 2.25fr 5fr 3.25fr;
  6. text-align: center;
  7. font-weight: 700;
  8. box-shadow: var(--shadow-bottom);
  9. border-bottom: 1px solid var(--border-color);
  10. }
  11. .item-list {
  12. max-width: 100%;
  13. min-height: 60px;
  14. display: block;
  15. background: transparent;
  16. border-radius: 4px;
  17. overflow: hidden;
  18. }
  19. .item {
  20. margin: 15px 10px;
  21. color: rgba(0, 0, 0, 0.87);
  22. display: grid;
  23. grid-template-columns: 1.75fr 1px 6fr 1px 3.75fr 1px 2.25fr 1px 5fr 1px 3.25fr;
  24. align-items: center;
  25. justify-content: space-between;
  26. box-sizing: border-box;
  27. cursor: move;
  28. background: var(--items);
  29. border-radius: 10px;
  30. font-size: 1rem;
  31. font-weight: 600;
  32. text-align: center;
  33. box-shadow:
  34. 0 5px 5px -3px rgba(0, 0, 0, 0.2),
  35. 0 8px 8px 1px rgba(0, 0, 0, 0.14),
  36. 0 3px 10px 2px rgba(0, 0, 0, 0.12);
  37. transition: background-color 0.2s ease-in-out;
  38. &:hover {
  39. background: var(--items-hover);
  40. }
  41. }
  42. .spell-box {
  43. height: 100%;
  44. width: 100%;
  45. display: flex;
  46. flex-direction: column;
  47. position: relative;
  48. }
  49. .table-content {
  50. flex: 0 0 calc(100% - 8rem);
  51. overflow-y: auto;
  52. }
  53. .bold {
  54. font-weight: bold;
  55. }
  56. .small {
  57. font-size: 0.625rem;
  58. }
  59. .large {
  60. font-size: 1.125rem;
  61. }
  62. .vertical-line {
  63. position: relative;
  64. width: 1px;
  65. height: 3.5rem;
  66. }
  67. .vertical-line::before {
  68. content: "";
  69. position: absolute;
  70. top: 15%;
  71. bottom: 15%;
  72. left: 0;
  73. border-left: 1px solid black;
  74. }
  75. .slide-button {
  76. position: absolute;
  77. height: 3rem;
  78. bottom: 1rem;
  79. right: 10%;
  80. width: 80%;
  81. font-size: 1.25rem;
  82. font-weight: 600;
  83. border-radius: 10px;
  84. background: var(--accept);
  85. transition: width 0.25s ease-in-out;
  86. box-shadow: var(--shadow);
  87. &:hover {
  88. background-color: var(--accept-hover);
  89. }
  90. }
  91. .cancel-button {
  92. width: 20%;
  93. background-color: var(--delete);
  94. &:hover {
  95. background-color: var(--delete-hover);
  96. }
  97. }
  98. .footer {
  99. height: 100%;
  100. width: 100%;
  101. border-radius: 0 0 10px 10px;
  102. box-shadow: var(--shadow-top);
  103. }
  104. .spellInput {
  105. position: absolute;
  106. height: 3rem;
  107. bottom: 1rem;
  108. right: 10%;
  109. width: 80%;
  110. border-radius: 10px;
  111. padding-left: 0.875rem;
  112. box-shadow: var(--shadow);
  113. }
  114. .hidden {
  115. box-shadow: none;
  116. }
  117. //// Drag and Drop
  118. .cdk-drag-preview {
  119. box-sizing: border-box;
  120. border-radius: 10px;
  121. box-shadow:
  122. 0 5px 5px -3px rgba(0, 0, 0, 0.2),
  123. 0 8px 10px 1px rgba(0, 0, 0, 0.14),
  124. 0 3px 14px 2px rgba(0, 0, 0, 0.12);
  125. }
  126. .cdk-drag-placeholder {
  127. opacity: 0;
  128. }
  129. .cdk-drag-animating {
  130. transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
  131. }
  132. .item-list.cdk-drop-list-dragging .item:not(.cdk-drag-placeholder) {
  133. transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
  134. }