Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Montezuma Theme »

[SOLVED] Feature Request: Section Comments in style.css


  #1  
Old May 30, 2013, 09:58 AM
CrouchingBruin's Avatar
CrouchingBruin
 
299 posts · Aug 2010
Santa Monica, CA
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.
  #2  
Old May 30, 2013, 10:34 PM
jerryc
 
367 posts · Oct 2012
Florida
Add my vote to that.
  #3  
Old Nov 19, 2013, 09:45 PM
CrouchingBruin's Avatar
CrouchingBruin
 
299 posts · Aug 2010
Santa Monica, CA
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.
__________________
My Montezuma-themed sites: ESHS Girls Basketball Team, Venice Hongwanji Buddhist Temple
Please consider making a donation to BytesForAll for their great themes!

Bookmarks

Tags
comments, style.css

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
New Feature Request for Header Images kal New Versions, & Updating 0 Jun 9, 2010 06:01 AM
Feature Request georgenoise New Versions, & Updating 0 Dec 31, 2009 08:57 AM
Feature Request Suzie RSS, Feeds & Subscribing 0 Sep 14, 2009 09:12 PM


All times are GMT -6. The time now is 12:59 AM.


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