Skip to content
This repository has been archived by the owner on Mar 15, 2019. It is now read-only.

codelittinc/codelitt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WARNING

This repository has been discontinuated, our current website code is stored on: https://github.com/codelittinc/codelitt-v2

Codelitt

Description

Awesome company website!

Installation

  • Create gemset rvm use 2.1.1@codelitt --create

  • Install gems bundle install

  • Run the server rails server

  • Watch stylesheets for changes compass watch

Setup

Stylesheets

  • 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.

Partials

  • 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

Media queries are simple using the breakpoint gem.

Variables

Use the same values as bootstrap for media queries.

  $sm: 768px;
  $md: 992px;
  $lg: 1200px;
Example:

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;
    }