2013-02-05 14:16:51 -05:00
|
|
|
// --------------------------------------------------
|
|
|
|
// Buttons
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
// Base
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
2015-07-21 01:46:33 -04:00
|
|
|
|
2013-02-05 14:16:51 -05:00
|
|
|
.btn {
|
|
|
|
display: inline-block;
|
|
|
|
margin: 0;
|
|
|
|
padding: 6px 12px;
|
|
|
|
font-weight: 500;
|
2014-12-15 22:12:56 -05:00
|
|
|
font-size: 1em;
|
2013-02-05 14:16:51 -05:00
|
|
|
line-height: 18px;
|
|
|
|
text-align: center;
|
|
|
|
cursor: pointer;
|
2014-08-06 09:31:13 -04:00
|
|
|
transition: all .25s;
|
|
|
|
|
2013-02-05 14:16:51 -05:00
|
|
|
&: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
|
|
|
}
|
|
|
|
|
2014-07-25 17:08:54 -04:00
|
|
|
.btn.hidden {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2013-02-05 14:16:51 -05:00
|
|
|
// Default button
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
.btn {
|
2013-10-28 12:25:52 -04:00
|
|
|
border: none;
|
2014-05-06 01:50:51 -04:00
|
|
|
color: $primary;
|
2013-10-28 12:25:52 -04:00
|
|
|
font-weight: normal;
|
2014-08-06 09:31:13 -04:00
|
|
|
background: dark-light-diff($primary, $secondary, 90%, -65%);
|
2014-02-12 23:06:49 -05:00
|
|
|
|
2013-02-05 14:16:51 -05:00
|
|
|
&[href] {
|
2014-05-06 01:50:51 -04:00
|
|
|
color: $primary;
|
2013-02-05 14:16:51 -05:00
|
|
|
}
|
2014-02-12 23:06:49 -05:00
|
|
|
&:hover {
|
2014-08-06 09:31:13 -04:00
|
|
|
background: dark-light-diff($primary, $secondary, 65%, -75%);
|
2013-10-28 12:25:52 -04:00
|
|
|
color: #fff;
|
2013-02-05 14:16:51 -05:00
|
|
|
}
|
|
|
|
&[disabled] {
|
2015-06-14 22:59:49 -04:00
|
|
|
background: dark-light-diff($primary, $secondary, 90%, -60%);
|
2014-05-06 01:50:51 -04:00
|
|
|
&:hover { color: scale-color($primary, $lightness: 70%); }
|
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-05-06 01:50:51 -04:00
|
|
|
color: $secondary;
|
2013-10-28 13:46:59 -04:00
|
|
|
font-weight: normal;
|
2014-02-12 23:06:49 -05:00
|
|
|
color: #fff;
|
2014-05-06 01:50:51 -04:00
|
|
|
background: $tertiary;
|
2013-10-28 12:25:52 -04:00
|
|
|
|
2013-02-05 14:16:51 -05:00
|
|
|
&[href] {
|
2014-05-06 01:50:51 -04:00
|
|
|
color: $secondary;
|
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;
|
2014-05-06 01:50:51 -04:00
|
|
|
background: scale-color($tertiary, $lightness: -20%);
|
2013-02-05 14:16:51 -05:00
|
|
|
}
|
|
|
|
&:active {
|
2014-05-06 01:50:51 -04:00
|
|
|
@include linear-gradient(scale-color($tertiary, $lightness: -20%), scale-color($tertiary, $lightness: -10%));
|
2013-10-28 13:46:59 -04:00
|
|
|
color: #fff;
|
2013-02-05 14:16:51 -05:00
|
|
|
}
|
|
|
|
&[disabled] {
|
2014-05-06 01:50:51 -04:00
|
|
|
background: $tertiary;
|
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-05-06 01:50:51 -04:00
|
|
|
color: $secondary;
|
2013-10-28 13:46:59 -04:00
|
|
|
font-weight: normal;
|
2014-05-06 01:50:51 -04:00
|
|
|
background: $danger;
|
2013-02-14 02:56:13 -05:00
|
|
|
&[href] {
|
2014-05-06 01:50:51 -04:00
|
|
|
color: $secondary;
|
2013-02-14 02:56:13 -05:00
|
|
|
}
|
2013-10-28 13:46:59 -04:00
|
|
|
&:hover{
|
2014-05-06 01:50:51 -04:00
|
|
|
background: scale-color($danger, $lightness: -20%);
|
2013-02-14 02:56:13 -05:00
|
|
|
}
|
|
|
|
&:active {
|
2014-05-06 01:50:51 -04:00
|
|
|
@include linear-gradient(scale-color($danger, $lightness: -20%), $danger);
|
2013-02-14 02:56:13 -05:00
|
|
|
}
|
|
|
|
&[disabled] {
|
2014-05-06 01:50:51 -04:00
|
|
|
background: $danger;
|
2013-02-14 02:56:13 -05:00
|
|
|
}
|
2013-02-05 14:16:51 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
// Social buttons
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
.btn-social {
|
2014-05-06 01:50:51 -04:00
|
|
|
color: $secondary;
|
|
|
|
text-shadow: 0 1px 0 rgba($primary, 0.2);
|
2014-10-10 18:02:46 -04:00
|
|
|
box-shadow: inset 0 1px 0 rgba(0,0,0, 0.1);
|
2013-02-05 14:16:51 -05:00
|
|
|
&[href] {
|
2014-05-06 01:50:51 -04:00
|
|
|
color: $secondary;
|
2013-02-05 14:16:51 -05:00
|
|
|
}
|
|
|
|
&:before {
|
2015-07-21 01:46:33 -04:00
|
|
|
margin-right: 9px;
|
|
|
|
font-family: FontAwesome;
|
|
|
|
line-height: 1.6em;
|
|
|
|
font-size: 1.3em;
|
2013-02-05 14:16:51 -05:00
|
|
|
}
|
2014-05-21 18:19:40 -04:00
|
|
|
&.google, &.google_oauth2 {
|
2013-02-05 14:16:51 -05:00
|
|
|
background: $google;
|
|
|
|
&:before {
|
2015-07-21 01:46:33 -04:00
|
|
|
content: $fa-var-google;
|
2013-02-05 14:16:51 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
&.facebook {
|
|
|
|
background: $facebook;
|
|
|
|
&:before {
|
2015-07-21 01:46:33 -04:00
|
|
|
content: $fa-var-facebook;
|
2013-02-05 14:16:51 -05:00
|
|
|
}
|
|
|
|
}
|
2013-05-23 16:40:50 -04:00
|
|
|
&.cas {
|
|
|
|
background: $cas;
|
|
|
|
}
|
2013-02-05 14:16:51 -05:00
|
|
|
&.twitter {
|
|
|
|
background: $twitter;
|
|
|
|
&:before {
|
2015-07-21 01:46:33 -04:00
|
|
|
content: $fa-var-twitter;
|
2013-02-05 14:16:51 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
&.yahoo {
|
|
|
|
background: $yahoo;
|
|
|
|
&:before {
|
2015-07-21 01:46:33 -04:00
|
|
|
content: $fa-var-yahoo;
|
2013-02-05 14:16:51 -05:00
|
|
|
}
|
|
|
|
}
|
2013-02-25 23:28:32 -05:00
|
|
|
&.github {
|
|
|
|
background: $github;
|
|
|
|
&:before {
|
2015-07-21 01:46:33 -04:00
|
|
|
content: $fa-var-github;
|
2013-02-25 23:28:32 -05:00
|
|
|
}
|
|
|
|
}
|
2013-02-05 14:16:51 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
// Button Sizes
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
// Small
|
|
|
|
|
|
|
|
.btn-small {
|
|
|
|
padding: 3px 6px;
|
2014-12-15 22:12:56 -05:00
|
|
|
font-size: 0.857em;
|
2013-02-05 14:16:51 -05:00
|
|
|
line-height: 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Large
|
|
|
|
|
|
|
|
.btn-large {
|
|
|
|
padding: 9px 18px;
|
2014-12-15 22:12:56 -05:00
|
|
|
font-size: 1.143em;
|
2013-02-05 14:16:51 -05:00
|
|
|
line-height: 20px;
|
2013-02-14 02:56:13 -05:00
|
|
|
}
|