2017 © Pedro Peláez
 

library web-front-end-utilities

Useful Front End Utilities

image

wearebase/web-front-end-utilities

Useful Front End Utilities

  • Thursday, April 26, 2018
  • by wearebase
  • Repository
  • 6 Watchers
  • 0 Stars
  • 2,074 Installations
  • CSS
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 16 Versions
  • 26 % Grown

The README.md

Info

This project is a collection of useful utilities, applicable to any web project. This includes Sass mixins., (*1)

Install

Then include it in your composer:, (*2)

"require": {
  "wearebase/web-front-end-utilities" : "*"
}

And specify a version or minimum version., (*3)

Configure where you want the package to go

If you want to install somewhere other than vendor, in your composer.json add the following:, (*4)

"extra": {
  "installer-paths": {
    "wp-content/themes/timber/packages/{$name}": ["wearebase/web-front-end-utilities"]
  }
}

Enabling

Sass

Enabling Sass

Add the package to your Compass build path. In this example, I've imported all of the packages for this project., (*5)

add_import_path "wp-content/themes/timber/packages"

Using Sass

  • In your project variables, you can optionally add the following to override default values:
    • $grid-gutter-width
    • $magic-gutter
    • $magic-margin-gutters
    • $magic-padding-gutters
    • $magic-tablet-margin-gutters
    • $magic-tablet-padding-gutters
    • $magic-mobile-margin-gutters
    • $magic-mobile-padding-gutters

Order of files: * Font Stack * - Your project setup file - * - Your bootstrap variables - * Responsive * Mixins * - Your Sass code - * Magic Margins, (*6)

Sass: What's included

Mixins

Provides a huge array of includes that will assist you in writing your CSS., (*7)

Highlights include: * Pseudo-Element Generation * Magical Vertical-Align * hocus (hover + focus in one rule) * Proportion generator * Responsive font sizer - requires "responsive" file * Sprite mixins * Bonus Bootstraps!, (*8)

Responsive

Responsive includes a bunch of responsive utilities for targeting bootstrap breakpoints - mobile, tablet, desktop, and large desktop. These will change based on your bootstrap config but will default to the bootstrap defaults if not provided., (*9)

Also provides mixins for retina devices, retina-sm, retina-xs, and iPhone 5's., (*10)

Include this file after your bootstrap variables., (*11)

Font-Stack

Include this file first in your Sass and you can use a whole load of font stacks. Totally optional but may be useful., (*12)

Magic Margins

Use classes like mt4 to quickly add a margin top of 4 gutters to your item. The gutter is automatically pulled in if you're using bootstrap but defaults to 10px., (*13)

Examples of classes: * [type][direction][x]: type: p or m, direction: t r b l of x gutters * Examples: pt2, mb0, mt2, pl2 * If direction is left empty then padding or margin will apply to all directions * Examples: m0, p1, p4 * Append t- to apply to tablets only (requires import of "responsive") * Append m- to apply to mobile only (requires import of "responsive"), (*14)

If you're referencing a gutter size that isn't being generated, simply adjust the variable for the amount of gutters you want. Gutters are generated from 0 up to the amount you specify., (*15)

The Versions

26/04 2018

dev-master

9999999-dev

Useful Front End Utilities

  Sources   Download

MIT

The Requires

 

by Jonathan Ginn

26/04 2018

v2.0.3

2.0.3.0

Useful Front End Utilities

  Sources   Download

MIT

The Requires

 

by Jonathan Ginn

25/04 2018

2.0.2

2.0.2.0

Useful Front End Utilities

  Sources   Download

MIT

The Requires

 

by Jonathan Ginn

15/03 2018

2.0.1

2.0.1.0

Useful Front End Utilities

  Sources   Download

MIT

The Requires

 

by Jonathan Ginn

25/01 2017

2.0

2.0.0.0

Useful Front End Utilities

  Sources   Download

MIT

The Requires

 

by Jonathan Ginn

23/01 2017

1.1

1.1.0.0

Useful Front End Utilities

  Sources   Download

MIT

The Requires

 

by Jonathan Ginn

06/06 2016

1.0.0

1.0.0.0

Useful Front End Utilities

  Sources   Download

MIT

The Requires

 

by Jonathan Ginn

01/03 2016

0.4.1

0.4.1.0

Useful Front End Utilities

  Sources   Download

MIT

The Requires

 

by Jonathan Ginn

25/02 2016

0.4

0.4.0.0

Useful Front End Utilities

  Sources   Download

MIT

The Requires

 

by Jonathan Ginn

25/02 2016

0.3.4

0.3.4.0

Essential Front End Utilities

  Sources   Download

The Requires

 

by Jonathan Ginn

25/02 2016

0.3.3

0.3.3.0

Essential Front End Utilities

  Sources   Download

The Requires

 

by Jonathan Ginn

27/11 2015

0.3.2

0.3.2.0

Essential Front End Utilities

  Sources   Download

The Requires

 

by Jonathan Ginn

27/11 2015

0.3.1

0.3.1.0

Essential Front End Utilities

  Sources   Download

The Requires

 

by Jonathan Ginn

27/11 2015

0.3

0.3.0.0

Essential Front End Utilities

  Sources   Download

The Requires

 

by Jonathan Ginn

27/11 2015

0.2

0.2.0.0

Essential Front End Utilities

  Sources   Download

The Requires

 

by Jonathan Ginn

27/11 2015

0.1

0.1.0.0

Front End Utilities for Sass

  Sources   Download

The Requires

 

by Jonathan Ginn