[wp-hackers] WP Theme Directory Submission Restrictions
Dougal Campbell
dougal at gunters.org
Mon Oct 6 16:24:08 GMT 2008
Ptah Dunbar wrote:
> Seems like the uploader script to add a new theme in the Themes directory
> *requires* theme authors to have the Alignment/Caption classes in the
> style.css file. Not cool.
>
> Is it possible to have the script check for @imports in the style.css? That
> would be _super_ awesome.
>
> Reason being is that many clever theme authors like to import all their
> styles (which includes the alignment/caption classes too) giving their theme
> a greater control over their stylesheets and a lot more extensibility for
> the theme in question. It also makes things much more organized and clean
> looking in the styles.css file.
>
Why not just put empty selector blocks in style.css, with a comment
noting the actual @include file which contains the real, fleshed-out rules?
E.g.:
style.css
----------
.wp-caption { /* see: gallery.css */ }
gallery.css
-----------
.wp-caption {
background-color: #eee;
padding: 6px;
margin: 0 0 4px 0;
text-align: center;
/* ...etc... */
}
--
Dougal Campbell <dougal at gunters.org>
http://dougal.gunters.org/
More information about the wp-hackers
mailing list