- This topic has 6 replies, 2 voices, and was last updated 2 weeks, 2 days ago by
Sebastian.
Author | Posts |
---|---|
metoki
April 7, 2025 at 9:10 am
|
I prefer writing CSS code manually. For larger projects, I am looking for a way to better organize my code. In the Single Selector Code Editor, there are folders for that purpose. I know that I can write CSS code manually here as well, but this is limited and risky, since Microthemer processes my input in various ways, which I don’t want (e.g. comments and blank lines are removed; the first selector is renamed in certain situations). I would love to have the possibility to create multiple stylesheets in the Full Code Editor, just to make it easier to organize and navigate my code. Or are there any other options that I am missing? |
Sebastian
April 7, 2025 at 3:29 pm
|
Hey! This will be possible in the not too distant future. I’m including this feature in a new content editing addon for Microthemer that will be available for beta testing in the next month. I will also support this in Microthemer core some time after that. All the best, |
metoki
April 7, 2025 at 3:36 pm
|
Hi Sebastian This sounds promising. I’d love to beta test this new feature! Best, |
Sebastian
April 7, 2025 at 3:39 pm
|
That would be awesome, I’ll email you when it’s ready for testing! |
Sebastian
July 29, 2025 at 4:30 pm
|
Hey Martin, Just to let you know, my new content editing plugin (Amender) is now available to try. https://themeover.com/amender/ Regarding your original question about applying CSS that does not get modified during syncing with the visual fields, Amender offers a solution to this via the add: css option. Set “action” to “add” and “aspect” to “css”. Or use the default add:css option. You can enter any CSS you like in the editor below, you are not constrained to the single selector format. And your code will be left as is. You can also use the media query tabs to add code inside @media breakpoints. Or just stick to the All Devices tab if you want to write your own media query code. You can set the folders to target specific pages, as with Microthemer. Amender shares much of the same interface. Does that help at all? Cheers, |
metoki
July 30, 2025 at 9:02 am
|
Hi Sebastian Actually I don’t want to use another plugin with a quite different approach – I just need to structure and organize my manually written CSS code in MicroThemer in a better way. The ideal solution would be to add the possibility to create multiple stylesheets in the Full Code Editor – as I can do with Advanced Themer for Bricks, for example. Is this difficult to implement? Cheers, |
Sebastian
July 30, 2025 at 11:11 am
|
Hey Martin, No problem at all. This functionality will come to Microthemer, but I plan to do away with the full code editor view so that folders can be used, with the conditional loading they deliver. I can keep the full code view as a non-default option that must be enabled in the legacy preferences, but I don’t really want to create a dual system of conditionally loading full code view files, or even having a system for multiple files. The full code editor view was something I added a long time ago in response to a user request. But it feels a bit out of kilter with the rest of Microthemer. That’s why combing the ability to enter any raw CSS code with folders feels like the best plan. Instead of just being able to add single UI selectors to folders, you will be able to add CSS, Sass, JS, snippets. And probably other types like keyframes, variables, etc. But, supporting this will involve quite a bit of code refactoring in Microthemer, which is why I keep putting it off. I was developing Amender when you initially posted, and it occurred to me that the add:css system already meets the basic requirements of adding multiple raw CSS stylesheets, with a single stylesheet per folder (the level asset loading is set). I understand if you don’t to want to have to learn a new system though. Also, another thought occurred to me while writing this. If you enable Sass support via the Preferences, Microthemer will stop trying to sync the CSS with the visual controls. It will still synchronise the first selector across the different responsive tabs, but if you stick to the All Devices tab that issue can be avoided. The Sass syntax that will save you from repeating selector code is:
It may not be an ideal solution, but it’s available now and could be worth a try. |