Front-end style guide: Difference between revisions

Content added Content deleted
imported>Aldeka
Line 85: Line 85:


You may want to put your submodules inside a <submodule-container> with a <clearer>, if you're floating them but don't want other content to ride up.
You may want to put your submodules inside a <submodule-container> with a <clearer>, if you're floating them but don't want other content to ride up.

=== CSS ===

Name IDs and classes using hyphens, not underscores or camelcase. (e.g. "#front-page", not "#front_page" or "#frontPage"). CSS file names should use the same convention. (Not all of them do, but hopefully that can eventually be corrected.)


== JavaScript ==
== JavaScript ==