weapon-table.component.scss 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. .heading-list {
  2. flex: 0 0 3rem;
  3. display: grid;
  4. padding: 10px 12px;
  5. grid-template-columns: 6fr 20fr 8fr 16fr 10fr;
  6. text-align: center;
  7. font-weight: 700;
  8. box-shadow: var(--shadow);
  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. }
  17. .item {
  18. margin: 15px 10px;
  19. display: grid;
  20. grid-template-columns: 6fr 0.1fr 20fr 0.1fr 8fr 0.1fr 16fr 0.1fr 10fr;
  21. align-items: center;
  22. justify-content: space-between;
  23. box-sizing: border-box;
  24. cursor: move;
  25. background: var(--items);
  26. border-radius: 10px;
  27. font-size: 1rem;
  28. font-weight: 600;
  29. text-align: center;
  30. box-shadow:
  31. 0 5px 5px -3px rgba(0, 0, 0, 0.2),
  32. 0 8px 8px 1px rgba(0, 0, 0, 0.14),
  33. 0 3px 10px 2px rgba(0, 0, 0, 0.12);
  34. transition: background-color 0.2s ease-in-out;
  35. &:hover {
  36. background: var(--items-hover);
  37. }
  38. }
  39. .weapons-box {
  40. height: 100%;
  41. display: flex;
  42. flex-direction: column;
  43. }
  44. .table-content {
  45. flex: 0 0 calc(100% - 8rem);
  46. overflow-y: auto;
  47. }
  48. .bold {
  49. font-weight: bold;
  50. }
  51. .small {
  52. font-size: 0.625rem;
  53. }
  54. .large {
  55. font-size: 1.125rem;
  56. }
  57. .vertical-line {
  58. position: relative;
  59. width: 1px;
  60. height: 3.5rem;
  61. }
  62. .vertical-line::before {
  63. content: "";
  64. position: absolute;
  65. top: 15%;
  66. bottom: 15%;
  67. left: 0;
  68. border-left: 1px solid black;
  69. }
  70. .footer {
  71. height: 100%;
  72. width: 100%;
  73. border-radius: 0 0 10px 10px;
  74. box-shadow: var(--shadow-top);
  75. display: flex;
  76. justify-content: center;
  77. align-items: center;
  78. button {
  79. height: 3rem;
  80. width: 80%;
  81. border-radius: 10px;
  82. background: var(--accept);
  83. transition: background-color 0.2s ease-in-out;
  84. box-shadow: var(--shadow);
  85. &:hover {
  86. background-color: var(--accept-hover);
  87. }
  88. }
  89. }
  90. //// Drag and Drop
  91. .cdk-drag-preview {
  92. box-sizing: border-box;
  93. border-radius: 10px;
  94. box-shadow:
  95. 0 5px 5px -3px rgba(0, 0, 0, 0.2),
  96. 0 8px 10px 1px rgba(0, 0, 0, 0.14),
  97. 0 3px 14px 2px rgba(0, 0, 0, 0.12);
  98. }
  99. .cdk-drag-placeholder {
  100. opacity: 0;
  101. }
  102. .cdk-drag-animating {
  103. transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
  104. }
  105. .item-list.cdk-drop-list-dragging .item:not(.cdk-drag-placeholder) {
  106. transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
  107. }