journal-npcs.component.scss 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. .npcs-container {
  2. width: 18rem;
  3. height: 100%;
  4. overflow-y: auto;
  5. position: fixed;
  6. top: 0;
  7. left: 0;
  8. display: flex;
  9. flex-direction: column;
  10. align-items: center;
  11. background-image: url("../../../assets/images/texture-10.jpg");
  12. border-right: var(--gold-3);
  13. box-shadow: var(--shadow);
  14. padding-top: 1.5rem;
  15. }
  16. .npc-list-title {
  17. font-size: 1.5rem;
  18. font-weight: 500;
  19. }
  20. .npc {
  21. width: 15rem;
  22. padding: 1rem;
  23. border: var(--gold-2);
  24. border-radius: 10px;
  25. box-shadow: var(--shadow);
  26. cursor: pointer;
  27. background-image: url("../../../assets/images/texture-0.jpg");
  28. &:hover {
  29. background-image: url("../../../assets/images/texture-5.jpg");
  30. }
  31. .npc-title {
  32. overflow: hidden;
  33. white-space: nowrap;
  34. text-overflow: ellipsis;
  35. font-weight: 500;
  36. }
  37. .unsaved {
  38. margin-top: 0.375rem;
  39. text-align: center;
  40. color: rgb(52, 33, 33);
  41. font-size: 0.75rem;
  42. font-weight: 600;
  43. }
  44. &.active {
  45. background-image: url("../../../assets/images/texture-30.jpg") !important;
  46. width: 14rem;
  47. }
  48. }
  49. .npc-wrapper {
  50. display: flex;
  51. gap: 0.5rem;
  52. align-items: center;
  53. .control-button-wrapper {
  54. display: none;
  55. flex-direction: column;
  56. gap: 0.5rem;
  57. }
  58. &.active:not(.edit-mode) {
  59. .npc {
  60. width: 11rem;
  61. background-image: url("../../../assets/images/texture-30.jpg") !important;
  62. }
  63. .control-button-wrapper {
  64. display: flex;
  65. }
  66. }
  67. &.active {
  68. .npc {
  69. background-image: url("../../../assets/images/texture-30.jpg") !important;
  70. }
  71. }
  72. .add-button {
  73. height: 3.5rem;
  74. display: flex;
  75. justify-content: center;
  76. align-items: center;
  77. &.active {
  78. background-image: url("../../../assets/images/texture-30.jpg") !important;
  79. }
  80. }
  81. }
  82. .read-container {
  83. width: 800px;
  84. height: calc(100vh - 6rem);
  85. margin-top: 1.5rem;
  86. margin-left: calc(50vw - 400px + 9rem);
  87. padding: 1rem 2rem 2rem;
  88. overflow: auto;
  89. border-radius: 6px;
  90. border: var(--gold-3);
  91. background-image: url("/assets/images/texture-0.jpg");
  92. box-shadow: var(--shadow);
  93. .title-row {
  94. display: flex;
  95. justify-content: space-between;
  96. icon-button {
  97. width: 2rem;
  98. height: 2rem;
  99. }
  100. }
  101. .name-read {
  102. font-size: 1.5rem;
  103. font-weight: 600;
  104. }
  105. .section-name {
  106. font-size: 1.25rem;
  107. font-weight: 500;
  108. }
  109. }
  110. // Write view
  111. .write-container {
  112. width: 800px;
  113. height: calc(100vh - 2rem);
  114. margin-top: 1.5rem;
  115. margin-left: calc(50vw - 400px + 9rem);
  116. padding: 1rem 2rem 2rem;
  117. overflow: auto;
  118. .name-write {
  119. border: var(--gold-2);
  120. border-radius: 6px;
  121. box-shadow: var(--shadow);
  122. ::ng-deep .mat-mdc-text-field-wrapper {
  123. width: 26rem !important;
  124. background-image: url("../../../assets/images/texture-0.jpg") !important;
  125. }
  126. }
  127. .button-row {
  128. display: flex;
  129. justify-content: space-around;
  130. margin-top: 2.5rem;
  131. }
  132. }
  133. .write-label {
  134. margin: 0 0 0.25rem 0.25rem;
  135. font-weight: 600;
  136. }
  137. .empty-container {
  138. width: 800px;
  139. margin-top: 45vh;
  140. margin-left: calc(50vw - 5rem);
  141. font-weight: 600;
  142. font-size: 1.5rem;
  143. }
  144. // MATERIAL
  145. .mat-expansion-panel {
  146. border: var(--gold-2);
  147. }
  148. ::ng-deep .mat-expansion-panel-body {
  149. padding: 0 1rem 1rem !important;
  150. }
  151. .mat-accordion {
  152. width: 16rem;
  153. }
  154. // Editor
  155. .NgxEditor__Wrapper {
  156. border: var(--gold-3) !important;
  157. border-radius: 6px;
  158. box-shadow: var(--shadow);
  159. }
  160. ::ng-deep .NgxEditor__MenuBar {
  161. background-image: url("../../../assets/images/texture-10.jpg");
  162. }
  163. ngx-editor {
  164. &.short-editor {
  165. ::ng-deep .ProseMirror {
  166. height: calc((100vh - 40rem) / 2);
  167. background-image: url("../../../assets/images/texture-0.jpg");
  168. border-radius: 0 0 4px 4px;
  169. }
  170. }
  171. &.long-editor {
  172. ::ng-deep .ProseMirror {
  173. height: calc((100vh - 18rem) / 2);
  174. background-image: url("../../../assets/images/texture-0.jpg");
  175. border-radius: 0 0 4px 4px;
  176. }
  177. }
  178. }
  179. .mat-button-toggle-appearance-standard.mat-button-toggle-checked {
  180. background-color: rgb(169, 169, 169);
  181. }
  182. .mat-button-toggle-standalone.mat-button-toggle-appearance-standard:not(
  183. [class*="mat-elevation-z"]
  184. ),
  185. .mat-button-toggle-group-appearance-standard:not([class*="mat-elevation-z"]) {
  186. border: var(--gold-2);
  187. }