I encoded the Landing page to try Twitter Bootstrap with smaller files. I am not sure that I organized fewer files, as it should be.
In the main section of my index.html:
<link rel="stylesheet/less" type="text/css" href="bootstrap.less" />
Here is the contents of my bootstrap.less
// Core variables and mixins @import "less/variables.less"; // Modify this for custom colors, font-sizes, etc @import "less/mixins.less"; // CSS Reset @import "less/reset.less"; // Grid system and page structure @import "less/scaffolding.less"; @import "less/grid.less"; @import "less/layouts.less"; // Base CSS @import "less/type.less"; // Utility classes @import "less/utilities.less"; // Has to be last to override when necessary
In my "less" folder, I have the following files
- utilities.less
- utilities.css
- variables.less
- variables.css
- grid.less
- grid.css
- type.less
- layouts.less
- mixins.less
- scaffolding.less
- reset.less
All of them are really necessary for my landing page to work, but I'm not sure if this file organization is the best solution. I am a little confused by this, could you help me and say if I am good? Is there a better way to organize files?
Here you see the landing page.
source share