2010-04-11 09:24:24 +00:00
|
|
|
@import compass/utilities/general/float
|
|
|
|
@import blueprint/buttons
|
2009-04-03 19:11:44 +00:00
|
|
|
|
|
|
|
//
|
|
|
|
Use the following HTML code to place the buttons on your site:
|
|
|
|
|
|
|
|
<button type="submit" class="button positive">
|
|
|
|
<img src="css/blueprint/plugins/buttons/icons/tick.png" alt=""/> Save
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<a class="button" href="/password/reset/">
|
|
|
|
<img src="css/blueprint/plugins/buttons/icons/key.png" alt=""/> Change Password
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<a href="#" class="button negative">
|
|
|
|
<img src="css/blueprint/plugins/buttons/icons/cross.png" alt=""/> Cancel
|
|
|
|
</a>
|
|
|
|
|
|
|
|
a.button
|
|
|
|
// you can pass "left" or "right" to +anchor-button to float it in that direction
|
|
|
|
// or you can pass no argument to leave it inline-block (cross browser safe!) within
|
|
|
|
// the flow of your page.
|
2010-05-09 01:18:47 +00:00
|
|
|
+anchor-button(left)
|
2009-04-03 19:11:44 +00:00
|
|
|
// All the button color mixins take 4 optional arguments:
|
|
|
|
// font color, background color, border color, border highlight color
|
2009-11-21 21:19:18 +00:00
|
|
|
// the first three default to constants set in blueprint/buttons.sass
|
2009-04-03 19:11:44 +00:00
|
|
|
// the last one defaults to a shade lighter than the border color.
|
|
|
|
+button-colors
|
|
|
|
+button-hover-colors
|
|
|
|
+button-active-colors
|
|
|
|
|
|
|
|
button
|
|
|
|
// The +button-button mixin is just like the +anchor-button mixin, but for <button> elements.
|
2010-05-09 01:18:47 +00:00
|
|
|
+button-button(left)
|
2009-04-03 19:11:44 +00:00
|
|
|
+button-colors
|
|
|
|
+button-hover-colors
|
|
|
|
+button-active-colors
|
|
|
|
|
|
|
|
// We can change the colors for buttons of certain classes, etc.
|
|
|
|
a.positive, button.positive
|
2009-09-29 05:34:41 +00:00
|
|
|
color: #529214
|
2009-04-03 19:11:44 +00:00
|
|
|
+button-hover-colors(#529214, #E6EFC2, #C6D880)
|
|
|
|
+button-active-colors(#FFF, #529214, #529214)
|
|
|
|
|
|
|
|
a.negative, button.negative
|
2009-09-29 05:34:41 +00:00
|
|
|
color: #D12F19
|
2009-04-03 19:11:44 +00:00
|
|
|
+button-hover-colors(#D12F19, #FBE3E4, #FBC2C4)
|
|
|
|
+button-active-colors(#FFF, #D12F19, #D12F19)
|
|
|
|
|