Skip to content

Commit cc62459

Browse files
committed
Added test
1 parent 70d1cf4 commit cc62459

File tree

4 files changed

+495
-9
lines changed

4 files changed

+495
-9
lines changed

package.json

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
{
22
"name": "superfly-css-component-button",
3-
"version": "0.0.2",
3+
"version": "0.0.3",
44
"description": "CSS Button Component.",
55
"main": "src/main/css/index.css",
66
"scripts": {
7-
"test": "gulp clean && gulp build:css && gulp test:css",
8-
"clean": "gulp clean"
7+
"update": "ncu -a && npm i",
8+
"clean": "gulp clean",
9+
"build": "npm run clean && gulp build:css",
10+
"test": "npm run build && gulp test:css"
911
},
1012
"repository": {
1113
"type": "git",
@@ -25,15 +27,16 @@
2527
"homepage": "https://github.com/superfly-css/superfly-css-component-button#readme",
2628
"devDependencies": {
2729
"gulp": "^3.9.1",
28-
"superfly-css-component-site": "0.0.2",
30+
"superfly-css-component-site": "0.0.3",
31+
"superfly-css-component-test": "0.0.12",
2932
"superfly-css-foundation": "0.0.8",
30-
"superfly-css-task-build": "^0.1.9",
33+
"superfly-css-task-build": "^0.1.10",
3134
"superfly-css-task-clean": "0.0.1",
3235
"superfly-css-task-test": "^0.3.0",
33-
"superfly-css-utilities-colors": "^0.1.3",
34-
"superfly-css-utilities-effects": "0.0.3",
35-
"superfly-css-utilities-fonts": "0.0.11",
36+
"superfly-css-utilities-colors": "^0.1.10",
37+
"superfly-css-utilities-effects": "0.0.4",
38+
"superfly-css-utilities-fonts": "0.0.13",
3639
"superfly-css-utilities-icons": "0.0.2",
37-
"superfly-css-utilities-layout": "0.0.10"
40+
"superfly-css-utilities-layout": "0.1.3"
3841
}
3942
}

src/test/css/index.css

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
@import "../../main/css/index.css";
2+
@import "superfly-css-utilities-icons";
3+
@import "superfly-css-utilities-fonts";
4+
@import "superfly-css-utilities-layout";
5+
@import "superfly-css-component-site";
6+
@import "superfly-css-component-test";
7+
@import "superfly-css-foundation";
8+
@import "superfly-css-utilities-effects";
9+
@import "superfly-css-utilities-colors";
10+
11+
body {
12+
counter-reset: test-counter;
13+
}
14+
15+
.Site {
16+
@apply(--Site);
17+
@apply(--u-background-color-soft-white);
18+
}
19+
20+
.Site_header {
21+
@apply(--Site_header);
22+
@apply(--u-font-weight-200);
23+
@apply(--u-font-size-500);
24+
@apply(--u-flex);
25+
@apply(--u-flex-justify-around);
26+
@apply(--u-flex-align-items-center);
27+
@apply(--u-flex-align-items-center);
28+
@apply(--u-text-color-888);
29+
}
30+
31+
.Test {
32+
@apply(--Test);
33+
@apply(--u-background-color-444);
34+
}
35+
36+
37+
.Test_when {
38+
@apply(--Test_when);
39+
@apply(--u-text-color-444);
40+
}
41+
42+
.Test_then {
43+
@apply(--Test_when);
44+
@apply(--u-text-color-444);
45+
}
46+
47+
.Test_description {
48+
@apply(--u-text-color-444);
49+
}
50+
51+
.Test_markup {
52+
@apply(--u-text-color-tomato);
53+
}
54+
55+
.Test_container {
56+
@apply(--Test_container);
57+
@apply(--u-background-color-silver-grey);
58+
}
59+
60+
.Test_counter {
61+
@apply(--Test_counter);
62+
@apply(--u-text-color-tomato);
63+
}
64+
65+
66+
.Button--wut {
67+
border-radius: 4px;
68+
border: 1px solid #333;
69+
font-size: 1.5em;
70+
color: #fff;
71+
font-family: Helvetica;
72+
background-color: tomato;
73+
background-image: linear-gradient(tomato 0%, white 500%);
74+
text-shadow: 0 -1px 0 rgba(0, 0, 0, .5);
75+
box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 1px 3px rgba(0, 0, 0, .2);
76+
border: 1px solid #d7c6b3;
77+
}
78+
79+
.Button--wut:active, .Button--wut:focus, .Button--wut:hover {
80+
background-color: #e0811b;
81+
background-image: linear-gradient(white 10%, tomato 200%);
82+
color: grey;
83+
}
84+
85+
.Button:active, .Button:focus, .Button:hover {
86+
background-color: #555;
87+
color: grey;
88+
}

0 commit comments

Comments
 (0)