This repository was archived by the owner on Dec 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 67
Variables: Initial pass on button variables #138
Closed
Closed
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
dbfc7b9
Variables: Initial pass on button variables
sfrisk e5caf9e
Buttons: Fixing spacing issue
sfrisk f6f2b11
Buttons: Base Pass on button sizes and button colors.
sfrisk 55fbd8c
Buttons: Fix typo on h2
sfrisk d13b067
Linting: Fixed linting and linting errors
sfrisk c319292
Merge branch '96-buttons-take-two' of https://github.com/sfrisk/css-c…
sfrisk 210edcb
Buttons: Playing around with some spacing and variables
sfrisk 37a638c
Linting: fixed error with js linting
sfrisk 81e6191
Colors: Initial pass on updated palette.
sfrisk 39c0b5b
Merge branch 'palette' into 96-buttons-take-two
sfrisk 4b2f1e9
Buttons: Adding Palette for example
sfrisk b6e7feb
Buttons: colors updated, styling updated, added disabled styles
sfrisk f84475b
Buttons: Playing around with shadows
sfrisk b58b5f2
Buttons: Demos for buttons as links & input
sfrisk c7acbce
Buttons: Adding Button Bar, Block Buttons
sfrisk 63024ce
Buttons: Making all buttons not rely on cascading styling
sfrisk edad94c
Buttons: Fixing spacing
sfrisk dc506a9
Buttons: Color and shadow update
sfrisk 2bfa912
Buttons: disabled cursor is not-allowed
sfrisk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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": { | ||
name: "Extra Small Button", | ||
value: { | ||
"border-radius": "2px", | ||
"font-size": "12px", | ||
"line-height": "12px", | ||
"padding": ".2em .35em" | ||
} | ||
} | ||
}; | ||
|
||
return chassis; | ||
} ) ); |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.