GithubHelp home page GithubHelp logo

adapt-buildtool's Introduction

Adapt basetheme

forthebadge forthebadge forthebadge forthebadge

About the frameworks


Short about bourbon and neat
  • Bourbon is a mixin library for pre-defined and most common used mixins
  • Neat is a grid system for Bourbon.
  • Documentation and examples on bourbon: http://bourbon.io/
  • Documentation and examples on neat: http://neat.bourbon.io/
Short about compass & singularity

Automated bash installing frameworks


When initiating a new project you can pick from two frameworks. Bash script included will setup a Gemfile, pre-defined versions of framework selected with basic settings files.

  1. Type in terminal
./fe_setup.sh [bourbon or compass]
  1. Remove fe_setup.sh after.

Manually install


When manually installing frameworks like either a newer version of bourbon and neat, or compass and singularity

Manually install bourbon + neat.

Installing bourbon and neat manually.

  1. First install bourbon and neat gems
gem install bourbon neat
  1. Browse to your sass directory and type
bourbon install
neat install
  1. Create your main stylesheet and copy + paste.
@import "bourbon/bourbon";
@import "neat/neat";
Manually install compass + singularity.

steps for compass singularity

  1. First install compass and singularity gems
gem install compass singularity
  1. Browse to your theme's root directory
compass install compass --sass-dir "sass" --css-dir "css" --javascripts-dir "js" --images-dir "img"

Gemfiles


Description and how to use gemfiles.

Architecture


Resets

Never use reset.css library or any wildcard * margin/padding resets, It's to aggressive and unpredictable. Use normalize.css which stabilises browser consistencies and quirks instead.

CSS Architecture

The preprocessor of choice is SCSS (Sassy SASS) and not SASS. SMACCS style so our stylesheets are more readable and structuring them after the guidelines from SMACSS. Breaking your styles into more stylesheets is encouraged.

Folder Architecture

Folder structure is based on categorization of SMACCS, but also of roughly the most common scenarios. This gives a sense of logical organization for when working with Drupal.

  • base Variables, mixins, basic or most common single element selectors body, p, a, h1, h2, h3
  • layout Larger regions of layout like header, footer, sidebars, reusable design patterns like column lists etc.
  • modules Reusable elements like buttons, forms, elements, or widget components.
  • vendor Contributed CSS libraries from either jquery plugins, or animations libraries

Create your own folders additionally to your needs depending / based on project.

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.