Skip to content
This repository has been archived by the owner on Nov 17, 2019. It is now read-only.

Commit

Permalink
Rebrand the project completely
Browse files Browse the repository at this point in the history
  • Loading branch information
zlatanvasovic committed Aug 20, 2016
1 parent 35dd9ce commit b9180f7
Show file tree
Hide file tree
Showing 16 changed files with 159 additions and 255 deletions.
1 change: 1 addition & 0 deletions .csscomb.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@
"text-emphasis-style",
"text-emphasis-position",
"text-decoration",
"-webkit-text-decoration-skip",
"text-indent",
"text-justify",
"text-outline",
Expand Down
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
sudo: required
language: node_js
node_js:
- "0.10"
- "4"
- "6"
before_install:
- npm install -g grunt-cli
50 changes: 21 additions & 29 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Sanitize.css gruntfile (http://git.io/sanitize)
* Codify.css gruntfile (http://git.io/sanitize)
* Licensed under the MIT License.
*/

Expand All @@ -15,7 +15,7 @@ module.exports = function (grunt) {
pkg: grunt.file.readJSON('package.json'),

// Paths
sanitize: {
codify: {
less: (function () {
var modules = (grunt.option('modules') || 'base display text embed forms tables').split(' ');
var files = [];
Expand All @@ -24,32 +24,33 @@ module.exports = function (grunt) {
}
return files;
})(),
css: 'dist/sanitize.css',
cssMin: 'dist/sanitize.min.css'
css: 'dist/codify.css',
cssMin: 'dist/codify.min.css'
},

// Banner
banner: '/*!\n' +
' * Sanitize.css <%= pkg.version %> (http://git.io/sanitize)\n' +
' * Licensed under the <%= pkg.license %> License.\n' +
' */\n',

// Tasks
clean: {
dist: 'dist'
},

less: {
dist: {
src: '<%= sanitize.less %>',
dest: '<%= sanitize.css %>'
options: {
banner: '/*!\n' +
' * Codify.css <%= pkg.version %> (https://github.com/zdroid/codify.css)\n' +
' * Licensed under the <%= pkg.license %> License.\n' +
' */\n'
},
src: '<%= codify.less %>',
dest: '<%= codify.css %>'
},
distMin: {
options: {
compress: true
compress: true,
banner: '/*! Codify.css <%= pkg.version %> | <%= pkg.license %> License | https://github.com/zdroid/codify.css */'
},
src: '<%= sanitize.css %>',
dest: '<%= sanitize.cssMin %>'
src: '<%= codify.less %>',
dest: '<%= codify.cssMin %>'
}
},

Expand All @@ -58,24 +59,15 @@ module.exports = function (grunt) {
options: {
config: '.csscomb.json'
},
src: '<%= sanitize.css %>',
dest: '<%= sanitize.css %>'
}
},

usebanner: {
css: {
options: {
banner: '<%= banner %>'
},
src: 'dist/*.css'
src: '<%= codify.css %>',
dest: '<%= codify.css %>'
}
},

watch: {
src: {
files: '<%= sanitize.less %>',
tasks: ['less', 'csscomb', 'usebanner']
files: '<%= codify.less %>',
tasks: ['less', 'csscomb']
}
}
});
Expand All @@ -85,5 +77,5 @@ module.exports = function (grunt) {
require('time-grunt')(grunt);

// Default task
grunt.registerTask('default', ['clean', 'less', 'csscomb', 'usebanner']);
grunt.registerTask('default', ['clean', 'less', 'csscomb']);
};
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2015 Zlatan Vasović
Copyright (c) 2013-2016 Zlatan Vasović

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
Expand Down
34 changes: 19 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,31 @@
# Sanitize.css
# Codify.css

[![Build Status](https://travis-ci.org/ZDroid/sanitize.css.svg?branch=master)](https://travis-ci.org/ZDroid/sanitize.css)
[![devDependency Status](https://david-dm.org/ZDroid/sanitize.css/dev-status.svg)](https://david-dm.org/ZDroid/sanitize.css#info=devDependencies)
[![Build Status](https://travis-ci.org/zdroid/codify.css.svg?branch=master)](https://travis-ci.org/zdroid/codify.css)
[![devDependency Status](https://david-dm.org/zdroid/codify.css/dev-status.svg)](https://david-dm.org/zdroid/codify.css#info=devDependencies)

> A minimal CSS normalization library
> A minimal and customizable CSS normalization library
Codify.css is focused on providing needed corrections for modern browsers,
instead of supporting old, unmaintained and almost unused browsers.
Based on [Normalize.css](https://github.com/necolas/normalize.css).

## Download

- [**ZIP package**](https://github.com/ZDroid/sanitize.css/archive/master.zip)
- **Bower:** `bower install sanitize.css`
- [**ZIP package**](https://github.com/zdroid/codify.css/archive/master.zip)
- **Bower:** `bower install codify.css`

### CDN

- [cdnjs](http://cdnjs.com/libraries/sanitize.css/)
- [jsDelivr](http://www.jsdelivr.com/#!sanitize.css) (latest at
`//cdn.jsdelivr.net/sanitize.css/latest/sanitize.min.css`)
- [cdnjs](http://cdnjs.com/libraries/codify.css/)
- [jsDelivr](http://www.jsdelivr.com/#!codify.css) (latest at
`//cdn.jsdelivr.net/codify.css/latest/codify.min.css`)

## Core changes

(compared to Normalize.css)

- Modules
- Support for older browsers removed
- CSSComb support
- Improved display definitions
- Consistent element styles
Expand All @@ -33,13 +36,14 @@ Based on [Normalize.css](https://github.com/necolas/normalize.css).

- **Chrome** (latest)
- **Firefox** (latest)
- **Opera 12+**
- **Safari 6+**
- **Internet Explorer 9+**
- **Opera** (latest)
- **Edge** (latest)
- **Safari 7+**
- **Internet Explorer 10+**

## Compile

Sanitize.css uses [Grunt](http://gruntjs.com) to compile Less code.
Codify.css uses [Grunt](http://gruntjs.com) to compile Less code.

### Dependencies

Expand All @@ -48,7 +52,7 @@ You need [node.js](http://nodejs.org/download/) to use Grunt.
From the command line:

1. Install `grunt-cli` globally with `[sudo] npm install -g grunt-cli`.
2. Run `npm install` from the root Sanitize.css directory to install
2. Run `npm install` from the root Codify.css directory to install
dependencies.

When completed, you'll be able to run the various Grunt commands provided from
Expand Down Expand Up @@ -80,4 +84,4 @@ Watches Less files and recompiles them when they're changed.

## License

MIT &copy; [Zlatan Vasović](https://github.com/ZDroid)
MIT &copy; [Zlatan Vasović](https://github.com/zdroid)
10 changes: 5 additions & 5 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"name": "sanitize.css",
"name": "codify.css",
"author": "Zlatan Vasović",
"description": "A minimal CSS normalization library",
"description": "A minimal and customizable CSS normalization library",
"keywords": [
"sanitize",
"normalize",
"front-end",
"css",
"less"
],
"version": "2.0.0",
"version": "1.0.0",
"license": "MIT",
"homepage": "https://github.com/ZDroid/sanitize.css",
"main": "dist/sanitize.css",
"homepage": "https://github.com/zdroid/codify.css",
"main": "dist/codify.css",
"ignore": [
"**/.*",
"Gruntfile.js",
Expand Down
Loading

0 comments on commit b9180f7

Please sign in to comment.