2013-08-28 13:58:44 -04:00
|
|
|
@import "common/foundation/variables";
|
|
|
|
@import "common/foundation/mixins";
|
2013-02-05 14:16:51 -05:00
|
|
|
|
|
|
|
// --------------------------------------------------
|
|
|
|
// Buttons
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
// Base
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
.btn {
|
|
|
|
display: inline-block;
|
|
|
|
outline: 0;
|
|
|
|
margin: 0;
|
|
|
|
padding: 6px 12px;
|
|
|
|
font-weight: 500;
|
|
|
|
font-size: 14px;
|
|
|
|
line-height: 18px;
|
|
|
|
text-align: center;
|
|
|
|
cursor: pointer;
|
|
|
|
@include border-radius-all(4px);
|
|
|
|
&:active {
|
|
|
|
text-shadow: none;
|
|
|
|
}
|
2013-05-24 12:25:28 -04:00
|
|
|
&[disabled], &.disabled {
|
2013-02-05 14:16:51 -05:00
|
|
|
cursor: default;
|
|
|
|
opacity: 0.4;
|
|
|
|
}
|
|
|
|
.icon {
|
|
|
|
margin-right: 7px;
|
|
|
|
}
|
2013-05-07 14:25:41 -04:00
|
|
|
&.no-text {
|
|
|
|
.icon {
|
|
|
|
margin-right: 0;
|
|
|
|
line-height: 10px;
|
|
|
|
}
|
|
|
|
}
|
2013-02-05 14:16:51 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
// Default button
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
.btn {
|
|
|
|
border: 1px solid rgba($black, 0.3);
|
|
|
|
color: $btn-default-color;
|
|
|
|
@include linear-gradient($white, $btn-default-background-color);
|
|
|
|
&[href] {
|
|
|
|
color: $btn-default-color;
|
|
|
|
}
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
@include linear-gradient($white, $btn-default-background-color-hover);
|
|
|
|
@include box-shadow(none);
|
|
|
|
}
|
|
|
|
&:active {
|
|
|
|
@include linear-gradient($btn-default-background-color, $white);
|
|
|
|
@include box-shadow(inset 0 1px 3px rgba($black, 0.2));
|
|
|
|
}
|
|
|
|
&[disabled] {
|
|
|
|
@include linear-gradient($white, $btn-default-background-color);
|
|
|
|
@include box-shadow(inset 0 -1px 2px rgba($black, 0.2));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-02-14 02:47:19 -05:00
|
|
|
// Buttons used in admin panel
|
|
|
|
// --------------------------------------------------
|
|
|
|
.btn-admin {
|
|
|
|
text-align:left;
|
|
|
|
}
|
|
|
|
|
2013-02-05 14:16:51 -05:00
|
|
|
// Primary button
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
.btn-primary {
|
|
|
|
border: 1px solid $btn-primary-border-color;
|
|
|
|
color: $white;
|
|
|
|
text-shadow: 0 1px 0 rgba($black, 0.2);
|
|
|
|
font-weight: bold;
|
|
|
|
@include linear-gradient($btn-primary-background-color, $btn-primary-background-color-dark);
|
|
|
|
@include box-shadow((inset 0 1px 0 rgba($white, 0.33), inset 0 -1px 2px rgba($black, 0.2)));
|
|
|
|
&[href] {
|
|
|
|
color: $white;
|
|
|
|
}
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
@include linear-gradient($btn-primary-background-color, $btn-primary-background-color-light);
|
|
|
|
@include box-shadow(inset 0 1px 0 rgba($white, 0.33));
|
|
|
|
}
|
|
|
|
&:active {
|
|
|
|
@include linear-gradient($btn-primary-background-color-dark, $btn-primary-background-color);
|
|
|
|
@include box-shadow(inset 0 1px 3px rgba($black, 0.2));
|
|
|
|
}
|
|
|
|
&[disabled] {
|
|
|
|
text-shadow: 0 1px 0 rgba($black, 0.2);
|
|
|
|
@include linear-gradient($btn-primary-background-color, $btn-primary-background-color-dark);
|
|
|
|
@include box-shadow((inset 0 1px 0 rgba($white, 0.33), inset 0 -1px 2px rgba($black, 0.2)));
|
|
|
|
}
|
2013-02-14 02:56:13 -05:00
|
|
|
}
|
2013-02-14 02:47:19 -05:00
|
|
|
|
2013-02-14 02:56:13 -05:00
|
|
|
// Danger button
|
|
|
|
// --------------------------------------------------
|
2013-02-14 02:47:19 -05:00
|
|
|
|
2013-02-14 02:56:13 -05:00
|
|
|
.btn-danger {
|
|
|
|
border: 1px solid $btn-danger-border-color;
|
|
|
|
color: $white;
|
|
|
|
text-shadow: 0 1px 0 rgba($black, 0.2);
|
|
|
|
font-weight: bold;
|
|
|
|
@include linear-gradient($btn-danger-background-color, $btn-danger-background-color-dark);
|
|
|
|
@include box-shadow((inset 0 1px 0 rgba($white, 0.33), inset 0 -1px 2px rgba($black, 0.2)));
|
|
|
|
&[href] {
|
2013-02-14 02:47:19 -05:00
|
|
|
color: $white;
|
2013-02-14 02:56:13 -05:00
|
|
|
}
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
@include linear-gradient($btn-danger-background-color, $btn-danger-background-color-light);
|
|
|
|
@include box-shadow(inset 0 1px 0 rgba($white, 0.33));
|
|
|
|
}
|
|
|
|
&:active {
|
|
|
|
@include linear-gradient($btn-danger-background-color-dark, $btn-danger-background-color);
|
|
|
|
@include box-shadow(inset 0 1px 3px rgba($black, 0.2));
|
|
|
|
}
|
|
|
|
&[disabled] {
|
2013-02-14 02:47:19 -05:00
|
|
|
text-shadow: 0 1px 0 rgba($black, 0.2);
|
|
|
|
@include linear-gradient($btn-danger-background-color, $btn-danger-background-color-dark);
|
|
|
|
@include box-shadow((inset 0 1px 0 rgba($white, 0.33), inset 0 -1px 2px rgba($black, 0.2)));
|
2013-02-14 02:56:13 -05:00
|
|
|
}
|
2013-02-05 14:16:51 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
// Social buttons
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
.btn-social {
|
|
|
|
color: $white;
|
|
|
|
text-shadow: 0 1px 0 rgba($black, 0.2);
|
|
|
|
@include box-shadow(inset 0 1px 0 rgba($white, 0.1));
|
|
|
|
&[href] {
|
|
|
|
color: $white;
|
|
|
|
}
|
|
|
|
&:before {
|
|
|
|
margin-right: 7px;
|
|
|
|
font-family: zocial;
|
|
|
|
line-height: 0.9;
|
|
|
|
}
|
|
|
|
&.google {
|
|
|
|
background: $google;
|
|
|
|
&:before {
|
|
|
|
content: "G";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.facebook {
|
|
|
|
background: $facebook;
|
|
|
|
&:before {
|
|
|
|
content: "f";
|
|
|
|
}
|
|
|
|
}
|
2013-05-23 16:40:50 -04:00
|
|
|
&.cas {
|
|
|
|
background: $cas;
|
|
|
|
}
|
2013-02-05 14:16:51 -05:00
|
|
|
&.twitter {
|
|
|
|
background: $twitter;
|
|
|
|
&:before {
|
|
|
|
content: "T";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.yahoo {
|
|
|
|
background: $yahoo;
|
|
|
|
&:before {
|
|
|
|
content: "Y";
|
|
|
|
}
|
|
|
|
}
|
2013-02-25 23:28:32 -05:00
|
|
|
&.github {
|
|
|
|
background: $github;
|
|
|
|
&:before {
|
|
|
|
content: "g";
|
|
|
|
}
|
|
|
|
}
|
2013-02-28 19:32:40 -05:00
|
|
|
&.persona {
|
|
|
|
background: $persona;
|
|
|
|
&:before {
|
|
|
|
content: "]";
|
|
|
|
}
|
|
|
|
}
|
2013-02-05 14:16:51 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
// Button Sizes
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
// Small
|
|
|
|
|
|
|
|
.btn-small {
|
|
|
|
padding: 3px 6px;
|
|
|
|
font-size: 12px;
|
|
|
|
line-height: 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Large
|
|
|
|
|
|
|
|
.btn-large {
|
|
|
|
padding: 9px 18px;
|
|
|
|
font-size: 16px;
|
|
|
|
line-height: 20px;
|
2013-02-14 02:56:13 -05:00
|
|
|
}
|