Skip to content

CSS programming guide

Dave Clayton edited this page Apr 14, 2014 · 1 revision

Some basic guidelines to follow when building CSS:

  • IMPORTANT: Do not override Bootstrap classes. Instead make a new CSS class that contains the properties you wish to override
  • Separate class names by hyphens (my-class) and IDs by underscores (important_dialog)
  • Prefer inline-block over float: left
  • For responsive layouts, try to use percentages where possible, instead of using media queries with different measurements
  • Each Meteor component (including any partials that are only used by that component) should have its own .LESS source file. Partials shared between multiple components should have their own .LESS file
Clone this wiki locally
You can’t perform that action at this time.