styles.scss 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355
  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. @import url("./button-styles.scss");
  7. @import url("./colors.scss");
  8. // @import url("./responsive.scss");
  9. @import "responsive";
  10. // Hide scrollbar for Chrome, Safari and Opera
  11. // *::-webkit-scrollbar {
  12. // display: none;
  13. // }
  14. // Hide scrollbar for Firefox
  15. // * {
  16. // scrollbar-width: none;
  17. // -ms-overflow-style: none; // IE and Edge
  18. // }
  19. // LISTS
  20. .item-list {
  21. width: 100%;
  22. overflow: auto;
  23. }
  24. .item {
  25. background-color: var(--items);
  26. box-sizing: border-box;
  27. border: var(--border);
  28. border-radius: 10px;
  29. box-shadow: var(--shadow);
  30. cursor: move;
  31. transition: background-color 0.2s ease-in-out;
  32. &:hover {
  33. background-color: var(--items-hover);
  34. }
  35. }
  36. .empty-list {
  37. text-align: center;
  38. margin-top: 2rem;
  39. font-size: 1.25rem;
  40. font-weight: 500;
  41. }
  42. .footer {
  43. height: 5rem;
  44. width: 100%;
  45. display: flex;
  46. justify-content: center;
  47. align-items: center;
  48. border-radius: 0 0 10px 10px;
  49. box-shadow: var(--shadow-top);
  50. }
  51. // DRAG AND DROP
  52. .cdk-drag-preview {
  53. box-sizing: border-box;
  54. border-radius: 10px;
  55. background-color: var(--items-hover);
  56. box-shadow:
  57. 0 5px 5px -3px rgba(0, 0, 0, 0.2),
  58. 0 8px 10px 1px rgba(0, 0, 0, 0.14),
  59. 0 3px 14px 2px rgba(0, 0, 0, 0.12);
  60. }
  61. .cdk-drag-placeholder {
  62. opacity: 0;
  63. }
  64. .cdk-drag-animating {
  65. transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
  66. }
  67. .item-list.cdk-drop-list-dragging .item:not(.cdk-drag-placeholder) {
  68. transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
  69. }
  70. // GENERAL STYLES
  71. // Checkbox
  72. input[type="checkbox"] {
  73. accent-color: var(--accept) !important;
  74. }
  75. // Scrollbar
  76. ::-webkit-scrollbar {
  77. width: 0.5rem;
  78. margin: 0.125rem 0;
  79. height: 0.5rem;
  80. }
  81. ::-webkit-scrollbar-track {
  82. background: #f1f1f1;
  83. border-radius: 10px;
  84. }
  85. ::-webkit-scrollbar-thumb {
  86. background: #888;
  87. border-radius: 10px;
  88. }
  89. ::-webkit-scrollbar-thumb:hover {
  90. background: #555;
  91. border-radius: 10px;
  92. }
  93. .suffix {
  94. text-align: right;
  95. padding-right: 0.5rem;
  96. color: grey;
  97. font-size: 0.75rem;
  98. }
  99. // Line styles
  100. .centered-line {
  101. display: flex;
  102. align-items: center;
  103. }
  104. // TODO: Check which of the below are still used
  105. // Info Row
  106. .info-container {
  107. display: flex;
  108. flex-direction: column;
  109. justify-content: space-between;
  110. align-items: center;
  111. border: solid 1px var(--border-color);
  112. background-color: var(--field-background-color);
  113. box-shadow: var(--shadow);
  114. border-radius: 10px;
  115. height: 6rem;
  116. width: 7rem;
  117. @include width-small {
  118. width: 10rem;
  119. }
  120. }
  121. // // Responsive styles
  122. .responsive-small {
  123. display: block;
  124. }
  125. .responsive-large {
  126. display: none;
  127. }
  128. .responsive-large {
  129. @include width-small {
  130. display: block;
  131. }
  132. }
  133. .responsive-small {
  134. @include width-small {
  135. display: none;
  136. }
  137. }
  138. .info-input {
  139. border: none;
  140. outline: none;
  141. text-align: center;
  142. background-color: transparent;
  143. width: 5rem;
  144. margin-top: 0.375rem;
  145. font-size: 2rem;
  146. font-weight: 600;
  147. }
  148. .info-input::-webkit-outer-spin-button,
  149. .info-input::-webkit-inner-spin-button {
  150. -webkit-appearance: none;
  151. appearance: none;
  152. margin: 0;
  153. }
  154. .info-label {
  155. font-size: 1.25rem;
  156. font-weight: 600;
  157. text-align: center;
  158. padding: 0.25rem 0.5rem;
  159. }
  160. input[type="checkbox"] {
  161. height: 1.25rem;
  162. width: 1.25rem;
  163. }
  164. // DETAILS + MODAL
  165. .dimensions {
  166. width: 50rem;
  167. background-color: var(--modal-background);
  168. border-radius: 10px;
  169. border: 1px solid var(--border-color);
  170. padding: 0 2rem;
  171. box-shadow: var(--shadow);
  172. }
  173. .title {
  174. font-size: 2rem;
  175. font-weight: bold;
  176. margin-top: 1.5rem;
  177. text-align: center;
  178. }
  179. .heading {
  180. font-size: 1.5rem;
  181. margin-top: 1.5rem;
  182. font-weight: bold;
  183. text-align: center;
  184. }
  185. .subheading {
  186. font-size: 1.25rem;
  187. margin-top: 1.5rem;
  188. font-weight: bold;
  189. text-align: center;
  190. }
  191. .content {
  192. margin-top: 1.5rem;
  193. margin-bottom: 1.5rem;
  194. }
  195. .input-label {
  196. font-weight: 600;
  197. padding-left: 0.25rem;
  198. }
  199. .value-row {
  200. display: flex;
  201. flex-direction: row;
  202. justify-content: space-evenly;
  203. }
  204. .mat-mdc-text-field-wrapper {
  205. background-color: white !important;
  206. border-radius: 5px !important;
  207. }
  208. .flex-form {
  209. display: flex;
  210. flex-direction: column;
  211. gap: 1.5rem;
  212. .flex-row {
  213. display: flex;
  214. flex-direction: row;
  215. justify-content: space-between;
  216. gap: 2rem;
  217. }
  218. }
  219. .hint {
  220. font-size: 0.75rem;
  221. font-weight: 400;
  222. padding-left: 0.25rem;
  223. }
  224. // RICH TEXT EDITOR
  225. .ProseMirror {
  226. padding-left: 1rem !important;
  227. height: 8rem;
  228. overflow: auto;
  229. }
  230. // Used to remove the empty space under form fields
  231. .mat-mdc-form-field-subscript-wrapper {
  232. display: none;
  233. }
  234. html,
  235. body {
  236. height: 100%;
  237. margin: 0;
  238. font-family: var(--bs-body-font-family) !important;
  239. }
  240. .flex-row {
  241. display: flex;
  242. flex-direction: row;
  243. }
  244. .flex-column {
  245. display: flex;
  246. flex-direction: column;
  247. }
  248. // Overriding the default styles of angular material
  249. .mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled)
  250. .mdc-list-item__primary-text {
  251. color: var(--primary) !important;
  252. }
  253. .mat-primary .mat-pseudo-checkbox-checked.mat-pseudo-checkbox-minimal::after,
  254. .mat-primary
  255. .mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-minimal::after {
  256. color: var(--primary) !important;
  257. }
  258. .mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused
  259. .mdc-notched-outline__leading,
  260. .mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused
  261. .mdc-notched-outline__notch,
  262. .mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused
  263. .mdc-notched-outline__trailing {
  264. border-color: var(--primary) !important;
  265. }
  266. .mdc-text-field--outlined:not(.mdc-text-field--disabled)
  267. .mdc-text-field__input {
  268. caret-color: var(--primary) !important;
  269. }
  270. .mat-mdc-form-field.mat-focused .mat-mdc-select-arrow {
  271. color: var(--primary) !important;
  272. }
  273. .mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused
  274. .mdc-floating-label,
  275. .mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused
  276. .mdc-floating-label--float-above {
  277. color: var(--primary) !important;
  278. }
  279. .mat-mdc-radio-button
  280. .mdc-radio
  281. .mdc-radio__native-control:enabled:checked
  282. + .mdc-radio__background
  283. .mdc-radio__outer-circle {
  284. border-color: var(--primary) !important;
  285. }
  286. .mat-mdc-radio-button
  287. .mdc-radio
  288. .mdc-radio__native-control:enabled
  289. + .mdc-radio__background
  290. .mdc-radio__inner-circle {
  291. border-color: var(--primary) !important;
  292. }
  293. .mat-mdc-radio-button.mat-mdc-radio-checked .mat-ripple-element {
  294. background-color: var(--primary) !important;
  295. }