initial commit

This commit is contained in:
tmshv committed 2014-02-12 12:36:59 +04:00
commit d3fcd7f10c
3159 files changed
+349702

No files matched your search

+81
View File
@@ -0,0 +1,81 @@
/*! Special Comment */
/* Large Desktops */
@media (min-width: 980px) {
body {
padding-top: 60px;
}
.linediv-l {
border-right: 1px white solid;
}
.linediv-r{
border-left: 1px white solid;
}
}
/* Landscape phones and smaller */
@media (max-width: 770px) {
.copy {
padding: 2.5% 10%;
}
.linediv-l {
border-bottom: 1px white solid;
}
.linediv-r{
border-top: 1px white solid;
}
}
/* All form-factors */
body {
font-family: 'Open Sans', Helvetica, Arial, sans-serif;
}
.heading, .subheading {
font-family: 'Ubuntu', Helvetica, Arial, sans-serif;
text-align: center;
}
p.lead {
padding-top: 1.5%
font-size: 24px;
line-height: 30px;
}
p {
font-size: 18px;
line-height: 24px;
}
/* Video pitch and Action */
.pitch {
padding: 2.5% 0%;
}
.order {
padding: 2% 0%;
}
.actions {
background-color: #343434;
padding: 3% 0%;
}
.video, .thermometer, .order, .social, .statistics {
text-align: center;
}
.statistics h3, .statistics p{
color: white;
}
/* Marketing Copy and Footer */
.copy {
padding-top: 2.5%;
padding-bottom: 2.5%;
text-align: justify;
}
.asset {
padding: 2.5% 0%;
}
.footer {
color: #cccccc;
text-align: center;
}
.footer p{
font-size: 11px;
}
.footer a{
color: #ccccff;
}
/*! Special Comment */
+64
View File
@@ -0,0 +1,64 @@
var gulp = require('gulp'),
expect = require('chai').expect,
minifyCSS = require('../'),
CleanCSS = require('clean-css'),
es = require('event-stream'),
Stream = require('stream'),
path = require('path'),
fs = require('fs');
require('mocha');
describe('gulp-minify-css minification', function() {
var opts = {
keepSpecialComments: 1,
keepBreaks: true
};
describe('with buffers', function() {
var filename = path.join(__dirname, './fixture/index.css');
it('should minify my files', function(done) {
gulp.src(filename)
.pipe(minifyCSS(opts))
.pipe(es.map(function(file){
var source = fs.readFileSync(filename),
expected = new CleanCSS(opts).minify(source.toString());
expect(expected).to.be.equal(file.contents.toString());
done();
}));
});
it('should return file.contents as a buffer', function(done) {
gulp.src(filename)
.pipe(minifyCSS())
.pipe(es.map(function(file) {
expect(file.contents).to.be.an.instanceof(Buffer);
done();
}));
});
});
describe('with streams', function() {
var filename = path.join(__dirname, './fixture/index.css');
it('should minify my files', function(done) {
gulp.src(filename, {buffer: false})
.pipe(minifyCSS(opts))
.pipe(es.map(function(file){
var source = fs.readFileSync(filename),
expected = new CleanCSS(opts).minify(source.toString());
file.contents.pipe(es.wait(function(err, data) {
expect(expected).to.be.equal(data);
done();
}));
}));
});
it('should return file.contents as a buffer', function(done) {
gulp.src(filename, {buffer: false})
.pipe(minifyCSS(opts))
.pipe(es.map(function(file) {
expect(file.contents).to.be.an.instanceof(Stream);
done();
}));
});
});
});