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

Commit e23fde7

Browse files
committed
Buttons: Pull in jsass-vars into button variables
1 parent ccc4bf9 commit e23fde7

File tree

4 files changed

+87
-37
lines changed

4 files changed

+87
-37
lines changed

scss/atoms/buttons/_buttons.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
* Buttons
44
* ==========================================================================
55
*/
6-
@import "variables";
7-
@import "mixins";
6+
@import
7+
"dist/chassis",
8+
"mixins";
89

910
.ui-button {
1011
&--default {

scss/atoms/buttons/_variables.scss

Lines changed: 0 additions & 34 deletions
This file was deleted.

scss/variables/buttons.js

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
( function ( root, factory ) {
2+
if ( typeof define === "function" && define.amd ) {
3+
define( [ "./chassis" ], factory );
4+
} else if (typeof exports === "object") {
5+
module.exports = factory( require("./chassis") );
6+
} else {
7+
root.chassis = factory( root.chassis );
8+
}
9+
}(this, function ( chassis ) {
10+
11+
12+
chassis.uiButton = {
13+
"ui-button-default-color": {
14+
name: "Default Button Color",
15+
value: "#383838"
16+
},
17+
"ui-button-default-background": {
18+
name: "Default Button Background",
19+
value: "#ffffff"
20+
},
21+
"ui-button-primary-color": {
22+
name: "Primary Button Color",
23+
value: "#ffffff"
24+
},
25+
"ui-button-primary-background": {
26+
name: "Primary Button Background",
27+
value: "#337ab7"
28+
},
29+
"ui-button-disabled-opacity": {
30+
name: "Disabled Button Opacity",
31+
value: .6
32+
},
33+
"ui-button-font-weight": {
34+
name: "Button Font Weight",
35+
value: 500
36+
},
37+
"ui-button-margin": {
38+
name: "Button Margin",
39+
value: ".25em"
40+
},
41+
"ui-button-text-transform": {
42+
name: "Button Text Transform",
43+
value: "uppercase"
44+
},
45+
"ui-button-large": {
46+
name: "Large Button",
47+
value: {
48+
"font-size": "20px",
49+
"line-height": "20px",
50+
"padding": ".75em"
51+
}
52+
},
53+
"ui-button-default": {
54+
name: "Default Button",
55+
value: {
56+
"font-size": "16px",
57+
"line-height": "16px",
58+
"padding": ".5em"
59+
}
60+
},
61+
"ui-button-small": {
62+
name: "Small Button",
63+
value: {
64+
"font-size": "14px",
65+
"line-height": "14px",
66+
"padding": ".2em .5em"
67+
}
68+
},
69+
"ui-button-extra-small": {
70+
name: "Extra Small Button",
71+
value: {
72+
"font-size": "12px",
73+
"line-height": "12px",
74+
"padding": ".2em .5em"
75+
}
76+
},
77+
};
78+
79+
return chassis;
80+
} ) );

tasks/options/csslint.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
module.exports = {
2+
options: {
3+
csslintrc: ".csslintrc"
4+
},
25
src: [ "dist/css/*.css" ]
3-
};
6+
};

0 commit comments

Comments
 (0)