123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342 |
- /* You can add global styles to this file, and also import other style files */
- /* Importing Bootstrap SCSS file. */
- // TODO: remove bootstrap styles
- @import "bootstrap/scss/bootstrap";
- @import url("./helpers.scss");
- @import url("./button-styles.scss");
- @import url("./colors.scss");
- @import "responsive";
- @import "fonts";
- // LISTS
- .item-list {
- width: 100%;
- overflow: auto;
- }
- .item {
- background-color: var(--items);
- box-sizing: border-box;
- border: var(--border);
- border-radius: 10px;
- box-shadow: var(--shadow);
- cursor: move;
- transition: background-color 0.2s ease-in-out;
- &:hover {
- background-color: var(--items-hover);
- }
- }
- .empty-list {
- text-align: center;
- margin-top: 2rem;
- font-size: 1.25rem;
- font-weight: 500;
- }
- .footer {
- height: 5rem;
- width: 100%;
- display: flex;
- justify-content: center;
- align-items: center;
- border-radius: 0 0 10px 10px;
- box-shadow: var(--shadow-top);
- }
- // DRAG AND DROP
- .cdk-drag-preview {
- box-sizing: border-box;
- border-radius: 10px;
- background-color: var(--items-hover);
- box-shadow:
- 0 5px 5px -3px rgba(0, 0, 0, 0.2),
- 0 8px 10px 1px rgba(0, 0, 0, 0.14),
- 0 3px 14px 2px rgba(0, 0, 0, 0.12);
- }
- .cdk-drag-placeholder {
- opacity: 0;
- }
- .cdk-drag-animating {
- transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
- }
- .item-list.cdk-drop-list-dragging .item:not(.cdk-drag-placeholder) {
- transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
- }
- // GENERAL STYLES
- // Checkbox
- input[type="checkbox"] {
- accent-color: var(--accept) !important;
- }
- // Scrollbar
- ::-webkit-scrollbar {
- width: 0.5rem;
- margin: 0.125rem 0;
- height: 0.5rem;
- }
- ::-webkit-scrollbar-track {
- background: #f1f1f1;
- border-radius: 10px;
- }
- ::-webkit-scrollbar-thumb {
- background: #888;
- border-radius: 10px;
- }
- ::-webkit-scrollbar-thumb:hover {
- background: #555;
- border-radius: 10px;
- }
- .suffix {
- text-align: right;
- padding-right: 0.5rem;
- color: grey;
- font-size: 0.75rem;
- }
- // Line styles
- .centered-line {
- display: flex;
- align-items: center;
- }
- // TODO: Check which of the below are still used
- // Info Row
- .info-container {
- display: flex;
- flex-direction: column;
- justify-content: space-between;
- align-items: center;
- border: solid 1px var(--border-color);
- background-color: var(--field-background-color);
- box-shadow: var(--shadow);
- border-radius: 10px;
- height: 6rem;
- width: 7rem;
- @include width-small {
- width: 10rem;
- }
- }
- // // Responsive styles
- .responsive-small {
- display: block;
- }
- .responsive-large {
- display: none;
- }
- .responsive-large {
- @include width-small {
- display: block;
- }
- }
- .responsive-small {
- @include width-small {
- display: none;
- }
- }
- .info-input {
- border: none;
- outline: none;
- text-align: center;
- background-color: transparent;
- width: 5rem;
- margin-top: 0.375rem;
- font-size: 2rem;
- font-weight: 600;
- }
- .info-input::-webkit-outer-spin-button,
- .info-input::-webkit-inner-spin-button {
- -webkit-appearance: none;
- appearance: none;
- margin: 0;
- }
- .info-label {
- font-size: 1.25rem;
- font-weight: 600;
- text-align: center;
- padding: 0.25rem 0.5rem;
- }
- input[type="checkbox"] {
- height: 1.25rem;
- width: 1.25rem;
- }
- // DETAILS + MODAL
- .dimensions {
- width: 50rem;
- background-color: var(--modal-background);
- border-radius: 10px;
- border: 1px solid var(--border-color);
- padding: 0 2rem;
- box-shadow: var(--shadow);
- }
- .title {
- font-size: 2rem;
- font-weight: bold;
- margin-top: 1.5rem;
- text-align: center;
- }
- .heading {
- font-size: 1.5rem;
- margin-top: 1.5rem;
- font-weight: bold;
- text-align: center;
- }
- .subheading {
- font-size: 1.25rem;
- margin-top: 1.5rem;
- font-weight: bold;
- text-align: center;
- }
- .content {
- margin-top: 1.5rem;
- margin-bottom: 1.5rem;
- }
- .input-label {
- font-weight: 600;
- padding-left: 0.25rem;
- }
- .value-row {
- display: flex;
- flex-direction: row;
- justify-content: space-evenly;
- }
- .mat-mdc-text-field-wrapper {
- background-color: white !important;
- border-radius: 5px !important;
- }
- .flex-form {
- display: flex;
- flex-direction: column;
- gap: 1.5rem;
- .flex-row {
- display: flex;
- flex-direction: row;
- justify-content: space-between;
- gap: 2rem;
- }
- }
- .hint {
- font-size: 0.75rem;
- font-weight: 400;
- padding-left: 0.25rem;
- }
- // RICH TEXT EDITOR
- .ProseMirror {
- padding-left: 1rem !important;
- height: 8rem;
- overflow: auto;
- }
- // Used to remove the empty space under form fields
- .mat-mdc-form-field-subscript-wrapper {
- display: none;
- }
- html,
- body {
- height: 100%;
- margin: 0;
- font-family: var(--bs-body-font-family) !important;
- }
- .flex-row {
- display: flex;
- flex-direction: row;
- }
- .flex-column {
- display: flex;
- flex-direction: column;
- }
- // Overriding the default styles of angular material
- .mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled)
- .mdc-list-item__primary-text {
- color: var(--primary) !important;
- }
- .mat-primary .mat-pseudo-checkbox-checked.mat-pseudo-checkbox-minimal::after,
- .mat-primary
- .mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-minimal::after {
- color: var(--primary) !important;
- }
- .mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused
- .mdc-notched-outline__leading,
- .mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused
- .mdc-notched-outline__notch,
- .mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused
- .mdc-notched-outline__trailing {
- border-color: var(--primary) !important;
- }
- .mdc-text-field--outlined:not(.mdc-text-field--disabled)
- .mdc-text-field__input {
- caret-color: var(--primary) !important;
- }
- .mat-mdc-form-field.mat-focused .mat-mdc-select-arrow {
- color: var(--primary) !important;
- }
- .mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused
- .mdc-floating-label,
- .mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused
- .mdc-floating-label--float-above {
- color: var(--primary) !important;
- }
- .mat-mdc-radio-button
- .mdc-radio
- .mdc-radio__native-control:enabled:checked
- + .mdc-radio__background
- .mdc-radio__outer-circle {
- border-color: var(--primary) !important;
- }
- .mat-mdc-radio-button
- .mdc-radio
- .mdc-radio__native-control:enabled
- + .mdc-radio__background
- .mdc-radio__inner-circle {
- border-color: var(--primary) !important;
- }
- .mat-mdc-radio-button.mat-mdc-radio-checked .mat-ripple-element {
- background-color: var(--primary) !important;
- }
|