-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
40 Implemented dynamic global css variables #89
40 Implemented dynamic global css variables #89
Conversation
I made a huge mistake and merge comitted the branch linked to issue #50 into my original CSS branch. This included every individual commits from the other branch into my CSS branch. I tried to revert it but failed and was therefore forced to use this solution.
✅ Deploy Preview for ecdar ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
This makes sure that no unsupported CSS variables are used. The supported CSS variables are specified in CSSVariables.ts
…ttps://github.com/ECDAR-AAU-SW-P5/Ecdar-GUI-Web into 40-use-css-variables-for-general-design-secondtry
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks very nice! I have a few comments and suggestions.
src/lib/classes/styling/ZodSchemas/AttributeSchemas/ColorAttribute.ts
Outdated
Show resolved
Hide resolved
src/lib/classes/styling/ZodSchemas/AttributeSchemas/ColorAttribute.ts
Outdated
Show resolved
Hide resolved
The zos schemes now enforce: - The color value range - That the "default" mediascheme contains a specification of all specified CSS variables and more...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lille fix, men ellers ser det godt ud :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LVGTMTYVMSW
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* Implemented everything I made a huge mistake and merge comitted the branch linked to issue #50 into my original CSS branch. This included every individual commits from the other branch into my CSS branch. I tried to revert it but failed and was therefore forced to use this solution. * Added dark mode color to edges * Created a CSS variable support check This makes sure that no unsupported CSS variables are used. The supported CSS variables are specified in CSSVariables.ts * Changed resizer size * Removed unnecessary media schemes * Removed mediaFeature check * Corrrect the parsed error type * Removed the passing of the global window variable * Removed the need for range checking by using zod * Improved the zod schemes The zod schemes now enforce: - The color value range - That the "default" mediascheme contains a specification of all specified CSS variables and more... * Fix typo * Did some color styling to the navbar
* Add systems and components * Maybe this way to rename? * Moved handler so can click if there is no text For example if user names it whitespace it can be hard to rename * Sveltify and add description * Color options Systems and Components files are almost identical * Type * Merge components and systems into 1 file * Drop down menu for project items * Delete ComponentDropDownMenu.svelte * Update ProjectItemDropDownMenu.svelte * Fix periodic check binding in ProjectItems and add dynamic class to ProjectItem * 40 Implemented dynamic global css variables (#89) * Implemented everything I made a huge mistake and merge comitted the branch linked to issue #50 into my original CSS branch. This included every individual commits from the other branch into my CSS branch. I tried to revert it but failed and was therefore forced to use this solution. * Added dark mode color to edges * Created a CSS variable support check This makes sure that no unsupported CSS variables are used. The supported CSS variables are specified in CSSVariables.ts * Changed resizer size * Removed unnecessary media schemes * Removed mediaFeature check * Corrrect the parsed error type * Removed the passing of the global window variable * Removed the need for range checking by using zod * Improved the zod schemes The zod schemes now enforce: - The color value range - That the "default" mediascheme contains a specification of all specified CSS variables and more... * Fix typo * Did some color styling to the navbar * Add IDs to add component and add system buttons in ProjectNav component * css variables * Update project item and dropdown menu components Co-authored-by: Nyby <[email protected]> * Remove unused imports and clean up code. * Fix tests and add new ones Co-authored-by: Nyby <[email protected]> * lint --------- Co-authored-by: Skrome <[email protected]> Co-authored-by: Nyby <[email protected]> Co-authored-by: Bastian Brix <[email protected]> Co-authored-by: Nyby <[email protected]>
I made a huge mistake and merge comitted the branch linked to issue #50 into my original CSS branch. This included every individual commits from the other branch into my CSS branch. I tried to revert it but failed and was therefore forced to use this solution.
Link to original PR
Closes #40
About
This pull request contains the initial implementation of the dynamic loading of CSS colors (And other CSS properties) and is the foundation for one of the features requested by the PO.
The specific feature is the one in-which users should be able to change the color-scheme by themselves.
Features implemented:
Not yet implemented
Link to MDN docs for mediaQuery selector