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

Variables: Initial pass on button variables #138

Closed
wants to merge 19 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
107 changes: 107 additions & 0 deletions scss/variables/buttons.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
( function( root, factory ) {
if ( typeof define === "function" && define.amd ) {
define( [ "./chassis" ], factory );
} else if ( typeof exports === "object" ) {
module.exports = factory( require( "./chassis" ) );
} else {
root.chassis = factory( root.chassis );
}
}( this, function( chassis ) {

chassis.uiButton = {
"ui-btn": {
name: "Generic Button Styles",
value: {
"font-weight": 500,
"margin": ".25em",
"text-transform": "none"
}
},
"ui-btn-default": {
name: "Default Button",
value: {
"color": "#383838",
"background": "#ffffff"
}
},
"ui-btn-primary": {
name: "Primary Button",
value: {
"color": "#ffffff",
"background": "#337ab7"
}
},
"ui-btn-success": {
name: "Success Button",
value: {
"color": "#ffffff",
"background": "#5cb85c"
}
},
"ui-btn-info": {
name: "Info Button",
value: {
"color": "#ffffff",
"background": "#5bc0de"
}
},
"ui-btn-warning": {
name: "Warning Button",
value: {
"color": "#ffffff",
"background": "#f0ad4e"
}
},
"ui-btn-danger": {
name: "Danger Button",
value: {
"color": "#ffffff",
"background": "#d9534f"
}
},
"ui-btn-disabled": {
name: "Disabled Button",
value: {
"opacity": ".6"
}
},
"ui-btn-lg": {
name: "Large Button",
value: {
"border-radius": "2px",
"font-size": "16px",
"line-height": "16px",
"padding": ".75em 1.25em"
}
},
"ui-btn-md": {
name: "Medium Sized Button",
value: {
"border-radius": "2px",
"font-size": "14px",
"line-height": "14px",
"padding": ".5em 1em"
}
},
"ui-btn-sm": {
name: "Small Button",
value: {
"border-radius": "2px",
"font-size": "12px",
"line-height": "12px",
"padding": ".35em .75em"
}
},
"ui-btn-xs": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line seems to have incorrect indentation

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

name: "Extra Small Button",
value: {
"border-radius": "2px",
"font-size": "12px",
"line-height": "12px",
"padding": ".2em .35em"
}
}
};

return chassis;
} ) );