styles.scss 6.3 KB

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