weapons-container.component.scss 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. .example-list {
  2. max-width: 100%;
  3. border: solid 1px #323232;
  4. min-height: 60px;
  5. display: block;
  6. background: transparent;
  7. border-radius: 4px;
  8. overflow: hidden;
  9. }
  10. .damage-list{
  11. display: flex;
  12. flex-direction: column;
  13. }
  14. .damage-row{
  15. display: flex;
  16. flex-direction: row;
  17. justify-content: center;
  18. align-items: center;
  19. gap: 0.1rem;
  20. // margin: 0.5rem;
  21. }
  22. .damage-icon{
  23. height: 1rem;
  24. width: 1rem;
  25. }
  26. .example-box {
  27. padding: 20px 10px;
  28. border-bottom: solid 1px #ccc;
  29. color: rgba(0, 0, 0, 0.87);
  30. display: flex;
  31. flex-direction: row;
  32. align-items: center;
  33. justify-content: space-between;
  34. box-sizing: border-box;
  35. cursor: move;
  36. background: white;
  37. font-size: 14px;
  38. input{
  39. border: none;
  40. background: transparent;
  41. text-align: center;
  42. }
  43. }
  44. //////////////// list item elemens ////////////////
  45. .vertical-line{
  46. width: 1px;
  47. height: 3rem;
  48. border-left: solid 1px rgb(121, 121, 121)
  49. }
  50. .weapon-type{
  51. width: 2rem;
  52. text-align: center;
  53. }
  54. .weapon-proficient{
  55. width: 2rem;
  56. text-align: center;
  57. }
  58. .weapon-name{
  59. width: 6rem;
  60. text-align: center;
  61. }
  62. .weapon-attack-bonus{
  63. width: 2rem;
  64. text-align: center;
  65. }
  66. .weapon-damage{
  67. width: 3rem;
  68. text-align: center;
  69. }
  70. .weapon-range{
  71. width: 4rem;
  72. text-align: center;
  73. }
  74. .weapon-edit{
  75. width: 3rem;
  76. text-align: center;
  77. }
  78. //////////////////////////////////////////////////
  79. .add-box{
  80. text-align: center;
  81. }
  82. .add-form-group{
  83. display: flex;
  84. flex-direction: column;
  85. gap: 1rem;
  86. }
  87. .form-element{
  88. display: flex;
  89. flex-direction: column;
  90. // gap: 0.1rem;
  91. // align-items: center;
  92. // justify-content: center;
  93. }
  94. .form-element-row{
  95. display: flex;
  96. flex-direction: row;
  97. // gap: 2rem;
  98. justify-content: space-around;
  99. text-align:center;
  100. }
  101. // Drag and Drop
  102. .cdk-drag-preview {
  103. box-sizing: border-box;
  104. border-radius: 4px;
  105. box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.2),
  106. 0 8px 10px 1px rgba(0, 0, 0, 0.14),
  107. 0 3px 14px 2px rgba(0, 0, 0, 0.12);
  108. }
  109. .cdk-drag-placeholder {
  110. opacity: 0;
  111. }
  112. .cdk-drag-animating {
  113. transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
  114. }
  115. .example-box:last-child {
  116. border: none;
  117. }
  118. .example-list.cdk-drop-list-dragging .example-box:not(.cdk-drag-placeholder) {
  119. transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
  120. }