2013-02-06 03:16:51 +08: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;
|
2014-08-06 21:31:13 +08:00
|
|
|
transition: all .25s;
|
|
|
|
|
2013-02-06 03:16:51 +08:00
|
|
|
&:active {
|
|
|
|
text-shadow: none;
|
|
|
|
}
|
2013-05-25 00:25:28 +08:00
|
|
|
&[disabled], &.disabled {
|
2013-02-06 03:16:51 +08:00
|
|
|
cursor: default;
|
|
|
|
opacity: 0.4;
|
|
|
|
}
|
2013-12-10 05:27:49 +08:00
|
|
|
.fa {
|
2013-02-06 03:16:51 +08:00
|
|
|
margin-right: 7px;
|
|
|
|
}
|
2013-05-08 02:25:41 +08:00
|
|
|
&.no-text {
|
2013-12-10 05:27:49 +08:00
|
|
|
.fa {
|
2013-05-08 02:25:41 +08:00
|
|
|
margin-right: 0;
|
|
|
|
line-height: 10px;
|
|
|
|
}
|
|
|
|
}
|
2013-02-06 03:16:51 +08:00
|
|
|
}
|
|
|
|
|
2014-07-26 05:08:54 +08:00
|
|
|
.btn.hidden {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2013-02-06 03:16:51 +08:00
|
|
|
// Default button
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
.btn {
|
2013-10-29 00:25:52 +08:00
|
|
|
border: none;
|
2014-05-06 13:50:51 +08:00
|
|
|
color: $primary;
|
2013-10-29 00:25:52 +08:00
|
|
|
font-weight: normal;
|
2014-08-06 21:31:13 +08:00
|
|
|
background: dark-light-diff($primary, $secondary, 90%, -65%);
|
2014-02-13 12:06:49 +08:00
|
|
|
|
2013-02-06 03:16:51 +08:00
|
|
|
&[href] {
|
2014-05-06 13:50:51 +08:00
|
|
|
color: $primary;
|
2013-02-06 03:16:51 +08:00
|
|
|
}
|
2014-02-13 12:06:49 +08:00
|
|
|
&:hover {
|
2014-08-06 21:31:13 +08:00
|
|
|
background: dark-light-diff($primary, $secondary, 65%, -75%);
|
2013-10-29 00:25:52 +08:00
|
|
|
color: #fff;
|
2013-02-06 03:16:51 +08:00
|
|
|
}
|
|
|
|
&:active {
|
|
|
|
}
|
|
|
|
&[disabled] {
|
2014-05-19 13:17:59 +08:00
|
|
|
background: scale-color-diff();
|
2014-05-06 13:50:51 +08:00
|
|
|
&:hover { color: scale-color($primary, $lightness: 70%); }
|
2014-02-13 12:06:49 +08:00
|
|
|
cursor: not-allowed;
|
2013-02-06 03:16:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-02-14 15:47:19 +08:00
|
|
|
// Buttons used in admin panel
|
|
|
|
// --------------------------------------------------
|
|
|
|
.btn-admin {
|
|
|
|
text-align:left;
|
|
|
|
}
|
|
|
|
|
2013-02-06 03:16:51 +08:00
|
|
|
// Primary button
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
.btn-primary {
|
2013-10-29 00:25:52 +08:00
|
|
|
border: none;
|
2014-05-06 13:50:51 +08:00
|
|
|
color: $secondary;
|
2013-10-29 01:46:59 +08:00
|
|
|
font-weight: normal;
|
2014-02-13 12:06:49 +08:00
|
|
|
color: #fff;
|
2014-05-06 13:50:51 +08:00
|
|
|
background: $tertiary;
|
2013-10-29 00:25:52 +08:00
|
|
|
|
2013-02-06 03:16:51 +08:00
|
|
|
&[href] {
|
2014-05-06 13:50:51 +08:00
|
|
|
color: $secondary;
|
2013-02-06 03:16:51 +08:00
|
|
|
}
|
2014-02-13 12:06:49 +08:00
|
|
|
&:hover {
|
2013-10-29 01:46:59 +08:00
|
|
|
color: #fff;
|
2014-05-06 13:50:51 +08:00
|
|
|
background: scale-color($tertiary, $lightness: -20%);
|
2013-02-06 03:16:51 +08:00
|
|
|
}
|
|
|
|
&:active {
|
2014-05-06 13:50:51 +08:00
|
|
|
@include linear-gradient(scale-color($tertiary, $lightness: -20%), scale-color($tertiary, $lightness: -10%));
|
2013-10-29 01:46:59 +08:00
|
|
|
color: #fff;
|
2013-02-06 03:16:51 +08:00
|
|
|
}
|
|
|
|
&[disabled] {
|
2014-05-06 13:50:51 +08:00
|
|
|
background: $tertiary;
|
2013-02-06 03:16:51 +08:00
|
|
|
}
|
2013-02-14 15:56:13 +08:00
|
|
|
}
|
2013-02-14 15:47:19 +08:00
|
|
|
|
2013-02-14 15:56:13 +08:00
|
|
|
// Danger button
|
|
|
|
// --------------------------------------------------
|
2013-02-14 15:47:19 +08:00
|
|
|
|
2013-02-14 15:56:13 +08:00
|
|
|
.btn-danger {
|
2014-05-06 13:50:51 +08:00
|
|
|
color: $secondary;
|
2013-10-29 01:46:59 +08:00
|
|
|
font-weight: normal;
|
2014-05-06 13:50:51 +08:00
|
|
|
background: $danger;
|
2013-02-14 15:56:13 +08:00
|
|
|
&[href] {
|
2014-05-06 13:50:51 +08:00
|
|
|
color: $secondary;
|
2013-02-14 15:56:13 +08:00
|
|
|
}
|
2013-10-29 01:46:59 +08:00
|
|
|
&:hover{
|
2014-05-06 13:50:51 +08:00
|
|
|
background: scale-color($danger, $lightness: -20%);
|
2013-02-14 15:56:13 +08:00
|
|
|
}
|
|
|
|
&:active {
|
2014-05-06 13:50:51 +08:00
|
|
|
@include linear-gradient(scale-color($danger, $lightness: -20%), $danger);
|
2013-02-14 15:56:13 +08:00
|
|
|
}
|
|
|
|
&[disabled] {
|
2014-05-06 13:50:51 +08:00
|
|
|
background: $danger;
|
2013-02-14 15:56:13 +08:00
|
|
|
}
|
2013-02-06 03:16:51 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// Social buttons
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
.btn-social {
|
2014-05-06 13:50:51 +08:00
|
|
|
color: $secondary;
|
|
|
|
text-shadow: 0 1px 0 rgba($primary, 0.2);
|
2014-10-11 06:02:46 +08:00
|
|
|
box-shadow: inset 0 1px 0 rgba(0,0,0, 0.1);
|
2013-02-06 03:16:51 +08:00
|
|
|
&[href] {
|
2014-05-06 13:50:51 +08:00
|
|
|
color: $secondary;
|
2013-02-06 03:16:51 +08:00
|
|
|
}
|
|
|
|
&:before {
|
|
|
|
margin-right: 7px;
|
|
|
|
font-family: zocial;
|
|
|
|
line-height: 0.9;
|
|
|
|
}
|
2014-05-22 06:19:40 +08:00
|
|
|
&.google, &.google_oauth2 {
|
2013-02-06 03:16:51 +08:00
|
|
|
background: $google;
|
|
|
|
&:before {
|
|
|
|
content: "G";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.facebook {
|
|
|
|
background: $facebook;
|
|
|
|
&:before {
|
|
|
|
content: "f";
|
|
|
|
}
|
|
|
|
}
|
2013-05-24 04:40:50 +08:00
|
|
|
&.cas {
|
|
|
|
background: $cas;
|
|
|
|
}
|
2013-02-06 03:16:51 +08:00
|
|
|
&.twitter {
|
|
|
|
background: $twitter;
|
|
|
|
&:before {
|
|
|
|
content: "T";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.yahoo {
|
|
|
|
background: $yahoo;
|
|
|
|
&:before {
|
|
|
|
content: "Y";
|
|
|
|
}
|
|
|
|
}
|
2013-02-26 12:28:32 +08:00
|
|
|
&.github {
|
|
|
|
background: $github;
|
|
|
|
&:before {
|
|
|
|
content: "g";
|
|
|
|
}
|
|
|
|
}
|
2013-02-06 03:16:51 +08: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 15:56:13 +08:00
|
|
|
}
|