Skip to content

Commit 501ea36

Browse files
committed
Initial button
0 parents  commit 501ea36

File tree

7 files changed

+55
-0
lines changed

7 files changed

+55
-0
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
node_modules
2+
.sass-cache
3+
*.log
4+
.DS_Store
5+
.vscode

.stylelintrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "stylelint-config-standard"
3+
}

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# mobi-plugin-button
2+
3+
The button plugin for Mobi.css

index.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@import "src/_button";

package.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"name": "mobi-plugin-button",
3+
"version": "0.0.0",
4+
"description": "The button plugin for Mobi.css",
5+
"main": "index.scss",
6+
"scripts": {
7+
"test": "npm run lint",
8+
"lint": "stylelint **/*.scss --syntax scss",
9+
"preversion": "npm test"
10+
},
11+
"repository": {
12+
"type": "git",
13+
"url": "git+https://github.com/mobi-css/mobi-plugin-button.git"
14+
},
15+
"keywords": [
16+
"mobi-css",
17+
"mobi-plugin",
18+
"mobi-plugin-button"
19+
],
20+
"author": "xcatliu <[email protected]>",
21+
"license": "MIT",
22+
"bugs": {
23+
"url": "https://github.com/mobi-css/mobi-plugin-button/issues"
24+
},
25+
"homepage": "http://getmobicss.com/plugins/mobi-plugin-button",
26+
"devDependencies": {
27+
"stylelint": "^7.9.0",
28+
"stylelint-config-standard": "^16.0.0"
29+
},
30+
"dependencies": {}
31+
}

src/_button.scss

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
.btn {
2+
@include btn();
3+
}
4+
5+
.btn-primary {
6+
@include btn-primary();
7+
}
8+
9+
.btn-danger {
10+
@include btn-danger();
11+
}

src/index.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@import "button";

0 commit comments

Comments
 (0)