Permalink
Browse files

initial commit

  • Loading branch information...
minwe
minwe committed Jun 23, 2015
0 parents commit c84b21708d4772efca209bb8eddb54dc60f28125
Showing with 4,032 additions and 0 deletions.
  1. +11 −0 .editorconfig
  2. +5 −0 .gitignore
  3. +21 −0 .jshintrc
  4. +13 −0 .npmignore
  5. +13 −0 LICENSE
  6. +42 −0 README.md
  7. +213 −0 dist/amazeui.slick.css
  8. +1 −0 dist/amazeui.slick.min.css
  9. +2,365 −0 dist/slick.js
  10. +18 −0 dist/slick.min.js
  11. +122 −0 docs/api.md
  12. +821 −0 docs/demo.md
  13. +78 −0 gulpfile.js
  14. +97 −0 less/amazeui.slick.less
  15. +166 −0 less/slick.theme.less
  16. +46 −0 package.json
@@ -0,0 +1,11 @@
# editorconfig.org
root = true
[*]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 2
trim_trailing_whitespace = true
insert_final_newline = true
@@ -0,0 +1,5 @@
node_modules
dist/*.html
dist/docs
.idea
.DS_Store
@@ -0,0 +1,21 @@
{
"browser": true,
"node": true,
"bitwise": true,
"camelcase": true,
"curly": true,
"expr": true,
"immed": true,
"indent": 2,
"maxlen": 80,
"newcap": true,
"noarg": true,
"quotmark": "single",
"undef": true,
"unused": "vars",
"strict": true,
"globals": {
"define": true,
"module": true
}
}
@@ -0,0 +1,13 @@
.DS_Store
node_modules
/.idea
/dist/*.html
/dist/docs
/docs
tasks
gulpfile.js
.editorconfig
.gitignore
.jshintrc
.npmignore
bower.json
13 LICENSE
@@ -0,0 +1,13 @@
The MIT License (MIT)
Copyright (c) 2014-2015 AllMobilize Inc.
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.
Slick
https://github.com/kenwheeler/slick/blob/master/LICENSE
@@ -0,0 +1,42 @@
# Amaze UI Slick
---
[![NPM version](https://img.shields.io/npm/v/amazeui-slick.svg?style=flat-square)](https://www.npmjs.com/package/amazeui-slick)
[![Dependency Status](https://img.shields.io/david/amazeui/slick.svg?style=flat-square)](https://david-dm.org/amazeui/slick)
[![devDependency Status](https://img.shields.io/david/dev/amazeui/slick.svg?style=flat-square)](https://david-dm.org/amazeui/slick#info=devDependencies)
[Slick 插件](https://github.com/kenwheeler/slick) Amaze UI 样式移植。
- [使用示例](http://amazeui.github.io/slick/docs/demo.html)
- [API 文档](http://amazeui.github.io/slick/docs/api.html)
**使用说明:**
1. 获取 Amaze UI slick
- [直接下载](https://github.com/amazeui/slick/archive/master.zip)
- 使用 NPM: `npm install amazeui-slick`
2. 在 Amaze UI 样式之后引入 slick 样式(`dist` 目录下的 CSS):
Amaze UI slick 依赖 Amaze UI 样式。
```html
<link rel="stylesheet" href="path/to/amazeui.min.css"/>
<link rel="stylesheet" href="path/to/amazeui.slick.min.css"/>
```
3. 引入 slick 插件(`dist` 目录下的 JS):
```html
<script src="path/to/jquery.min.js"></script>
<script src="path/to/slick.min.js"></script>
```
4. 初始化 slick:
```js
$(function() {
$('#my-slick').slick();
});
```
@@ -0,0 +1,213 @@
/*! Amaze UI Plugin ~ slick */
/* Slider */
.slick-slider {
position: relative;
display: block;
box-sizing: border-box;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
-ms-touch-action: pan-y;
touch-action: pan-y;
-webkit-tap-highlight-color: transparent;
}
.slick-list {
position: relative;
overflow: hidden;
display: block;
margin: 0;
padding: 0;
}
.slick-list:focus {
outline: none;
}
.slick-list.dragging {
cursor: hand;
}
.slick-slider .slick-track,
.slick-slider .slick-list {
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
}
.slick-track {
position: relative;
left: 0;
top: 0;
display: block;
}
.slick-track:before,
.slick-track:after {
content: "";
display: table;
}
.slick-track:after {
clear: both;
}
.slick-loading .slick-track {
visibility: hidden;
}
.slick-slide {
float: left;
height: 100%;
min-height: 1px;
display: none;
}
[dir="rtl"] .slick-slide {
float: right;
}
.slick-slide img {
display: block;
}
.slick-slide.slick-loading img {
display: none;
}
.slick-slide.dragging img {
pointer-events: none;
}
.slick-initialized .slick-slide {
display: block;
}
.slick-loading .slick-slide {
visibility: hidden;
}
.slick-vertical .slick-slide {
display: block;
height: auto;
border: 1px solid transparent;
}
/* Slider */
/* Arrows */
.slick-prev,
.slick-next {
position: absolute;
display: block;
height: 20px;
width: 20px;
line-height: 0;
font-size: 0;
cursor: pointer;
background: transparent;
color: transparent;
top: 50%;
margin-top: -10px;
padding: 0;
border: none;
outline: none;
}
.slick-prev:hover,
.slick-next:hover,
.slick-prev:focus,
.slick-next:focus {
outline: none;
background: transparent;
color: transparent;
}
.slick-prev:hover:before,
.slick-next:hover:before,
.slick-prev:focus:before,
.slick-next:focus:before {
opacity: 1;
}
.slick-prev.slick-disabled:before,
.slick-next.slick-disabled:before {
opacity: 0.25;
}
.slick-prev:before,
.slick-next:before {
font-family: "FontAwesome";
font-size: 20px;
line-height: 1;
color: #0e90d2;
opacity: 0.75;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.slick-prev {
left: -25px;
}
[dir="rtl"] .slick-prev {
left: auto;
right: -25px;
}
.slick-prev:before {
content: "\f137";
}
[dir="rtl"] .slick-prev:before {
content: "\f138";
}
.slick-next {
right: -25px;
}
[dir="rtl"] .slick-next {
left: -25px;
right: auto;
}
.slick-next:before {
content: "\f138";
}
[dir="rtl"] .slick-next:before {
content: "\f137";
}
/* Dots */
.slick-slider {
margin-bottom: 30px;
}
.slick-dots {
position: absolute;
bottom: -45px;
list-style: none;
display: block;
text-align: center;
padding: 0;
width: 100%;
}
.slick-dots li {
position: relative;
display: inline-block;
height: 20px;
width: 20px;
margin: 0 5px;
padding: 0;
cursor: pointer;
}
.slick-dots li button {
border: 0;
background: transparent;
display: block;
height: 20px;
width: 20px;
outline: none;
line-height: 0;
font-size: 0;
color: transparent;
padding: 5px;
cursor: pointer;
}
.slick-dots li button:hover,
.slick-dots li button:focus {
outline: none;
}
.slick-dots li button:hover:before,
.slick-dots li button:focus:before {
opacity: 1;
}
.slick-dots li button:before {
position: absolute;
top: 0;
left: 0;
content: "";
width: 20px;
height: 20px;
font-size: 32px;
line-height: 20px;
text-align: center;
color: #0e90d2;
opacity: 0.25;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.slick-dots li.slick-active button:before {
color: #0e90d2;
opacity: 0.75;
}

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit c84b217

Please sign in to comment.