2013-02-05 14:16:51 -05:00
|
|
|
// --------------------------------------------------
|
|
|
|
// Buttons
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
// Base
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
.btn {
|
|
|
|
display: inline-block;
|
|
|
|
margin: 0;
|
|
|
|
padding: 6px 12px;
|
|
|
|
font-weight: 500;
|
|
|
|
font-size: 14px;
|
|
|
|
line-height: 18px;
|
|
|
|
text-align: center;
|
|
|
|
cursor: pointer;
|
|
|
|
&: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;
|
|
|
|
}
|
2013-12-09 16:27:49 -05:00
|
|
|
.fa {
|
2013-02-05 14:16:51 -05:00
|
|
|
margin-right: 7px;
|
|
|
|
}
|
2013-05-07 14:25:41 -04:00
|
|
|
&.no-text {
|
2013-12-09 16:27:49 -05:00
|
|
|
.fa {
|
2013-05-07 14:25:41 -04:00
|
|
|
margin-right: 0;
|
|
|
|
line-height: 10px;
|
|
|
|
}
|
|
|
|
}
|
2013-02-05 14:16:51 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
// Default button
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
.btn {
|
2013-10-28 12:25:52 -04:00
|
|
|
border: none;
|
2014-02-23 20:47:44 -05:00
|
|
|
color: $primary_text_color;
|
2013-10-28 12:25:52 -04:00
|
|
|
font-weight: normal;
|
2014-02-23 20:47:44 -05:00
|
|
|
background: lighten($secondary_background_color, 73%);
|
2014-02-12 23:06:49 -05:00
|
|
|
|
2013-02-05 14:16:51 -05:00
|
|
|
&[href] {
|
|
|
|
color: $btn-default-color;
|
|
|
|
}
|
2014-02-12 23:06:49 -05:00
|
|
|
&:hover {
|
2013-10-28 13:46:59 -04:00
|
|
|
background: #aaa;
|
2013-10-28 12:25:52 -04:00
|
|
|
color: #fff;
|
2013-02-05 14:16:51 -05:00
|
|
|
}
|
|
|
|
&:active {
|
2014-02-12 23:06:49 -05:00
|
|
|
@include linear-gradient( darken(#aaa, 8%), #aaa);
|
2013-02-05 14:16:51 -05:00
|
|
|
}
|
|
|
|
&[disabled] {
|
2014-02-10 01:04:21 -05:00
|
|
|
background: $btn-default-background-color;
|
2014-02-23 20:47:44 -05:00
|
|
|
&:hover { color: $primary_text_color; }
|
2014-02-12 23:06:49 -05:00
|
|
|
cursor: not-allowed;
|
2013-02-05 14:16:51 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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 {
|
2013-10-28 12:25:52 -04:00
|
|
|
border: none;
|
2014-02-23 20:47:44 -05:00
|
|
|
color: $tertiary_text_color;
|
2013-10-28 13:46:59 -04:00
|
|
|
font-weight: normal;
|
2014-02-12 23:06:49 -05:00
|
|
|
color: #fff;
|
|
|
|
background: $btn-primary-background-color;
|
2013-10-28 12:25:52 -04:00
|
|
|
|
2013-02-05 14:16:51 -05:00
|
|
|
&[href] {
|
2014-02-23 20:47:44 -05:00
|
|
|
color: $tertiary_text_color;
|
2013-02-05 14:16:51 -05:00
|
|
|
}
|
2014-02-12 23:06:49 -05:00
|
|
|
&:hover {
|
2013-10-28 13:46:59 -04:00
|
|
|
color: #fff;
|
|
|
|
background: darken($btn-primary-background-color, 12%);
|
2013-02-05 14:16:51 -05:00
|
|
|
}
|
|
|
|
&:active {
|
2013-10-28 13:46:59 -04:00
|
|
|
@include linear-gradient(darken($btn-primary-background-color, 18%), darken($btn-primary-background-color, 12%));
|
|
|
|
color: #fff;
|
2013-02-05 14:16:51 -05:00
|
|
|
}
|
|
|
|
&[disabled] {
|
2014-02-10 01:04:21 -05:00
|
|
|
background: $btn-primary-background-color;
|
2013-02-05 14:16:51 -05:00
|
|
|
}
|
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 {
|
2014-02-23 20:47:44 -05:00
|
|
|
color: $tertiary_text_color;
|
2013-10-28 13:46:59 -04:00
|
|
|
font-weight: normal;
|
2014-02-12 23:06:49 -05:00
|
|
|
background: $btn-danger-background-color;
|
2013-02-14 02:56:13 -05:00
|
|
|
&[href] {
|
2014-02-23 20:47:44 -05:00
|
|
|
color: $tertiary_text_color;
|
2013-02-14 02:56:13 -05:00
|
|
|
}
|
2013-10-28 13:46:59 -04:00
|
|
|
&:hover{
|
|
|
|
background: $btn-danger-background-color-dark;
|
2013-02-14 02:56:13 -05:00
|
|
|
}
|
|
|
|
&:active {
|
2014-02-12 23:06:49 -05:00
|
|
|
@include linear-gradient($btn-danger-background-color-dark, $btn-danger-background-color);
|
2013-02-14 02:56:13 -05:00
|
|
|
}
|
|
|
|
&[disabled] {
|
2014-02-12 23:06:49 -05:00
|
|
|
background: $btn-danger-background-color;
|
2013-02-14 02:56:13 -05:00
|
|
|
}
|
2013-02-05 14:16:51 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
// Social buttons
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
.btn-social {
|
2014-02-23 20:47:44 -05:00
|
|
|
color: $tertiary_text_color;
|
|
|
|
text-shadow: 0 1px 0 rgba($primary_shadow_color, 0.2);
|
|
|
|
@include box-shadow(inset 0 1px 0 rgba($secondary_shadow_color, 0.1));
|
2013-02-05 14:16:51 -05:00
|
|
|
&[href] {
|
2014-02-23 20:47:44 -05:00
|
|
|
color: $tertiary_text_color;
|
2013-02-05 14:16:51 -05:00
|
|
|
}
|
|
|
|
&: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-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
|
|
|
}
|