seed-video
Responsive video component pack for Seed!
Install
npm install seed-video --save
Basic Usage
SCSS
This seed pack needs to be imported into your sass pipeline. Below is an example using Gulp:
var gulp = require('gulp');
var sass = require('gulp-sass');
var pack = require('seed-video');
gulp.task('sass', function () {
return gulp.src('./sass/**/*.scss')
.pipe(sass({
includePaths: pack
}))
.pipe(gulp.dest('./css'));
});
Once that is setup, simply @import
seed-video as needed in your .scss
file:
@import "pack/seed-video/_index";
Options
The following variables can be found in _config.scss
$seed-video-namespace: "c-video" !default;
$seed-video-embed-namespace: "#{$seed-video-namespace}__embed" !default;
$seed-video-background-color: #eee !default;
$seed-video-sizes: (
u-wide: (
width: 21,
height: 9
),
// Golden ratio (16:10)
gr: (
width: 16,
height: 10
),
wide: (
width: 16,
height: 9
),
sd: (
width: 4,
height: 3
)
) !default;