├── .csslintrc ├── .gitignore ├── Gruntfile.js ├── README.md ├── bower.json ├── dist └── helper.min.css ├── package.json └── src └── helper.css /.csslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "important": true, 3 | "adjoining-classes": false, 4 | "known-properties": false, 5 | "box-sizing": false, 6 | "box-model": false, 7 | "overqualified-elements": false, 8 | "display-property-grouping": false, 9 | "bulletproof-font-face": false, 10 | "compatible-vendor-prefixes": true, 11 | "regex-selectors": false, 12 | "errors": true, 13 | "duplicate-background-images": true, 14 | "duplicate-properties": true, 15 | "empty-rules": true, 16 | "selector-max-approaching": false, 17 | "gradients": true, 18 | "fallback-colors": false, 19 | "font-sizes": false, 20 | "font-faces": false, 21 | "floats": false, 22 | "star-property-hack": false, 23 | "outline-none": false, 24 | "import": true, 25 | "ids": true, 26 | "underscore-property-hack": true, 27 | "rules-count": true, 28 | "qualified-headings": false, 29 | "selector-max": false, 30 | "shorthand": false, 31 | "text-indent": false, 32 | "unique-headings": false, 33 | "universal-selector": false, 34 | "unqualified-attributes": true, 35 | "vendor-prefix": true, 36 | "zero-units": true 37 | } -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.DS_Store 2 | node_modules/ 3 | assets/ 4 | -------------------------------------------------------------------------------- /Gruntfile.js: -------------------------------------------------------------------------------- 1 | (function (module) { 2 | 'use strict'; 3 | var banner = ['/*!', 4 | ' * css helper v<%= pkg.version %>', 5 | ' *', 6 | ' * Released by 720kb.net under the MIT license', 7 | ' * www.opensource.org/licenses/MIT', 8 | ' *', 9 | ' * <%= grunt.template.today("yyyy-mm-dd") %>', 10 | ' */\n\n'].join('\n') 11 | 12 | module.exports = function (grunt) { 13 | 14 | grunt.initConfig({ 15 | 'pkg': grunt.file.readJSON('package.json'), 16 | 'csslint': { 17 | 'options': { 18 | 'csslintrc': '.csslintrc' 19 | }, 20 | 'strict': { 21 | 'src': ['src/**/*.css'] 22 | } 23 | }, 24 | 'cssmin': { 25 | 'options': { 26 | 'report': 'gzip' 27 | }, 28 | 'minifyTarget': { 29 | 'files': { 30 | 'dist/helper.min.css': [ 31 | 'src/helper.css' 32 | ] 33 | } 34 | } 35 | }, 36 | 'header': { 37 | 'dist': { 38 | 'options': { 39 | 'text': banner 40 | }, 41 | 'files': { 42 | 'dist/helper.min.css': 'dist/helper.min.css' 43 | } 44 | } 45 | } 46 | }); 47 | 48 | grunt.loadNpmTasks('grunt-contrib-csslint'); 49 | grunt.loadNpmTasks('grunt-contrib-cssmin'); 50 | grunt.loadNpmTasks('grunt-header'); 51 | 52 | grunt.registerTask('default', [ 53 | 'csslint', 54 | 'cssmin', 55 | 'header' 56 | ]); 57 | }; 58 | })(module); 59 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | What is this? 2 | ========= 3 | 4 | An easy to use CSS helper, every class is a task-like. 5 | 6 | Documentation 7 | ========= 8 | link: http://720kb.github.io/csshelper 9 | 10 | Installing 11 | ========= 12 | 13 | css helper could be installed via bower: `bower install csshelper` or npm `npm install csshelper` 14 | 15 | Contributing 16 | ========= 17 | We will be much grateful if you help us making this project to grow up. 18 | Feel free to contribute by forking, opening issues, pull requests etc. 19 | 20 | Gtk 21 | ========= 22 | - Early stage project, minor as well as radical changes could happen 23 | 24 | License 25 | ========= 26 | The MIT License (MIT) 27 | 28 | Copyright (c) 2014 Filippo Oretti, Dario Andrei 29 | 30 | Permission is hereby granted, free of charge, to any person obtaining a copy 31 | of this software and associated documentation files (the "Software"), to deal 32 | in the Software without restriction, including without limitation the rights 33 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 34 | copies of the Software, and to permit persons to whom the Software is 35 | furnished to do so, subject to the following conditions: 36 | 37 | The above copyright notice and this permission notice shall be included in all 38 | copies or substantial portions of the Software. 39 | 40 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 41 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 42 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 43 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 44 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 45 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 46 | SOFTWARE. 47 | -------------------------------------------------------------------------------- /bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "csshelper", 3 | "version": "1.0.1", 4 | "description": "A css helper to forget traditional frameworks approach.", 5 | "authors": [ 6 | "Dario Andrei ", 7 | "Filippo Oretti