Giter Club home page Giter Club logo

compass-st2-bundle's Introduction

Compass Sublime Text 2 Bundle

What is it?

*Once finished, will include snippets for All Compass Core variables, mixins with tab indexing for parameters. Currently all of the CSS3 library is finished.

Also, adds a Build System for Compass Watch when opening SASS Files. (Sublime-Text-2-SASS-Package or similar SASS Package needed. Soon to be standalone).

This is still a work in progress. Thanks in advance for any input.


Install

Prerequisites, must be installed:

  • Git (for installation of bundle)
  • Ruby (for SASS + Compass)
  • SASS (for Compass)
  • Compass (errrr, that's what you're here for isn't it?)

Install from CMD Prompt (WIN) or Terminal (Linux/Mac)

  1. Open terminal and browse to the Sublime Text Packages Folder (OSX: cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages || WIN: C:\Users<username>\AppData\Roaming\Sublime Text 2\Packages)

  2. git clone [email protected]:CristinaSolana/Compass-ST2-Bundle.git Compass

  3. cd Compass

  4. git submodule update --init (A must - to use Build System)


Usage

Snippets

  1. Easy: start typing the name of the Compass lib you are trying to access mixins for. (ex. background, border, etc)

Note: in some instances, I'v e included important notes about a mixin. I've made it a tab so that it can easily be deleted once selected via tab.

Some terminology:

  • unitless: unitless integer (ex. 1)
  • unit: integer + unit type (ex. 14px, 20%)
  • :true||false - choose/type either true or false
  • ||<del>: if you do not want the available option, delete this parameter

Build System

Create a project and place the Sublime Text Project file in your project's folder root. Example: yourproject/project.sublime-project

Note: A Sublime Text 2 Project File in the root of your project is necessary.

Open one of your .sass files and press CTRL + B (or Tools > Build). Note: If you have more than one Build System that is able to compile SASS, change the Build System to Compass under Tools > Build.

Big thanks to @nachtmeister for starting this script for Windows: https://github.com/WhatWeDo/Sublime-Text-2-Compass-Build-System and merging my Mac/Linux pull request: https://github.com/CristinaSolana/Sublime-Text-2-Compass-Build-System :)


TO-DO:

Snippets for:
  • Layout
  • Reset
  • Typography
  • Utilities
Build System
  • Look into fix for RVM not playing nice with ST2. This error is not specific to this build system. It is specific to environments managing gems via rvm.

This package is licensed MIT.

compass-st2-bundle's People

Contributors

cristinasolana avatar timkelty 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.