weapons-container.component.scss 3.1 KB

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