Commit b8f6d67b authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Restyle buttons

parent 0be06215
.btn { .btn {
display: inline-block;
padding: 6px 12px;
margin-bottom: 0;
font-size: 13px;
line-height: $baseLineHeight;
text-align: center;
vertical-align: middle;
cursor: pointer;
border: 1px solid #BBB;
color: $style_color;
@include border-radius($baseBorderRadius);
@include box-shadow(inset 0 1px 0 rgba(255,255,255,.2));
@include linear-gradient(#f1f1f1, #e1e1e1); @include linear-gradient(#f1f1f1, #e1e1e1);
text-shadow: 0 1px 1px #FFF; text-shadow: 0 1px 1px #FFF;
border-color: #BBB; text-decoration: none;
&.hover,
&:hover { &:hover {
color: $style_color;
background: #f1f1f1; background: #f1f1f1;
@include linear-gradient(#fAfAfA, #f1f1f1);
border-color: #AAA; border-color: #AAA;
color: #333; text-decoration: none;
@include linear-gradient(#fAfAfA, #f1f1f1);
} }
&.btn-primary { &.active,
background: #2a79A3; &:active {
@include linear-gradient(#47A7b7, #2585b5); background-image: none;
border-color: #2A79A3; outline: 0;
color: #fff; @include box-shadow(inset 0 2px 4px rgba(0,0,0,.15));
text-shadow: 0 1px 1px #268;
&:hover {
background: $primary_color;
color: #fff;
} }
&.disabled { &.disabled,
color: #fff; &[disabled] {
background: $primary_color; cursor: default;
} background-image: none;
@include opacity(65);
@include box-shadow(none);
} }
&.btn-info { &.btn-primary {
background: #5aB9C3; color: #FFF;
border-color: $primary_color; border-color: #189;
color: #fff; text-shadow: 0 1px 1px #189;
text-shadow: 0 1px 1px #268; @include linear-gradient(#4AC, #289);
&:hover {
background: $primary_color;
color: #fff;
}
&.disabled { &.hover,
color: #fff; &:hover,
background: $primary_color; &.disabled,
&[disabled] {
color: #FFF;
background: #389;
} }
} }
&.btn-success { &.btn-success {
&:hover { color: #FFF;
background: #51a351; border-color: #1A1;
text-shadow: 0 1px 1px #FFF;
text-shadow: 0 1px 1px #181;
@include linear-gradient(#62C452, #51a351);
&.hover,
&:hover,
&.disabled,
&[disabled] {
color: #FFF;
background: #2A2;
}
} }
&.disabled { &.btn-danger {
color: #fff; color: #FFF;
background: #2b2; text-shadow: 0 1px 1px #811;
border-color: #BD362F;
@include linear-gradient(#EE5F5B, #BD362F);
&.hover,
&:hover,
&.disabled,
&[disabled] {
color: #FFF;
background: #A22;
} }
} }
&.btn-new {
@extend .btn-success;
}
&.btn-create { &.btn-create {
@extend .wide; @extend .wide;
@extend .btn-success; @extend .btn-success;
...@@ -67,12 +104,6 @@ ...@@ -67,12 +104,6 @@
&.btn-close, &.btn-close,
&.btn-remove { &.btn-remove {
@extend .btn-danger; @extend .btn-danger;
border-color: #BD362F;
&:hover {
color: #fff;
background: #EE4E49;
}
} }
&.btn-cancel { &.btn-cancel {
...@@ -84,13 +115,9 @@ ...@@ -84,13 +115,9 @@
padding-right: 20px; padding-right: 20px;
} }
&.small { &.btn-small {
@extend .btn-small; padding: 2px 10px;
} font-size: 12px;
&.active {
border-color: #aaa;
background-color: #ccc;
} }
&.btn-tiny { &.btn-tiny {
...@@ -104,9 +131,4 @@ ...@@ -104,9 +131,4 @@
margin-right: 7px; margin-right: 7px;
float: left; float: left;
} }
&.padded {
margin-right: 3px;
padding: 4px 10px 4px;
}
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment