Skip to content

Commit

Permalink
less2scss, add slovak lang, add build system
Browse files Browse the repository at this point in the history
  • Loading branch information
najlepsiwebdesigner committed Jun 28, 2015
1 parent b4fd593 commit f2c2b7a
Show file tree
Hide file tree
Showing 305 changed files with 7,322 additions and 400 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
*.DS_Store
index.php
index.php
node_modules
.sass-cache
35 changes: 35 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-sass');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.registerTask('build', ['uglify', 'sass', 'cssmin']);


grunt.initConfig({
uglify: {
my_target: {
files: {
'js/foundation-datepicker.min.js': ['js/foundation-datepicker.js']
}
}
},
sass: {
dist: {
files: {
'css/foundation-datepicker.css': 'css/foundation-datepicker.scss'
}
}
},
cssmin: {
options: {
shorthandCompacting: false,
roundingPrecision: -1
},
target: {
files: {
'css/foundation-datepicker.min.css': ['css/foundation-datepicker.css']
}
}
}
});
}
41 changes: 29 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,27 +30,33 @@ http://foundation-datepicker.peterbeno.com/example.html
2. copy the files
3. **/js/foundation-datepicker.js**
4. **/stylesheets/foundation-datepicker.css**
somewhere into your project
somewhere into your project

3. <link> and <script> them into your page
3. <link> and <script> them into your page

4. to see the arrows and icons, please include **font-awesome**:
4. to see the arrows and icons, please include **font-awesome** of **foundation icons**:

http://zurb.com/playground/foundation-icons

`<link href="//cdnjs.cloudflare.com/ajax/libs/foundicons/3.0.0/foundation-icons.css" rel="stylesheet">`

http://fortawesome.github.io/Font-Awesome/

`<link href="//netdna.bootstrapcdn.com/font-awesome/3.0.2/css/font-awesome.css" rel="stylesheet">`

`<link href="//netdna.bootstrapcdn.com/font-awesome/3.0.2/css/font-awesome.css" rel="stylesheet">`

Language translations
-------------------
You can pass argument to constructor to choose language used:
```
$('.fdatepicker').fdatepicker({
language: 'de'
});
language: 'de'
});
```

Available languages are:

- English (en) - default
- French (fr)
- French (fr)
- Polish (pl)
- Spanish (es)
- Portugese (pt)
Expand All @@ -66,12 +72,23 @@ Available languages are:
- Ukrainian (uk)
- Norwegian (no)
- Turkish (tr)

Version without Font Awesome
-------------------
Can be found in separate branch:
- Slovak (sk)

Icons
------------------
Datepicker uses three icons. It works with foundation font and font awesome out-of-the box. If you dont want to use iconic font, you can customize buttons via classes:
- `fa-chevron-right fi-arrow-right` - right arrow
- `fa-remove fa-times fi-x` - close sign
- `fa fa-chevron-left fi-arrow-left` - left arrow

*Version without Font Awesome* (behind master) can be found in separate branch:
https://github.com/najlepsiwebdesigner/foundation-datepicker/tree/no-font-awesome

Build system
------------------
Grunt is used.
`grunt build` compiles scss & minifies js and css


A note on forking:
-------------------
Expand Down
4 changes: 2 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "foundation-datepicker",
"version": "1.0.0",
"version": "1.4.0",
"homepage": "https://github.com/najlepsiwebdesigner/foundation-datepicker",
"authors": [
"Peter Beňo <[email protected]>"
Expand All @@ -21,5 +21,5 @@
"test",
"tests"
]

}
1 change: 0 additions & 1 deletion stylesheets/example.css → css/example.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

151 changes: 151 additions & 0 deletions css/foundation-datepicker.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions css/foundation-datepicker.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions css/foundation-datepicker.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f2c2b7a

Please sign in to comment.