Someoddpilot's base Stylus framework
npm install sop-stylsop-styl
========



Someoddpilot's base Stylus framework
Borrowed liberally from Bootstrap and Nib
A convenient way to make embeds responsive. Supports 16by9 and 4by3.
``stylus
.embed-container {
embed-responsive(16, 9);
}
.embed-item {
embed-responsive-item();
}
`
or
`stylus
.embed-container {
@extends $embed-responsive-4by3;
}
.embed-item {
@extends $embed-responsive-item;
}
`
A convenient way to set font size, line-height, letter-spacing, and smoothing. Assumes a base font-size of 14. This can be reconfigured by setting the $base-font-size variable.
`stylus`
.foo {
font-specs(16, 1.4, 100, true);
}
Convenient vendor prefixes have been added for:
* backface-visibility
* appearance
* transition
* transform
* animation
* animation-timing-function
* animation-delay
* animation-duration
A convenient way to make images responsive.
`stylus`
img {
img-responsive();
}
Makes an element only available to screen-readers, aiding in accessibility.
`stylus`
.help-text {
sop-sr-only();
}
Sets up font face.
Params:
1. font-family name
2. file root (optional, defaults to /fonts/)
3. file name (optional, defaults to font-family name)
`stylus`
setup-font-face('fontello', '/assets/font/', 'fontello-alt')
Includes base fontello icon styling
Has an optional boolean parameter for whether to include animation offset.
`stylus`
.icon:before
fontello-icon()
content '\e200'
`stylus
.img
viewport-filled(16, 9)
.img--fit
viewport-fitted(16, 9)
``
* Touch detection
* Viewport filled and centered content
* Responsive show and hide