styles.scss 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407
  1. /* Importing Bootstrap SCSS file. */
  2. @import "bootstrap/scss/bootstrap";
  3. // @import url("./helpers.scss");
  4. // @import url("./button-styles.scss");
  5. // @import url("./colors.scss");
  6. @import "helpers";
  7. @import "button-styles";
  8. @import "colors";
  9. @import "responsive";
  10. @import "fonts";
  11. @import "info-row";
  12. // #region new styles
  13. // Wraps journal components that have a limited centered layout.
  14. .journal-content {
  15. position: relative;
  16. width: 1332px;
  17. margin: 0 auto;
  18. padding: 2rem 1rem;
  19. display: flex;
  20. }
  21. .header-row {
  22. width: 100%;
  23. display: flex;
  24. justify-content: space-between;
  25. align-items: center;
  26. h1 {
  27. font-size: 3.5rem;
  28. font-weight: 500;
  29. margin-bottom: 0;
  30. }
  31. }
  32. .button-container {
  33. display: flex;
  34. gap: 1rem;
  35. .top-button {
  36. font-size: 1.25rem;
  37. font-weight: 600;
  38. width: 16rem;
  39. display: flex;
  40. align-items: center;
  41. gap: 0.5rem;
  42. border-radius: 10px;
  43. padding: 0.5rem 1rem;
  44. background-image: url("/assets/images/texture-0.jpg");
  45. border: none;
  46. box-shadow: var(--shadow);
  47. }
  48. }
  49. .character-container {
  50. position: absolute;
  51. top: 8.5rem;
  52. left: 50%;
  53. transform: translateX(-50%);
  54. width: 800px;
  55. height: calc(100vh - 10.5rem);
  56. margin: auto;
  57. padding: 2rem 2rem;
  58. overflow: auto;
  59. border-radius: 10px;
  60. border: var(--gold-3);
  61. background-image: url("/assets/images/texture-0.jpg");
  62. box-shadow: var(--shadow);
  63. }
  64. // #endregion
  65. //////////////////
  66. ////// OLD ///////
  67. //////////////////
  68. // LISTS
  69. .item-list {
  70. width: 100%;
  71. overflow: auto;
  72. }
  73. .item {
  74. box-sizing: border-box;
  75. border-radius: 10px;
  76. box-shadow: var(--shadow);
  77. cursor: pointer;
  78. border: var(--gold-2);
  79. background-image: url("/assets/images/texture-5.jpg");
  80. &:hover {
  81. background-image: url("/assets/images/texture-15.jpg");
  82. }
  83. }
  84. .empty-list {
  85. text-align: center;
  86. margin-top: 2rem;
  87. font-size: 1.25rem;
  88. font-weight: 500;
  89. }
  90. .footer {
  91. height: 5rem;
  92. width: 100%;
  93. display: flex;
  94. justify-content: center;
  95. align-items: center;
  96. border-radius: 0 0 10px 10px;
  97. box-shadow: var(--shadow-top);
  98. }
  99. // DRAG AND DROP
  100. .cdk-drag-preview {
  101. box-sizing: border-box;
  102. border-radius: 10px;
  103. background-color: var(--items-hover);
  104. box-shadow:
  105. 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. .item-list.cdk-drop-list-dragging .item:not(.cdk-drag-placeholder) {
  116. transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
  117. }
  118. // GENERAL STYLES
  119. // CHECKBOXES
  120. input[type="checkbox"] {
  121. appearance: none;
  122. -webkit-appearance: none;
  123. -moz-appearance: none;
  124. width: 20px !important;
  125. height: 20px;
  126. background: white;
  127. border: 1px solid #000;
  128. border-radius: 2px;
  129. position: relative;
  130. }
  131. input[type="checkbox"]:checked::after {
  132. content: "";
  133. position: absolute;
  134. top: 50%;
  135. left: 50%;
  136. width: 13px;
  137. height: 13px;
  138. background: var(--gold-dark);
  139. transform: translate(-50%, -50%);
  140. }
  141. // Scrollbar
  142. ::-webkit-scrollbar {
  143. width: 0.375rem;
  144. margin: 0.125rem 0;
  145. height: 0.5rem;
  146. }
  147. ::-webkit-scrollbar-track {
  148. background: #e6e6e6;
  149. border-radius: 10px;
  150. }
  151. ::-webkit-scrollbar-thumb {
  152. background: #888;
  153. border-radius: 10px;
  154. }
  155. ::-webkit-scrollbar-thumb:hover {
  156. background: #555;
  157. border-radius: 10px;
  158. }
  159. .suffix {
  160. text-align: right;
  161. padding-right: 0.5rem;
  162. color: grey;
  163. font-size: 0.75rem;
  164. }
  165. // Line styles
  166. .centered-line {
  167. display: flex;
  168. align-items: center;
  169. }
  170. // DETAILS + MODAL
  171. .dimensions {
  172. width: 50rem;
  173. border-radius: 10px;
  174. border: var(--gold-3);
  175. padding: 0 2rem;
  176. box-shadow: var(--shadow);
  177. background-image: url("/assets/images/texture-0.jpg");
  178. }
  179. .title {
  180. font-size: 2rem;
  181. font-weight: bold;
  182. margin-top: 1.5rem;
  183. text-align: center;
  184. }
  185. .heading {
  186. font-size: 1.5rem;
  187. margin-top: 1.5rem;
  188. font-weight: bold;
  189. text-align: center;
  190. }
  191. .subheading {
  192. font-size: 1.25rem;
  193. margin-top: 1.5rem;
  194. font-weight: bold;
  195. text-align: center;
  196. }
  197. .content {
  198. margin-top: 1.5rem;
  199. margin-bottom: 1.5rem;
  200. }
  201. .input-label {
  202. font-weight: 600;
  203. padding-left: 0.25rem;
  204. }
  205. .value-row {
  206. display: flex;
  207. flex-direction: row;
  208. justify-content: space-evenly;
  209. }
  210. .mat-mdc-text-field-wrapper {
  211. background-color: white !important;
  212. border-radius: 5px !important;
  213. }
  214. .flex-form {
  215. display: flex;
  216. flex-direction: column;
  217. gap: 1.5rem;
  218. .row {
  219. display: flex;
  220. flex-direction: row;
  221. justify-content: space-between;
  222. gap: 2rem;
  223. }
  224. }
  225. .hint {
  226. font-size: 0.75rem;
  227. font-weight: 400;
  228. padding-left: 0.25rem;
  229. }
  230. .highlighted {
  231. font-weight: 800;
  232. }
  233. // RICH TEXT EDITOR
  234. .ProseMirror {
  235. padding-left: 1rem !important;
  236. height: 8rem;
  237. overflow: auto;
  238. }
  239. .NgxEditor__Wrapper {
  240. border: var(--gold-1) !important;
  241. }
  242. // Tooltip
  243. .my-custom-class .tooltip-inner {
  244. background-color: rgb(42, 42, 42);
  245. border: var(--gold-dark-3);
  246. }
  247. .my-custom-class.bs-tooltip-end .tooltip-arrow::before {
  248. border-right-color: var(--gold-dark);
  249. }
  250. .my-custom-class.bs-tooltip-start .tooltip-arrow::before {
  251. border-left-color: var(--gold-dark);
  252. }
  253. .my-custom-class.bs-tooltip-top .tooltip-arrow::before {
  254. border-top-color: var(--gold-dark);
  255. }
  256. .my-custom-class.bs-tooltip-bottom .tooltip-arrow::before {
  257. border-bottom-color: var(--gold-dark);
  258. }
  259. .tooltip-content {
  260. padding: 0.5rem;
  261. p {
  262. margin-bottom: 0;
  263. }
  264. }
  265. .tooltip.show {
  266. opacity: 1;
  267. }
  268. // Used to remove the empty space under form fields
  269. .mat-mdc-form-field-subscript-wrapper {
  270. display: none;
  271. }
  272. html,
  273. body {
  274. height: 100%;
  275. margin: 0;
  276. font-family: var(--bs-body-font-family) !important;
  277. }
  278. // Overriding the default styles of angular material
  279. .mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled)
  280. .mdc-list-item__primary-text {
  281. color: var(--primary) !important;
  282. }
  283. .mat-primary .mat-pseudo-checkbox-checked.mat-pseudo-checkbox-minimal::after,
  284. .mat-primary
  285. .mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-minimal::after {
  286. color: var(--primary) !important;
  287. }
  288. .mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused
  289. .mdc-notched-outline__leading,
  290. .mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused
  291. .mdc-notched-outline__notch,
  292. .mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused
  293. .mdc-notched-outline__trailing {
  294. border-color: var(--primary) !important;
  295. }
  296. .mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field
  297. .mdc-notched-outline__leading,
  298. .mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field
  299. .mdc-notched-outline__notch,
  300. .mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field
  301. .mdc-notched-outline__trailing {
  302. border-color: var(--primary) !important;
  303. }
  304. .mdc-text-field--outlined:not(.mdc-text-field--disabled)
  305. .mdc-text-field__input {
  306. caret-color: var(--primary) !important;
  307. }
  308. .mat-mdc-form-field.mat-focused .mat-mdc-select-arrow {
  309. color: var(--primary) !important;
  310. }
  311. .mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused
  312. .mdc-floating-label,
  313. .mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused
  314. .mdc-floating-label--float-above {
  315. color: var(--primary) !important;
  316. }
  317. .mat-mdc-radio-button
  318. .mdc-radio
  319. .mdc-radio__native-control:enabled:checked
  320. + .mdc-radio__background
  321. .mdc-radio__outer-circle {
  322. border-color: var(--primary) !important;
  323. }
  324. .mat-mdc-radio-button
  325. .mdc-radio
  326. .mdc-radio__native-control:enabled
  327. + .mdc-radio__background
  328. .mdc-radio__inner-circle {
  329. border-color: var(--primary) !important;
  330. }
  331. .mat-mdc-radio-button.mat-mdc-radio-checked .mat-ripple-element {
  332. background-color: var(--primary) !important;
  333. }
  334. .mdc-switch.mdc-switch--unselected:enabled .mdc-switch__handle::after,
  335. .mdc-switch.mdc-switch--selected:enabled .mdc-switch__handle::after {
  336. background-color: var(--gold) !important;
  337. }
  338. .mdc-switch:enabled .mdc-switch__track::before {
  339. background-color: var(--grey-light) !important;
  340. }
  341. .mdc-switch:enabled .mdc-switch__track::after {
  342. background-color: var(--grey) !important;
  343. }