This repository has been discontinuated, our current website code is stored on: https://github.com/codelittinc/codelitt-v2
Awesome company website!
-
Create gemset rvm use 2.1.1@codelitt --create
-
Install gems bundle install
-
Run the server rails server
-
Watch stylesheets for changes compass watch
- Breakpoint: http://breakpoint-sass.com/
- For easier media queries
- Compass: http://compass-style.org/
- To modularize our scss using partials.
- Bootstrap: http://getbootstrap.com/
- Use bootstrap for easier css and responsive design.
- We are using SASS(SCSS) for stylesheets.
- They are stored in the public/sass folder and compiled to CSS in the public/stylesheets folder.
- The stylesheet folder is not committed in order to keep the repo DRY.
- We are using partials for each element of the page.
- All partials are called in application.scss.
- The layout.erb then links to the compiled application.css.
Media queries are simple using the breakpoint gem.
Use the same values as bootstrap for media queries.
$sm: 768px;
$md: 992px;
$lg: 1200px;
Using breakpoint we can set the height to auto if the page width is bigger than 768px which is our $sm value.
.codelitt-big {
margin: -20px 0 0;
padding: 0;
width: 100%;
height: 400px;
background: $codelitt-dark;
@include breakpoint($sm) {
height: auto;
}