Skip to content

Melros/basejump

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 

Repository files navigation

basejump

basejump is SCSS Framework that helps to quickstart your work with a predefined folder structure.

SCSS Folder Structure

This is a basic folder structure to quickstart a yet undefined project.

The structure is aiming for that you would be able to create a websites just with your /global files. Here you declare all the basic elements that the project needs. Everything else would be an "extensions" and so defined within a module. Therefore it's important to keep the loading order in main.scss.

Global

_reset.scss

Weather you like to use a reset.css or normalize.css or a reset for forms - here's your place to import/insert your resets.

_fonts.scss

Load in all @font-face that you use within your project. If you prefer to use external resources you may delete this file. It's loaded at first to make sure you can access your fonts with variables and mixins.

_variables.scss

Here you declare all variables that will be used within your project. If there are module specific variables, put them right into your module file.

_functions.scss

Here you declare all your functions that will be used within your project. If there's a function that is module specific, put your function within your module file.

_mixins.scss

Here you declare all your mixins that will be used within your project. If there's a mixin that is module specific, put your mixin within your module file.

_placeholder.scss

Here you declare all your placeholder that will be used within your project. If there's a placeholder that is module specific, put your placeholder within your module file.

_typography.scss

Here you declare all your layout specifiy typography that will be the base of your project. Module specific typography will be declared in your module file.

_layout.scss

Here you declare all your layout specific styles that will be the base of your project. Everything else is a module.

_shame.scss

For all those dirty quickfixes and hacks. Read: http://csswizardry.com/2013/04/shame-css/

Modules

_mod_module-name.scss

Everything that is not a global style defined in _layout.scss is a module. Prefix a module with _mod_ to make search easier for a module. For sure you can find your modules easy via sourcemaps but if you quickly search for "_mod" for example in Sublime Text you gain access to all your modules in one view.

Vendor

_vendor-style.scss

If you use plugins that have a specific style file put them here to use them within your module. Make sure to reference a vendor file within your module if you use it.

Root

_test.scss

Just a file to quick test some css.

comment-style.css

A file to declare your global comment style.

Comment Style

Make sure you use a straight comment style throughout your project.

The following example is based on https://github.com/necolas/idiomatic-css

/* ==========================================================================
   Section comment block
   ========================================================================== */

/* Sub-section comment block
   ========================================================================== */

/**
 * Short description using Doxygen-style comment format
 *
 * The first sentence of the long description starts here and continues on this
 * line for a while finally concluding here at the end of this paragraph.
 *
 * The long description is ideal for more detailed explanations and
 * documentation. It can include example HTML, URLs, or any other information
 * that is deemed necessary or useful.
 *
 * @tag This is a tag named 'tag'
 *
 * TODO: This is a todo statement that describes an atomic task to be completed
 *   at a later date. It wraps after 80 characters and following lines are
 *   indented by 2 spaces.
 */

/* Basic comment */

"Designing in the Browser" - Tips

If you yet not knowing where your project takes you visually just start on a "page module" base, take the homepage for example. Before laying out every piece into a module which you yet not certain about if it's reused again put everything for the homepage inside a _mod_home.scss module. If for example a slider on the homepage is going to be used again later on another page then create a new module _mod_slider.scss. This keeps everything a bit more compact in the beginning.

MIT license

Copyright (c) 2014 Melros

About

A SCSS framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages