MyBB Community Forums

Full Version: Add new CSS selector from AdminCP
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Currently when you go to AdminCP -> Themes and select a theme and it's .css file, you can customize your css properties with Simple and Advanced mode.

BUT, if you want to add a new CSS selector (ID or class, or whatever), then you have to go to Advanced mode, type in a new selector for example:
.myClass {
}
And then you could modify it's properties via Simple or Advanced mode.

It would be a nice feature if you could add a CSS selector within Simple Mode too, just with one click. Some tool that looks like this:
[Image: 52Pds.jpg]
And then you type in the selector and just add it with a click. Much easier and faster, instead of switching back and forth between simple and advanced mode. Right?
Well just use the advanced mode and type the code in No advantage with the simple editor
(2013-10-29, 01:45 PM)QuantumHive Wrote: [ -> ]...
And then you type in the selector and just add it with a click. Much easier and faster, instead of switching back and forth between simple and advanced mode. Right?

(2013-10-29, 01:55 PM)Bala Wrote: [ -> ]Well just use the advanced mode and type the code in No advantage with the simple editor

There is an advantage. The advantage is reduced server load time and faster css customization. The server needs to check the database everytime you switch between modes to get the CSS file.
Here's an use case example for if you don't understand the load cost:

1. Switching from Simple Mode to Advanced Mode (+1 server load)
2. Add an CSS Selector and save it (+1 server load)
3. Switch back to Simple Mode (+1 server load)
A total redundancy cost of THREE server/database loads. Why? Just to add and edit a CSS selector.

Now here's a use case for my suggestion:
1. Add CSS selector in Simple Mode (+1 server load)
That's it, a total of ONE server load. I hope you can see the difference, the advantage and even the UI friendliness now.
Simple Editor is designed for minor tweaks. Change font of .thead, etc. Not for designing a theme or adding new functionality.
What harm could it be just to add a simple input field like this one that just adds a new css selector:
[Image: 52Pds.jpg]
?
(2013-10-30, 04:24 AM)Seabody Wrote: [ -> ]Simple Editor is designed for minor tweaks. Change font of .thead, etc. Not for designing a theme or adding new functionality.

That's the harm. Do not make the Simple Editor a replacement for the Advanced Editor. Keep it Simple. Wink