Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Montezuma Theme (http://forum.bytesforall.com/forumdisplay.php?f=53)
-   -   [SOLVED] Feature Request: Section Comments in style.css (http://forum.bytesforall.com/showthread.php?t=20418)

CrouchingBruin May 30, 2013 09:58 AM

[SOLVED] Feature Request: Section Comments in style.css
 
Most of the times, I can track down a particular style based on its use. For example, if I want to change the style of the breadcrumbs bar, I just go into the breadcrumbs.css virtual page. Sometimes, though, tracking down the style for a particular element is a bit trickier, so I'll open up the style.css file that gets generated, look for the particular element, then look at the surrounding declarations to see if they will give me a clue as to which CSS virtual file I need to go. It would be helpful, when generating the style.css file, to add a comment line that indicates the beginning of a particular section, like:

/* ====== breadcrumbs.css =========== */

/* ====== various.css =============== */

I hope this wouldn't be too difficult to implement, and, as I mentioned earlier, it would be very helpful in zeroing in on the right CSS file.

Thanks.

jerryc May 30, 2013 10:34 PM

Add my vote to that.

CrouchingBruin Nov 19, 2013 09:45 PM

I tried to implement it myself by manually adding comments at the top of each virtual CSS file, but all comments get stripped out when the style.css file is written. I finally got the idea to create a "heading" by creating a pseudo CSS selector. Since a hyphen is a valid character for a CSS ID selector, I just created a rule like this at the top of each of my virtual CSS files:
Code:

#------content-css-------------------------------------------- {
}

Now when I examine the style.css file, it's a lot easier to see in which virtual CSS file a particular rule is located.


All times are GMT -6. The time now is 12:41 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.