styles.scss 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578
  1. /* You can add global styles to this file, and also import other style files */
  2. /* Importing Bootstrap SCSS file. */
  3. // TODO: remove bootstrap styles
  4. @import "bootstrap/scss/bootstrap";
  5. @import url("./helpers.scss");
  6. :root {
  7. // COLORS to use but not official
  8. --primary-color: #d8ac96;
  9. --primary-color-light: #e8c7b5;
  10. --primary-color-dark: #d89777;
  11. --secondary-color: #efc8af;
  12. --secondary-color-light: #f8e1d7;
  13. --secondary-color-dark: #cfaa8c;
  14. --tertiary-color: #b9835d;
  15. --tertiary-color-light: #cfaa8c;
  16. --tertiary-color-dark: #8f5f3b;
  17. --quaternary-color: #84a36f;
  18. --quaternary-color-light: #7a9e65;
  19. --quaternary-color-dark: #6eae52;
  20. --field-background-color: #efc8af;
  21. --border-color: #8d8c8c;
  22. --border-color-active: #b76840;
  23. --modal-background: antiquewhite;
  24. --button-color: #efc8af;
  25. --header: #ffdec6;
  26. --text: #000000;
  27. // shadows
  28. --shadow: 0px 5px 10px 0px rgba(0, 0, 0, 0.5);
  29. --shadow-hover: 0px 5px 10px 0px rgba(0, 0, 0, 0.7);
  30. --shadow: 4px 4px 10px 4px rgba(0, 0, 0, 0.2);
  31. --shadow-medium: 4px 4px 10px 6px rgba(0, 0, 0, 0.2);
  32. --shadow-large: 4px 4px 10px 8px rgba(0, 0, 0, 0.2);
  33. // OFFICIAL COLORS
  34. // Buttons
  35. --accept: #84a36f;
  36. --accept-hover: #6f9158;
  37. --delete: #a45a52;
  38. --delete-hover: #8f4a42;
  39. --edit: #86a5b7;
  40. --edit-hover: #6f8e9f;
  41. --neutral: #b9835d;
  42. --neutral-hover: #a76b43;
  43. --tab: #c79980;
  44. --tab-active: #bc8567;
  45. // c28c6f
  46. // Spellcards
  47. --abjuration-background: #cab8de;
  48. --abjuration-border: 0 0 0 2px #171314, 0 0 0 5px #9586a5;
  49. --conjuration-background: #714c81;
  50. --conjuration-border: 0 0 0 2px #171314, 0 0 0 5px #744987;
  51. --divination-background: #f0e3ce;
  52. --divination-border: 0 0 0 2px #171314, 0 0 0 5px #ffffff;
  53. --enchantment-background: #629179;
  54. --enchantment-border: 0 0 0 2px #171314, 0 0 0 5px #26714a;
  55. --evocation-background: #a46a7d;
  56. --evocation-border: 0 0 0 2px #171314, 0 0 0 5px #863f57;
  57. --illusion-background: #69a;
  58. --illusion-border: 0 0 0 2px #171314, 0 0 0 5px #2d6475;
  59. --necromancy-background: #000000;
  60. --necromancy-border: 0 0 0 2px #171314, 0 0 0 5px #36353a;
  61. --transmutation-background: rgb(51, 52, 138);
  62. --transmutation-border: 0 0 0 2px #171314, 0 0 3px #8f088f, 0 0 6px #7f088f, 0 0 9px #69088f, 0 0 12px #3a088f,
  63. 0 0 15px #080a8f;
  64. // General
  65. --primary-color: #d8ac96;
  66. --shadow: 0px 5px 10px 0px rgba(0, 0, 0, 0.5);
  67. --shadow-inverted: 0px -5px 10px 0px rgba(0, 0, 0, 0.5);
  68. --shadow-bottom: 0px 5px 10px 0px rgba(0, 0, 0, 0.5);
  69. --shadow-top: 0px -5px 10px 0px rgba(0, 0, 0, 0.5);
  70. --background-color: #fff2e9;
  71. --field-background-color: #efc8af;
  72. --border-color: #8d8c8c;
  73. --modal-background: antiquewhite;
  74. --header: #ffdec6;
  75. --text: #000000;
  76. --items: #fff2e9;
  77. --items-hover: #f7e3d7;
  78. --border: 1px solid var(--border-color);
  79. .standard-button {
  80. border: var(--border);
  81. border-radius: 10px;
  82. font-size: 1.25rem;
  83. height: 3rem;
  84. font-weight: 600;
  85. box-shadow: var(--shadow);
  86. transition: background-color 0.25s ease-in-out;
  87. }
  88. // Responsiveness
  89. .responsive-small {
  90. display: none;
  91. }
  92. .responsive-large {
  93. display: block;
  94. }
  95. @media (width < 1640px) {
  96. .responsive-large {
  97. display: none;
  98. }
  99. .responsive-small {
  100. display: block;
  101. }
  102. }
  103. // LISTS
  104. .item-list {
  105. width: 100%;
  106. overflow: auto;
  107. }
  108. .item {
  109. background-color: var(--items);
  110. box-sizing: border-box;
  111. border: var(--border);
  112. border-radius: 10px;
  113. box-shadow: var(--shadow);
  114. cursor: move;
  115. transition: background-color 0.2s ease-in-out;
  116. &:hover {
  117. background-color: var(--items-hover);
  118. }
  119. }
  120. .empty-list {
  121. text-align: center;
  122. margin-top: 2rem;
  123. font-size: 1.25rem;
  124. font-weight: 500;
  125. }
  126. .footer {
  127. height: 5rem;
  128. width: 100%;
  129. display: flex;
  130. justify-content: center;
  131. align-items: center;
  132. border-radius: 0 0 10px 10px;
  133. box-shadow: var(--shadow-top);
  134. button {
  135. height: 3rem;
  136. width: 80%;
  137. font-size: 1.25rem;
  138. font-weight: 600;
  139. border-radius: 10px;
  140. background: var(--accept);
  141. transition: background-color 0.2s ease-in-out;
  142. box-shadow: var(--shadow);
  143. &:hover {
  144. background-color: var(--accept-hover);
  145. }
  146. }
  147. }
  148. // DRAG AND DROP
  149. .cdk-drag-preview {
  150. box-sizing: border-box;
  151. border-radius: 10px;
  152. background-color: var(--items-hover);
  153. box-shadow:
  154. 0 5px 5px -3px rgba(0, 0, 0, 0.2),
  155. 0 8px 10px 1px rgba(0, 0, 0, 0.14),
  156. 0 3px 14px 2px rgba(0, 0, 0, 0.12);
  157. }
  158. .cdk-drag-placeholder {
  159. opacity: 0;
  160. }
  161. .cdk-drag-animating {
  162. transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
  163. }
  164. .item-list.cdk-drop-list-dragging .item:not(.cdk-drag-placeholder) {
  165. transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
  166. }
  167. // GENERAL STYLES
  168. // Checkbox
  169. input[type="checkbox"] {
  170. accent-color: var(--accept) !important;
  171. }
  172. // Scrollbar
  173. ::-webkit-scrollbar {
  174. width: 0.5rem;
  175. margin: 0.125rem 0;
  176. height: 0.5rem;
  177. }
  178. ::-webkit-scrollbar-track {
  179. background: #f1f1f1;
  180. border-radius: 10px;
  181. }
  182. ::-webkit-scrollbar-thumb {
  183. background: #888;
  184. border-radius: 10px;
  185. }
  186. ::-webkit-scrollbar-thumb:hover {
  187. background: #555;
  188. border-radius: 10px;
  189. }
  190. }
  191. // Line styles
  192. .centered-line {
  193. display: flex;
  194. align-items: center;
  195. }
  196. // TODO: Check which of the below are still used
  197. // Info Row
  198. .info-container {
  199. display: flex;
  200. flex-direction: column;
  201. justify-content: space-between;
  202. align-items: center;
  203. border: solid 1px var(--border-color);
  204. background-color: var(--field-background-color);
  205. box-shadow: var(--shadow);
  206. border-radius: 10px;
  207. height: 6rem;
  208. @media (width > 1699px) {
  209. width: 10rem;
  210. }
  211. @media (width < 1640px) {
  212. width: 7rem;
  213. }
  214. }
  215. .info-input {
  216. border: none;
  217. outline: none;
  218. text-align: center;
  219. background-color: transparent;
  220. width: 5rem;
  221. margin-top: 0.375rem;
  222. font-size: 2rem;
  223. font-weight: 600;
  224. }
  225. .info-input::-webkit-outer-spin-button,
  226. .info-input::-webkit-inner-spin-button {
  227. -webkit-appearance: none;
  228. appearance: none;
  229. margin: 0;
  230. }
  231. .info-label {
  232. font-size: 1.25rem;
  233. font-weight: 600;
  234. text-align: center;
  235. padding: 0.25rem 0.5rem;
  236. }
  237. input[type="checkbox"] {
  238. height: 1.25rem;
  239. width: 1.25rem;
  240. }
  241. // DETAILS PANEL
  242. .title {
  243. font-size: 2rem;
  244. font-weight: bold;
  245. margin-top: 1.5rem;
  246. text-align: center;
  247. }
  248. .heading {
  249. font-size: 1.5rem;
  250. margin-top: 1.5rem;
  251. font-weight: bold;
  252. text-align: center;
  253. }
  254. .subheading {
  255. font-size: 1.25rem;
  256. margin-top: 1.5rem;
  257. font-weight: bold;
  258. text-align: center;
  259. }
  260. .content {
  261. margin-top: 1.5rem;
  262. margin-bottom: 1.5rem;
  263. }
  264. .value-row {
  265. display: flex;
  266. flex-direction: row;
  267. justify-content: space-evenly;
  268. }
  269. // .details-title {
  270. // text-align: center;
  271. // font-size: 2rem;
  272. // font-weight: bold;
  273. // margin-top: 1.5rem;
  274. // }
  275. // .details-content {
  276. // margin-top: 1.5rem;
  277. // margin-bottom: 1.5rem;
  278. // }
  279. // //
  280. // .details-heading {
  281. // font-size: 1.5rem;
  282. // font-weight: bold;
  283. // margin-top: 1.5rem;
  284. // }
  285. // .details-subheading {
  286. // font-size: 1.25rem;
  287. // font-weight: bold;
  288. // margin-top: 1.5rem;
  289. // }
  290. // .details-content-small {
  291. // margin-top: 0.5rem;
  292. // }
  293. // .details-bold {
  294. // font-weight: 500;
  295. // }
  296. // .centered {
  297. // text-align: center;
  298. // }
  299. // .top-1 {
  300. // margin-top: 1rem;
  301. // }
  302. // .top-2 {
  303. // margin-top: 2rem;
  304. // }
  305. // .top-3 {
  306. // margin-top: 3rem;
  307. // }
  308. // .details-value-container {
  309. // margin-top: 2rem;
  310. // }
  311. // .details-flex-row {
  312. // display: flex;
  313. // justify-content: space-between;
  314. // align-items: center;
  315. // }
  316. // .details-value {
  317. // width: 3.5rem;
  318. // height: 3rem;
  319. // font-size: 1.5rem;
  320. // display: flex;
  321. // justify-content: center;
  322. // align-items: center;
  323. // margin: auto;
  324. // border-radius: 10px;
  325. // background-color: white;
  326. // box-shadow: var(--shadow);
  327. // }
  328. // .details-label {
  329. // margin-top: 0.5rem;
  330. // font-weight: 500;
  331. // text-align: center;
  332. // }
  333. // .details-name {
  334. // font-size: 1.5rem;
  335. // font-weight: bold;
  336. // margin-top: 1.5rem;
  337. // text-align: center;
  338. // }
  339. // .details-long-description {
  340. // margin: 2rem 1rem;
  341. // font-size: 1rem;
  342. // }
  343. // Drag and Drop Table
  344. html,
  345. body {
  346. height: 100%;
  347. }
  348. body {
  349. margin: 0;
  350. // font-family: Roboto, "Helvetica Neue", sans-serif;
  351. }
  352. // TO DELETE
  353. // .vertical-button-wrapper-3 {
  354. // width: 100%;
  355. // position: absolute;
  356. // bottom: 2rem;
  357. // display: grid;
  358. // grid-template-rows: 1fr 1fr 1fr;
  359. // grid-template-columns: 1fr;
  360. // gap: 10px;
  361. // margin-top: 2rem;
  362. // align-items: center;
  363. // justify-content: center;
  364. // }
  365. // .vertical-button-wrapper-2 {
  366. // width: 100%;
  367. // position: absolute;
  368. // bottom: 2rem;
  369. // display: grid;
  370. // grid-template-rows: 1fr 1fr;
  371. // grid-template-columns: 1fr;
  372. // gap: 10px;
  373. // margin-top: 2rem;
  374. // align-items: center;
  375. // justify-content: center;
  376. // }
  377. // .button-wrapper-3-block {
  378. // display: grid;
  379. // grid-template-rows: 1fr 1fr 1fr;
  380. // grid-template-columns: 1fr;
  381. // gap: 10px;
  382. // align-items: center;
  383. // justify-content: center;
  384. // margin-top: 2rem;
  385. // padding-bottom: 2rem;
  386. // }
  387. // .button-wrapper-2-block {
  388. // display: grid;
  389. // grid-template-rows: 1fr 1fr;
  390. // grid-template-columns: 1fr;
  391. // gap: 10px;
  392. // align-items: center;
  393. // justify-content: center;
  394. // margin-top: 2rem;
  395. // padding-bottom: 2rem;
  396. // }
  397. .flex-row {
  398. display: flex;
  399. flex-direction: row;
  400. }
  401. .flex-column {
  402. display: flex;
  403. flex-direction: column;
  404. }
  405. .flex-centered {
  406. align-items: center;
  407. justify-content: center;
  408. }
  409. .flex-left {
  410. justify-content: start;
  411. }
  412. .flex-right {
  413. justify-content: end;
  414. }
  415. .gap-01 {
  416. gap: 0.1rem;
  417. }
  418. .gap-02 {
  419. gap: 0.2rem;
  420. }
  421. .gap-03 {
  422. gap: 0.3rem;
  423. }
  424. .gap-04 {
  425. gap: 0.4rem;
  426. }
  427. .gap-05 {
  428. gap: 0.5rem;
  429. }
  430. .gap-06 {
  431. gap: 0.6rem;
  432. }
  433. .gap-07 {
  434. gap: 0.7rem;
  435. }
  436. .gap-08 {
  437. gap: 0.8rem;
  438. }
  439. .gap-09 {
  440. gap: 0.9rem;
  441. }
  442. .gap-10 {
  443. gap: 1rem;
  444. }
  445. .gap-11 {
  446. gap: 1.1rem;
  447. }
  448. .gap-12 {
  449. gap: 1.2rem;
  450. }
  451. .gap-13 {
  452. gap: 1.3rem;
  453. }
  454. .gap-14 {
  455. gap: 1.4rem;
  456. }
  457. .gap-15 {
  458. gap: 1.5rem;
  459. }
  460. .gap-16 {
  461. gap: 1.6rem;
  462. }
  463. .gap-17 {
  464. gap: 1.7rem;
  465. }
  466. .gap-18 {
  467. gap: 1.8rem;
  468. }
  469. .gap-19 {
  470. gap: 1.9rem;
  471. }
  472. .gap-20 {
  473. gap: 2rem;
  474. }