mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-20 20:42:44 -05:00
184 lines
3.2 KiB
SCSS
184 lines
3.2 KiB
SCSS
@import "common/foundation/variables";
|
|
@import "common/foundation/mixins";
|
|
|
|
// --------------------------------------------------
|
|
// 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;
|
|
}
|
|
&[disabled], &.disabled {
|
|
cursor: default;
|
|
opacity: 0.4;
|
|
}
|
|
.fa {
|
|
margin-right: 7px;
|
|
}
|
|
&.no-text {
|
|
.fa {
|
|
margin-right: 0;
|
|
line-height: 10px;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Default button
|
|
// --------------------------------------------------
|
|
|
|
.btn {
|
|
border: none;
|
|
color: $primary;
|
|
font-weight: normal;
|
|
background: lighten($primary_lighter, 10%);
|
|
|
|
&[href] {
|
|
color: $btn-default-color;
|
|
}
|
|
&:hover {
|
|
background: #aaa;
|
|
color: #fff;
|
|
}
|
|
&:active {
|
|
@include linear-gradient( darken(#aaa, 8%), #aaa);
|
|
}
|
|
&[disabled] {
|
|
background: $btn-default-background-color;
|
|
&:hover { color: $primary; }
|
|
cursor: not-allowed;
|
|
}
|
|
}
|
|
|
|
// Buttons used in admin panel
|
|
// --------------------------------------------------
|
|
.btn-admin {
|
|
text-align:left;
|
|
}
|
|
|
|
// Primary button
|
|
// --------------------------------------------------
|
|
|
|
.btn-primary {
|
|
border: none;
|
|
color: $secondary;
|
|
font-weight: normal;
|
|
color: #fff;
|
|
background: $btn-primary-background-color;
|
|
|
|
&[href] {
|
|
color: $secondary;
|
|
}
|
|
&:hover {
|
|
color: #fff;
|
|
background: darken($btn-primary-background-color, 12%);
|
|
}
|
|
&:active {
|
|
@include linear-gradient(darken($btn-primary-background-color, 18%), darken($btn-primary-background-color, 12%));
|
|
color: #fff;
|
|
}
|
|
&[disabled] {
|
|
background: $btn-primary-background-color;
|
|
}
|
|
}
|
|
|
|
// Danger button
|
|
// --------------------------------------------------
|
|
|
|
.btn-danger {
|
|
color: $secondary;
|
|
font-weight: normal;
|
|
background: $btn-danger-background-color;
|
|
&[href] {
|
|
color: $secondary;
|
|
}
|
|
&:hover{
|
|
background: $btn-danger-background-color-dark;
|
|
}
|
|
&:active {
|
|
@include linear-gradient($btn-danger-background-color-dark, $btn-danger-background-color);
|
|
}
|
|
&[disabled] {
|
|
background: $btn-danger-background-color;
|
|
}
|
|
}
|
|
|
|
// Social buttons
|
|
// --------------------------------------------------
|
|
|
|
.btn-social {
|
|
color: $secondary;
|
|
text-shadow: 0 1px 0 rgba($primary, 0.2);
|
|
@include box-shadow(inset 0 1px 0 rgba($secondary, 0.1));
|
|
&[href] {
|
|
color: $secondary;
|
|
}
|
|
&:before {
|
|
margin-right: 7px;
|
|
font-family: zocial;
|
|
line-height: 0.9;
|
|
}
|
|
&.google {
|
|
background: $google;
|
|
&:before {
|
|
content: "G";
|
|
}
|
|
}
|
|
&.facebook {
|
|
background: $facebook;
|
|
&:before {
|
|
content: "f";
|
|
}
|
|
}
|
|
&.cas {
|
|
background: $cas;
|
|
}
|
|
&.twitter {
|
|
background: $twitter;
|
|
&:before {
|
|
content: "T";
|
|
}
|
|
}
|
|
&.yahoo {
|
|
background: $yahoo;
|
|
&:before {
|
|
content: "Y";
|
|
}
|
|
}
|
|
&.github {
|
|
background: $github;
|
|
&:before {
|
|
content: "g";
|
|
}
|
|
}
|
|
}
|
|
|
|
// 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;
|
|
}
|