sop-sass

1.0.1 • Public • Published

sop-sass

Travis (.org) David David npm

forthebadge

Someoddpilot's base Sass framework

Borrowed liberally from Bootstrap.

Responsive Embeds

A convenient way to make embeds responsive. Supports 16by9 and 4by3.

.embed-container {
  @include embed-responsive(3, 2);
}
 
.embed-container {
  @include embed-responsive-4by3;
}
 
.embed-container {
  @include embed-responsive-16by9;
}
 
.embed-item {
  @include embed-responsive-item;
}

Font Specs

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.

.foo {
  @include font-specs(16, 22, 100, true);
}

Vendor Prefix Mixins

Convenient vendor prefixes have been added for:

  • backface-visibility
  • appearance
  • transition
  • transform
  • animation
  • animation-timing-function
  • animation-delay
  • animation-duration

Responsive

Convenient ways to make images responsive.

img {
  @include img-responsive;
}

Screen Reader

Makes an element only available to screen-readers, aiding in accessibility.

.help-text {
  @include sop-sr-only;
}

Font Face

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)
@include setup-font-face('fontello', '/assets/font/', 'fontello-alt');

Fontello

Includes base fontello icon styling

Has an optional boolean parameter for whether to include animation offset.

.icon:before {
  @include fontello-icon();
  content: '\e200';
}

Viewport Filled and Fitted

.img {
  @include viewport-filled(16, 9);
}
 
.img--fit {
  @include viewport-fitted(16, 9);
}

TODO

  • Touch detection
  • Viewport filled and centered content
  • Responsive show and hide

Package Sidebar

Install

npm i sop-sass

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

12.6 kB

Total Files

14

Last publish

Collaborators

  • sarahrooney
  • kamil.kecki