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
Suggestion: Space to enter predetermined variables? #15
Comments
@mwilday I believe that problem would get indirectly solved when live editing real css/less/sass files gets implemented. Reference: "Add support for editing and saving the CSS/Less/Sass files" (https://github.com/webextensions/live-css-editor/blob/master/TODO.md#new-features) |
Possibly, but I am editing SASS on a Moodle LMS theme and I don't have direct or editable access to the sheet itself. I am having to use a code editor window which compiles my code into the system. I'd like to be able to set up a set of variables that I can expect to use anytime i use the magic CSS editor and then just enter my variables without having to add them to the top of my edits. Does that make sense? I'd like them hard-coded in (so to speak) based on an option window or something so anytime I edit code on a page the editor will reference my variables. For instance, our university has several colors that we use regularly. Rather than remember or reference the color code, I'd prefer to just be able to load css magic, which references my default variables $blue = #xxxxxx $green: #xxxxxx and then just type in my color variable and see the changes in the colors I've predefined. |
@mwilday Can you provide a little more detailed step-by-step workflow you follow? I wish to understand your use case a little more to identify the pain points, abilities and limitations of your workflow. Not promising a quick final solution :-) |
Probably not relevant in your case, but let me write the basic workflow for the upcoming live file editing feature:
|
Sure... One of the sites I am responsible for is course.uc.apu.edu, soon to be course.lapu.edu. When i am troubleshooting CSS or display issues or working on themes in a course I will:
Having prepended values would allow me to use variables for more than just colors. I have variables for borders for our themes, and such. When I troubleshoot with a live editor I always have to type in the variables first, or type in the full code. My end result would be much cleaner if I could just troubleshoot using the variables I use already! This would be a splendid option. Let me know if you have any other questions. |
@mwilday Magic CSS remembers the code you type there for the next reload and it is applicable for all webpages for a given domain name. So, what is/are the reasons due to which you don't want to copy-paste that Sass variables code into Magic CSS editor and make your fixes at the bottom of the editor?
|
That is really useful! I have to say I didn't realize the code loaded for every page you load within the domain. That is helpful, but there are several reasons from your list that would I would say affect my reason for having a pre-pended list.
|
@mwilday I believe that for users editing the real files, a major part of this issue would get solved with the live editing and saving task mentioned in https://github.com/webextensions/live-css-editor/blob/master/TODO.md#new-features Unfortunately, your use case (where you don't work with files directly) is rare which may not fit well with the limited scope of this extension. I would prefer to mark it closed as a Won't Do. |
It would be fantastic to allow a settings location for pre-determining variables for SASS. I do theming for several websites where i use the same variables, to be able to have those readily available before I start tweaking code would be a HUGE timesaver. Just a thought. Thanks for a great product!
The text was updated successfully, but these errors were encountered: