Git Product home page Git Product logo

codelittcom's Introduction

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

codelittcom's People

Contributors

codelitt avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.