Giter Site home page Giter Site logo

templatestarter2016's Introduction

Happy Cog starter files

  • Does not include Patternlab, can be ported over easily

Coding Style

We follow Harry Robert's CSS Guidelines

Naming Classes

  • Try to extract things you see repeating over and over into classes so you can reuse them for the sake of speed. We use an [Expressive CSS](http://johnpolacek.github.io/expressive-css/ BEM-hybrid) approach: class names should be very descriptive and never abbreviated (ex. .button not .btn). Follow BEM syntax but map to the property/value if only one style is captured. ex. .text-align--center, .position--relative. Please review the _library.tools.scss partial to see whats written and available for reuse.

Naming CSS Partials

  • config. prefix denotes other files have dependencies on them
  • library. prefix means file is basic, global styling and tooling
  • module. is a small block of code that is indivisible
  • object. is a collection of modules or a module and other elements

Breakpoints


@include media('>large') {

}
@include media('>=large') {

}
@include media('<large') {

}

Spacing

  • See _library.spacing.scss
  • We're using the lobotomized owl technique for vertical spacing, meaning you should rarely if ever have to add margin-top/margin-bottom on elements for spacing. Instead, please add a class of .spacing, .spacing--half, .spacing--double etc to the elements parents in order to create space between elements. If you have to add a parent div strictly for spacing, that is completely acceptable.
  • We use the variable $padding to keep spacing around objects consistent

Grid

  • Built off Neat grids
  • Starter grid is a 12 column grid with fixed 10px gutters (see _config.grid.scss).
  • Columns must be created with a .layout-NNN class. Where NNN is one of full, split-2, split-3, or split-4. Column percentages are expressed as .layout-split-2--25-75 where on desktop we expect a 2 column layout where the first column is 25% width and the second is 75% width.
  • To avoid .layout-full > .column you can just use .column-full
  • Gutters are defined at a fixed width per column.

Units of measure

  • Please use the rem() function for all units (see _config.map-fun.scss), it will print a px fallback ex. font-size: rem(15);

Typography

  • See Expressive CSS for Type and _library.type-styles.scss
  • Text styles should be defined once, captured in classes to be applied directly to the elements in the HTML, classes like .type-alpha--xxl
  • Text style classes should never be extended with @extend in Sass, in general, please do not use @extend

templatestarter2016's People

Contributors

alliwagner avatar mrpaulphan avatar jtyarks avatar markhuot avatar slavanga avatar fshowalter avatar peteschuster avatar

Stargazers

Henry Wong avatar Devtechk avatar Nathan Jessen avatar RAJESHW avatar Trujun Zhang avatar Marty Thierry avatar Megan Taylor avatar Marc Brown avatar Jason Berberich avatar Kurt avatar Aitor Alejandro Herrera avatar Pierre Nel avatar Maciej Matecki avatar Damian avatar Andrew Rodgers avatar James avatar daniel sieradski avatar Guirec Lefort avatar Michael Utz avatar Palash Mukhopadhyay avatar Justin Veiga avatar mason avatar Yohei Isokawa avatar David Comdico avatar Cigelj Pero avatar Patrick Ashamalla avatar Will Rice avatar Hélio Correia avatar Craig Gieselman avatar hermesite avatar Alex St. avatar Pat Begg avatar Dan Cabrisas avatar Mike Mols avatar Kus Cámara avatar Patrik Thors avatar Suchan An avatar Ryan Ogden avatar Daniel McKeown avatar James Deane avatar John Griffiths avatar Steve Rowling avatar  avatar Eric Guess avatar Mark Greenwood avatar Rob Stenzinger avatar Dan Blaker avatar Eric avatar Brandon avatar Semblance avatar Yvonne Adams avatar Peter Kaizer avatar  avatar Nick Cernis avatar Carlos Araya avatar Matthew Mihok avatar Mike Mattner avatar Chris Finazzo avatar Sean Crater avatar Jackie Wu avatar Stephen Cronin avatar Jonathan Thompson avatar Imran Omari avatar Eric Marthinsen avatar Carl Räfting avatar  avatar Mirco Moretti avatar Brian Litzinger avatar Fred Simmons avatar Estella Gonzalez Madison avatar David Lonjon avatar M Munawar Ahmed avatar Jack Maynard avatar Aki Karkkainen avatar tmatason avatar Andy Coffey avatar Xavier Zalawa avatar  avatar Tejas avatar Timothy Dang avatar Kathleen avatar Isao Yagi avatar Vilav B. avatar Simon avatar Alexander Claesson avatar Tom Bamford avatar  avatar Seth Akkerman avatar Matías Giménez avatar Benoit Pontbriand avatar scott avatar Andrew Solomon avatar  avatar Michael Woodruff avatar Michail avatar  avatar Steve Roberts avatar Cristian Radu avatar mrchild avatar Witt Witsan avatar

Watchers

Nicole Ramsey avatar Renato Carvalho avatar dan delauro avatar  avatar  avatar Cary Newfeldt avatar Alex Kendrick avatar Oguzcan Sahin avatar Jonathan Price avatar James Cloos avatar Brandon avatar Abby Fretz avatar Rene Merino avatar Mirco Moretti avatar Mark Bain avatar Gregory Thompson avatar Gary Reckard avatar Khaliq avatar Dipak Saraf avatar Chelsea Myers avatar Wall-e avatar  avatar Antonina Howard (Serdyukova) avatar Kay Spiegel avatar mason avatar Dave Fischoff avatar tmatason avatar  avatar Julia Evanczuk avatar

templatestarter2016's Issues

Missing .bowerrc file

It currently defaults to installing in 'bower_components', but the Gruntfile is looking for 'components'.

Cannot get screen.css to compile

The Gruntfile is ignoring 'config.imports' because it's a partial. If it remove the underscore, it continually errors on sass variables.

Still getting a terminal error on "grunt"

Running "sass:dev" (sass) task

Error: Invalid unit medium.
on line 189 of components/include-media/dist/_include-media.scss

@error $message;

----^
Warning: Use --force to continue.

Gulp version

Is there a Gulp version of the build file or is it Grunt only. I'm asking before deciding if I want to build my own or not 🎱

Undefined variables

$base-color: $green;
$pad: 20px;
$pad-double: $pad_2;
$pad-half: $pad/2;
$alpha-divider-color: $base-color;
$alpha-link-color: $base-color;
$alpha-link-color-hover: $base-color;
$button-color--alpha--inverse: $base-color;
$button-border-color--alpha--inverse: $base-color;
$button-color-hover--alpha--inverse: $base-color;
$button-border-color-hover--alpha--inverse: $base-color;
$button-background-color-hover--alpha--inverse: $base-color;
$button-color--alpha: $base-color;
$button-border-color--alpha: $base-color;
$button-color-hover--alpha: $base-color;
$button-border-color-hover--alpha: $base-color;
$button-background-color-hover--alpha: $base-color;
$button-background-color-hover--alpha--inverse: $base-color;
$button-background-color--beta: $base-color;
$button-background-color-hover--beta: $base-color;
$button-color-hover--beta: $base-color;
$color--alpha: $base-color;
$space: $pad;
$color--beta: $base-color;
$space-half: $space/2;
$space-and-half: $space+$space/2;
$space-double: $space_2;

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.