Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
45kb committed Sep 9, 2016
0 parents commit 930498d
Show file tree
Hide file tree
Showing 58 changed files with 1,424 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.DS_Store
node_modules/
.sass-cache
78 changes: 78 additions & 0 deletions .sass-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
options:
formatter: stylish
files:
include: '**/*.s+(a|c)ss'
rules:
# Extends
extends-before-mixins: 1
extends-before-declarations: 1
placeholder-in-extend: 1

# Mixins
mixins-before-declarations: 1

# Line Spacing
one-declaration-per-line: 1
empty-line-between-blocks: 1
single-line-per-selector: 0

# Disallows
no-color-keywords: 0
no-color-literals: 0
no-css-comments: 0
no-debug: 1
no-duplicate-properties: 1
no-empty-rulesets: 1
no-extends: 0
no-ids: 3
no-important: 1
no-invalid-hex: 1
no-mergeable-selectors: 1
no-misspelled-properties: 1
no-qualifying-elements: 0
no-trailing-zero: 1
no-transition-all: 0.5
no-url-protocols: 1
no-vendor-prefixes: 3
no-warn: 1

# Nesting
force-attribute-nesting: 3
force-element-nesting: 1
force-pseudo-nesting: 1

# Name Formats
function-name-format: 1
mixin-name-format: 1
placeholder-name-format: 1
variable-name-format: 1

# Style Guide
border-zero: 0
brace-style: 1
clean-import-paths: 1
empty-args: 1
hex-length: 1
hex-notation: 1
indentation: 1
leading-zero: 1
nesting-depth: 0
property-sort-order: 3
quotes: 1
shorthand-values: 0
url-quotes: 1
variable-for-property: 1
zero-unit: 1

# Inner Spacing
space-after-comma: 1
space-before-colon: 1
space-after-colon: 1
space-before-brace: 1
space-before-bang: 1
space-after-bang: 1
space-between-parens: 1

# Final Items
trailing-semicolon: 1
final-newline: 1
27 changes: 27 additions & 0 deletions DEV.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
####Commands

Install deps

```bash
npm install
```

Develop

```bash
gulp start
```

Build dist

```bash
gulp build
```

Run a demo page

http://localhost:8000/demo

```bash
python -m SimpleHTTPServer
```
11 changes: 11 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
## License

The MIT License (MIT)

Copyright (c) 2016 Filippo Oretti

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
132 changes: 132 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
<p align="center">
<img src="http://i.imgur.com/RMT4UHE.png" width="250"/>
</p>
<p align="center" style="text-align:center">

A tiny set of CSS3 animations designed for your radio inputs.

</p>
</br>
<p align="center" style="text-align:center">
<a href="https://gitter.im/720kb/?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge" target="_blank">
<img src="https://badges.gitter.im/Join%20Chat.svg"/>
</a>
</p>
<br/>
<p align="center" style="text-align:center">
<b>Installation</b>
</p>
<p align="center" style="text-align:center">
Include the <i>dist/css/radiobox.min.css</i> in your html page
</p>
<p align="center" style="font-size:12px;">
<sub><i>Include dist/css/boing/boing.min.css instead, if you want to use only the <b>Boing</b> animation, for example.</i></sub>
</p>
<br/>
<p align="center" style="text-align:center">
<b>Animations</b>
</p>

<p align="center" style="text-align:center">
Boing
</p>

<p align="center" style="text-align:center">
Pump
</p>

<p align="center" style="text-align:center">
Hooray
</p>

<p align="center" style="text-align:center">
Ufo
</p>

<p align="center" style="text-align:center">
Scatman
</p>

<p align="center" style="text-align:center">
Vertigo
</p>

<p align="center" style="text-align:center">
Flash
</p>

<p align="center" style="text-align:center">
Return
</p>

<p align="center" style="text-align:center">
Boom
</p>

<p align="center" style="text-align:center">
Wheel
</p>

<p align="center" style="text-align:center">
Focus
</p>

<p align="center" style="text-align:center">
Tremolo
</p>

<br/>
<p align="center" style="text-align:center">

<b>Usage</b>

</p>

<p align="center" style="text-align:center">

<code style="color:royalblue">
<b>&#x3C;input</b> type="radio" class="<b>radiobox-boing</b>"<b>/&#x3E;</b>
</code>

</p>

<br/>
<p align="center" style="text-align:center">
<b>Browsers Support</b>
</p>
<p align="center" style="text-align:center">
<i>Depending on:</i>
</p>
<p align="center" style="text-align:center">

<a href="http://caniuse.com/#feat=transforms2d" target="_blank">2D Transform</a>
</p>
<p align="center" style="text-align:center">
<a href="http://caniuse.com/#feat=css-animation" target="_blank">Keyframes</a>

</p>

<br/>
<p align="center" style="text-align:center">
<b>Demo</b>
</p>
<p align="center" style="text-align:center">
<a href="https://720kb.github.io/radiobox.css">Here</a>
</p>
<br/>

<p align="center" style="text-align:center">
<b>Mantainers</b>
</p>
<p align="center" style="text-align:center">
<a href="http://720kb.net">720kb</a>
</p>
<br/>
<p align="center" style="text-align:center">
<br/>
<b>License</b>
</p>

<p align="center" style="text-align:center">
(MIT) read <a href="https://github.com/720kb//blob/gh-pages/LICENSE.md">LICENSE.md</a>
</p>
40 changes: 40 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"name": "radio.css",
"version": "1.0.0",
"ignore": [
"node_modules",
"bower_components",
"package.json",
"index.html",
"logo.png",
"bg.png",
"gh-pages.css",
"*.png",
"*.jpg",
"*.log",
".gitignore",
"conf",
"demo",
".sass-lint.yml",
"lib",
"gulpfile.js",
"*.md"
],
"description": "Tiny set of CSS3 animations for your radio inputs.",
"authors": [
"720kb <[email protected]>",
"45kb <[email protected]>"
],
"license": "MIT",
"homepage": "https://github.com/720kb/",
"keywords": [
"radio",
"forms",
"animations",
"animated",
"form",
"input",
"css",
"css3"
]
}
26 changes: 26 additions & 0 deletions conf/paths.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/*global require,module*/
(function pathConfiguration(require, module) {
'use strict';

const infos = require('../package.json')
, today = new Date()
, paths = {
"lib": "lib/",
"dist": "dist/",
"scss": "lib/scss/",
"demo": "demo/",
"banner": ['/*',
' * ' + infos.name,
' * v' + infos.version,
' * ',
' * ' + infos.description,
' * ' + infos.homepage,
' * ',
' * ' + infos.license + ' license',
' * ' + today.toDateString('yyyy-MM-dd'),
' */',
''].join('\n')
};

module.exports = paths;
}(require, module));
16 changes: 16 additions & 0 deletions conf/tasks/autoprefixer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*global require*/
(function gulpTask() {
'use strict';


const gulp = require('gulp')
, paths = require('../paths')
, autoprefixer = require('gulp-autoprefixer');


gulp.task('autoprefixer', function(callback) {
return gulp.src(`${paths.dist}*.css`)
.pipe(autoprefixer())
.pipe(gulp.dest(`${paths.dist}`));
});
}());
15 changes: 15 additions & 0 deletions conf/tasks/banner.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/*global require*/
(function gulpTask() {
'use strict';


const gulp = require('gulp')
, paths = require('../paths')
, header = require('gulp-header');

gulp.task('banner', function bannerify() {
return gulp.src(`${paths.dist}**/*.min.css`)
.pipe(header(`${paths.banner}`))
.pipe(gulp.dest(`${paths.dist}`))
});
}());
13 changes: 13 additions & 0 deletions conf/tasks/build.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/*global require*/
(function gulpTask() {
'use strict';


const gulp = require('gulp')
, runSequence = require('run-sequence').use(gulp);


gulp.task('build', function buildEverything() {
runSequence('clean', 'sass', 'autoprefixer', 'minify', 'banner', 'copy', 'finalize');
});
}());
14 changes: 14 additions & 0 deletions conf/tasks/clean.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/*global require*/
(function gulpTask() {
'use strict';


const gulp = require('gulp')
, paths = require('../paths')
, clean = require('gulp-clean');

gulp.task('clean', function cleanDist() {
return gulp.src(`${paths.dist}`, {'read': false})
.pipe(clean());
});
}());
Loading

0 comments on commit 930498d

Please sign in to comment.