Skip to content
This repository has been archived by the owner on May 11, 2021. It is now read-only.

Commit

Permalink
Code refactoring, fix typos, remove legacy and minimised CSSs
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin Pokorný committed Mar 30, 2014
1 parent 954acb0 commit 025f5cb
Show file tree
Hide file tree
Showing 13 changed files with 240 additions and 1,278 deletions.
71 changes: 27 additions & 44 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,53 +1,36 @@
/*global module:false*/
module.exports = function(grunt) {
module.exports = function (grunt) {

require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-contrib-csslint');

grunt.initConfig({
less: {
dist: {
options: {
strictMath: true,
strictUnits: true
},
files: {
'css/emerald.css': 'less/emerald.less'
}
}
grunt.initConfig({
less: {
dist: {
options: {
strictMath: true,
strictUnits: true,
report: 'gzip'
},
legacssy: {
dist: {
files: {
'css/emerald-legacy.css': 'css/emerald.css'
}
}
},
csslint: {
strict: {
options: {
'box-model': false,
'box-sizing': false,
'known-properties': false
},
src: ['css/emerald.css']
}
},
cssmin: {
minify: {
options: {
report: 'gzip'
},
expand: true,
cwd: 'css/',
src: ['*.css', '!*.min.css'],
dest: 'css/',
ext: '.min.css'
}
files: {
'css/emerald.css': 'less/emerald.less'
}
});
}
},
csslint: {
strict: {
options: {
'box-model': false,
'box-sizing': false,
'known-properties': false
},
src: ['css/emerald.css']
}
}
});

// Default task.
grunt.registerTask('default', ['less', 'legacssy', 'csslint', 'cssmin']);
// Default task.
grunt.registerTask('default', ['less', 'csslint']);

};

19 changes: 10 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Emerald v1.1.3
# Emerald v1.2.0

[lmc-eu.github.io/emerald/](http://lmc-eu.github.io/emerald/)

Expand All @@ -20,27 +20,27 @@ Install via *Bower*

`$ bower install emerald`

Either include source *LESS* files into your project (recommended) or use compiled minified *CSS*.
Either include source *LESS* files into your project (recommended) or use compiled *CSS*.

```less
// main.less
@import "emerald/less/emerald";
```

## Browser support

Emerald grid system is tested in the latest versions of the major browsers on the major desktop and mobile platforms.

### Support for `vw` units
Android browser does not support `vw` units. Load `emerald.js` at the
bootom of the page:
bottom of the page:

```html
<script src="js/emerald.js"></script>
```

### Internet Explorer 8
Legacy browser are supported by [grunt-legacssy](https://github.com/robinpokorny/grunt-legacssy). Load the grid using:

```css
<!--[if lte IE 8]> <link rel="stylesheet" href="css/emerald-legacy.min.css"> <![endif]-->
<!--[if gt IE 8]><!--> <link rel="stylesheet" href="css/emerald.min.css"> <!--<![endif]-->
```
Legacy browser are supported by [grunt-legacssy](https://github.com/robinpokorny/grunt-legacssy).

## The name
Please note that the name *Emerald* does not refer to the gemstone of that name but to a [diamond cut](http://www.lumeradiamonds.com/diamond-education/emerald-cut-diamond) *"originally developed for the cutting of emeralds."*
Expand All @@ -56,6 +56,7 @@ This grid system was inspired by:
* [yui/pure](http://github.com/yui/pure)

## Changelog
* v1.2.0 Code refactoring, fix typos, remove legacy and minimised CSSs
* v1.1.3 Fix a bug with .e-0 classes overwriting on higher devices
* v1.1.2 Fix a printing problem in FF
* v1.1.1 Hiding .grid__item in print
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "emerald",
"version": "1.1.4",
"version": "1.2.0",
"main": [
"css/emerald.css",
"less/emerald.less",
Expand Down
Loading

0 comments on commit 025f5cb

Please sign in to comment.