weapons-container.component.scss 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. .weapon-spell-container {
  2. border: solid 1px var(--border-color);
  3. // background-color: var(--field-background-color);
  4. box-shadow: var(--shadow-small);
  5. border-radius: 10px;
  6. height: 35.5rem;
  7. display: flex;
  8. flex-direction: column;
  9. }
  10. .tab-row {
  11. display: flex;
  12. flex: 0 0 3rem;
  13. > * {
  14. flex: 1 1 0;
  15. }
  16. > :first-child {
  17. border-radius: 10px 0 0 0;
  18. }
  19. > :last-child {
  20. border-radius: 0 10px 0 0;
  21. }
  22. }
  23. .tab-button {
  24. height: 2.25rem;
  25. font-size: 1.375rem;
  26. font-weight: 600;
  27. color: black;
  28. border: solid 1px var(--border-color);
  29. transition: all 0.25s ease-in-out;
  30. background-color: var(--primary-color-light);
  31. &.active {
  32. height: 2.75rem;
  33. background-color: var(--primary-color);
  34. }
  35. }
  36. weapon-table {
  37. // 100% - tabbar height - add button height
  38. height: calc(100% - 8rem);
  39. }
  40. spell-table {
  41. // 100% - tabbar height - add button height
  42. height: calc(100% - 3rem);
  43. // height: 100%;
  44. }
  45. .button-margin {
  46. margin: 1rem 0rem;
  47. }
  48. .example-list {
  49. max-width: 100%;
  50. border: solid 1px #323232;
  51. min-height: 60px;
  52. display: block;
  53. background: transparent;
  54. border-radius: 4px;
  55. overflow: hidden;
  56. }
  57. .damage-list {
  58. display: flex;
  59. flex-direction: column;
  60. }
  61. .damage-row {
  62. display: flex;
  63. flex-direction: row;
  64. justify-content: center;
  65. align-items: center;
  66. gap: 0.1rem;
  67. }
  68. .example-box {
  69. padding: 20px 10px;
  70. border-bottom: solid 1px #ccc;
  71. color: rgba(0, 0, 0, 0.87);
  72. display: flex;
  73. flex-direction: row;
  74. align-items: center;
  75. justify-content: space-between;
  76. box-sizing: border-box;
  77. cursor: move;
  78. background: white;
  79. font-size: 14px;
  80. input {
  81. border: none;
  82. background: transparent;
  83. text-align: center;
  84. }
  85. }
  86. //////////////// list item elemens ////////////////
  87. //////////////////////////////////////////////////
  88. .vertical-line {
  89. width: 1px;
  90. height: 3rem;
  91. border-left: solid 1px rgb(121, 121, 121);
  92. }
  93. .weapon-type {
  94. width: 2rem;
  95. text-align: center;
  96. }
  97. .weapon-proficient {
  98. width: 2rem;
  99. text-align: center;
  100. }
  101. .weapon-name {
  102. width: 6rem;
  103. text-align: center;
  104. }
  105. .weapon-attack-bonus {
  106. width: 2rem;
  107. text-align: center;
  108. }
  109. .weapon-damage {
  110. width: 3rem;
  111. text-align: center;
  112. }
  113. .weapon-range {
  114. width: 4rem;
  115. text-align: center;
  116. }
  117. .weapon-edit {
  118. width: 3rem;
  119. text-align: center;
  120. }
  121. // Drag and Drop
  122. .cdk-drag-preview {
  123. box-sizing: border-box;
  124. border-radius: 4px;
  125. box-shadow:
  126. 0 5px 5px -3px rgba(0, 0, 0, 0.2),
  127. 0 8px 10px 1px rgba(0, 0, 0, 0.14),
  128. 0 3px 14px 2px rgba(0, 0, 0, 0.12);
  129. }
  130. .cdk-drag-placeholder {
  131. opacity: 0;
  132. }
  133. .cdk-drag-animating {
  134. transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
  135. }
  136. .example-box:last-child {
  137. border: none;
  138. }
  139. .example-list.cdk-drop-list-dragging .example-box:not(.cdk-drag-placeholder) {
  140. transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
  141. }