123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247 |
- @import "variables";
- @import "mixins";
- .btn-default,
- .btn-primary,
- .btn-success,
- .btn-info,
- .btn-warning,
- .btn-danger {
- text-shadow: 0 -1px 0 rgba(0,0,0,.2);
- $shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 1px 1px rgba(0,0,0,.075);
- @include box-shadow($shadow);
-
- &:active,
- &.active {
- @include box-shadow(inset 0 3px 5px rgba(0,0,0,.125));
- }
- }
- @mixin btn-styles($btn-color: #555) {
- @include gradient-vertical($start-color: $btn-color, $end-color: darken($btn-color, 12%));
- @include reset-filter();
- background-repeat: repeat-x;
- border-color: darken($btn-color, 14%);
- &:hover,
- &:focus {
- background-color: darken($btn-color, 12%);
- background-position: 0 -15px;
- }
- &:active,
- &.active {
- background-color: darken($btn-color, 12%);
- border-color: darken($btn-color, 14%);
- }
- }
- .btn {
-
- &:active,
- &.active {
- background-image: none;
- }
- }
- .btn-default { @include btn-styles($btn-default-bg); text-shadow: 0 1px 0 #fff; border-color: #ccc; }
- .btn-primary { @include btn-styles($btn-primary-bg); }
- .btn-success { @include btn-styles($btn-success-bg); }
- .btn-info { @include btn-styles($btn-info-bg); }
- .btn-warning { @include btn-styles($btn-warning-bg); }
- .btn-danger { @include btn-styles($btn-danger-bg); }
- .thumbnail,
- .img-thumbnail {
- @include box-shadow(0 1px 2px rgba(0,0,0,.075));
- }
- .dropdown-menu > li > a:hover,
- .dropdown-menu > li > a:focus {
- @include gradient-vertical($start-color: $dropdown-link-hover-bg, $end-color: darken($dropdown-link-hover-bg, 5%));
- background-color: darken($dropdown-link-hover-bg, 5%);
- }
- .dropdown-menu > .active > a,
- .dropdown-menu > .active > a:hover,
- .dropdown-menu > .active > a:focus {
- @include gradient-vertical($start-color: $dropdown-link-active-bg, $end-color: darken($dropdown-link-active-bg, 5%));
- background-color: darken($dropdown-link-active-bg, 5%);
- }
- .navbar-default {
- @include gradient-vertical($start-color: lighten($navbar-default-bg, 10%), $end-color: $navbar-default-bg);
- @include reset-filter();
- border-radius: $navbar-border-radius;
- $shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 1px 5px rgba(0,0,0,.075);
- @include box-shadow($shadow);
- .navbar-nav > .active > a {
- @include gradient-vertical($start-color: darken($navbar-default-bg, 5%), $end-color: darken($navbar-default-bg, 2%));
- @include box-shadow(inset 0 3px 9px rgba(0,0,0,.075));
- }
- }
- .navbar-brand,
- .navbar-nav > li > a {
- text-shadow: 0 1px 0 rgba(255,255,255,.25);
- }
- .navbar-inverse {
- @include gradient-vertical($start-color: lighten($navbar-inverse-bg, 10%), $end-color: $navbar-inverse-bg);
- @include reset-filter();
- .navbar-nav > .active > a {
- @include gradient-vertical($start-color: $navbar-inverse-bg, $end-color: lighten($navbar-inverse-bg, 2.5%));
- @include box-shadow(inset 0 3px 9px rgba(0,0,0,.25));
- }
- .navbar-brand,
- .navbar-nav > li > a {
- text-shadow: 0 -1px 0 rgba(0,0,0,.25);
- }
- }
- .navbar-static-top,
- .navbar-fixed-top,
- .navbar-fixed-bottom {
- border-radius: 0;
- }
- .alert {
- text-shadow: 0 1px 0 rgba(255,255,255,.2);
- $shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 1px 2px rgba(0,0,0,.05);
- @include box-shadow($shadow);
- }
- @mixin alert-styles($color) {
- @include gradient-vertical($start-color: $color, $end-color: darken($color, 7.5%));
- border-color: darken($color, 15%);
- }
- .alert-success { @include alert-styles($alert-success-bg); }
- .alert-info { @include alert-styles($alert-info-bg); }
- .alert-warning { @include alert-styles($alert-warning-bg); }
- .alert-danger { @include alert-styles($alert-danger-bg); }
- .progress {
- @include gradient-vertical($start-color: darken($progress-bg, 4%), $end-color: $progress-bg)
- }
- // Mixin for generating new styles
- @mixin progress-bar-styles($color) {
- @include gradient-vertical($start-color: $color, $end-color: darken($color, 10%));
- }
- .progress-bar { @include progress-bar-styles($progress-bar-bg); }
- .progress-bar-success { @include progress-bar-styles($progress-bar-success-bg); }
- .progress-bar-info { @include progress-bar-styles($progress-bar-info-bg); }
- .progress-bar-warning { @include progress-bar-styles($progress-bar-warning-bg); }
- .progress-bar-danger { @include progress-bar-styles($progress-bar-danger-bg); }
- .list-group {
- border-radius: $border-radius-base;
- @include box-shadow(0 1px 2px rgba(0,0,0,.075));
- }
- .list-group-item.active,
- .list-group-item.active:hover,
- .list-group-item.active:focus {
- text-shadow: 0 -1px 0 darken($list-group-active-bg, 10%);
- @include gradient-vertical($start-color: $list-group-active-bg, $end-color: darken($list-group-active-bg, 7.5%));
- border-color: darken($list-group-active-border, 7.5%);
- }
- .panel {
- @include box-shadow(0 1px 2px rgba(0,0,0,.05));
- }
- @mixin panel-heading-styles($color) {
- @include gradient-vertical($start-color: $color, $end-color: darken($color, 5%));
- }
- .panel-default > .panel-heading { @include panel-heading-styles($panel-default-heading-bg); }
- .panel-primary > .panel-heading { @include panel-heading-styles($panel-primary-heading-bg); }
- .panel-success > .panel-heading { @include panel-heading-styles($panel-success-heading-bg); }
- .panel-info > .panel-heading { @include panel-heading-styles($panel-info-heading-bg); }
- .panel-warning > .panel-heading { @include panel-heading-styles($panel-warning-heading-bg); }
- .panel-danger > .panel-heading { @include panel-heading-styles($panel-danger-heading-bg); }
- .well {
- @include gradient-vertical($start-color: darken($well-bg, 5%), $end-color: $well-bg);
- border-color: darken($well-bg, 10%);
- $shadow: inset 0 1px 3px rgba(0,0,0,.05), 0 1px 0 rgba(255,255,255,.1);
- @include box-shadow($shadow);
- }
|