|
|
e8ec7a |
|
|
|
e8ec7a |
//
|
|
|
e8ec7a |
// Load core variables and mixins
|
|
|
e8ec7a |
// --------------------------------------------------
|
|
|
e8ec7a |
|
|
|
e8ec7a |
@import "bootstrap/variables";
|
|
|
e8ec7a |
@import "bootstrap/mixins";
|
|
|
e8ec7a |
|
|
|
e8ec7a |
|
|
|
e8ec7a |
|
|
|
e8ec7a |
//
|
|
|
e8ec7a |
// Buttons
|
|
|
e8ec7a |
// --------------------------------------------------
|
|
|
e8ec7a |
|
|
|
e8ec7a |
// Common styles
|
|
|
e8ec7a |
.btn-default,
|
|
|
e8ec7a |
.btn-primary,
|
|
|
e8ec7a |
.btn-success,
|
|
|
e8ec7a |
.btn-info,
|
|
|
e8ec7a |
.btn-warning,
|
|
|
e8ec7a |
.btn-danger {
|
|
|
e8ec7a |
text-shadow: 0 -1px 0 rgba(0,0,0,.2);
|
|
|
e8ec7a |
$shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 1px 1px rgba(0,0,0,.075);
|
|
|
e8ec7a |
@include box-shadow($shadow);
|
|
|
e8ec7a |
|
|
|
e8ec7a |
// Reset the shadow
|
|
|
e8ec7a |
&:active,
|
|
|
e8ec7a |
&.active {
|
|
|
e8ec7a |
@include box-shadow(inset 0 3px 5px rgba(0,0,0,.125));
|
|
|
e8ec7a |
}
|
|
|
e8ec7a |
}
|
|
|
e8ec7a |
|
|
|
e8ec7a |
// Mixin for generating new styles
|
|
|
e8ec7a |
@mixin btn-styles($btn-color: #555) {
|
|
|
e8ec7a |
@include gradient-vertical($start-color: $btn-color, $end-color: darken($btn-color, 10%));
|
|
|
e8ec7a |
border-color: darken($btn-color, 12%);
|
|
|
e8ec7a |
|
|
|
e8ec7a |
&:active,
|
|
|
e8ec7a |
&.active {
|
|
|
e8ec7a |
background-color: darken($btn-color, 10%);
|
|
|
e8ec7a |
border-color: darken($btn-color, 12%);
|
|
|
e8ec7a |
}
|
|
|
e8ec7a |
}
|
|
|
e8ec7a |
|
|
|
e8ec7a |
// Common styles
|
|
|
e8ec7a |
.btn {
|
|
|
e8ec7a |
// Remove the gradient for the pressed/active state
|
|
|
e8ec7a |
&:active,
|
|
|
e8ec7a |
&.active {
|
|
|
e8ec7a |
background-image: none;
|
|
|
e8ec7a |
}
|
|
|
e8ec7a |
}
|
|
|
e8ec7a |
|
|
|
e8ec7a |
// Apply the mixin to the buttons
|
|
|
e8ec7a |
.btn-default { @include btn-styles($btn-default-bg); text-shadow: 0 1px 0 #fff; border-color: #ccc; }
|
|
|
e8ec7a |
.btn-primary { @include btn-styles($btn-primary-bg); }
|
|
|
e8ec7a |
.btn-success { @include btn-styles($btn-success-bg); }
|
|
|
e8ec7a |
.btn-warning { @include btn-styles($btn-warning-bg); }
|
|
|
e8ec7a |
.btn-danger { @include btn-styles($btn-danger-bg); }
|
|
|
e8ec7a |
.btn-info { @include btn-styles($btn-info-bg); }
|
|
|
e8ec7a |
|
|
|
e8ec7a |
|
|
|
e8ec7a |
|
|
|
e8ec7a |
//
|
|
|
e8ec7a |
// Images
|
|
|
e8ec7a |
// --------------------------------------------------
|
|
|
e8ec7a |
|
|
|
e8ec7a |
.thumbnail,
|
|
|
e8ec7a |
.img-thumbnail {
|
|
|
e8ec7a |
@include box-shadow(0 1px 2px rgba(0,0,0,.075));
|
|
|
e8ec7a |
}
|
|
|
e8ec7a |
|
|
|
e8ec7a |
|
|
|
e8ec7a |
|
|
|
e8ec7a |
//
|
|
|
e8ec7a |
// Dropdowns
|
|
|
e8ec7a |
// --------------------------------------------------
|
|
|
e8ec7a |
|
|
|
e8ec7a |
.dropdown-menu > li > a:hover,
|
|
|
e8ec7a |
.dropdown-menu > li > a:focus,
|
|
|
e8ec7a |
.dropdown-menu > .active > a,
|
|
|
e8ec7a |
.dropdown-menu > .active > a:hover,
|
|
|
e8ec7a |
.dropdown-menu > .active > a:focus {
|
|
|
e8ec7a |
@include gradient-vertical($start-color: $dropdown-link-hover-bg, $end-color: darken($dropdown-link-hover-bg, 5%));
|
|
|
e8ec7a |
background-color: darken($dropdown-link-hover-bg, 5%);
|
|
|
e8ec7a |
}
|
|
|
e8ec7a |
|
|
|
e8ec7a |
|
|
|
e8ec7a |
|
|
|
e8ec7a |
//
|
|
|
e8ec7a |
// Navbar
|
|
|
e8ec7a |
// --------------------------------------------------
|
|
|
e8ec7a |
|
|
|
e8ec7a |
// Basic navbar
|
|
|
e8ec7a |
.navbar {
|
|
|
e8ec7a |
@include gradient-vertical($start-color: lighten($navbar-default-bg, 10%), $end-color: $navbar-default-bg);
|
|
|
e8ec7a |
border-radius: $navbar-border-radius;
|
|
|
e8ec7a |
$shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 1px 5px rgba(0,0,0,.075);
|
|
|
e8ec7a |
@include box-shadow($shadow);
|
|
|
e8ec7a |
|
|
|
e8ec7a |
.navbar-nav > .active > a {
|
|
|
e8ec7a |
background-color: $navbar-default-bg;
|
|
|
e8ec7a |
}
|
|
|
e8ec7a |
}
|
|
|
e8ec7a |
.navbar-brand,
|
|
|
e8ec7a |
.navbar-nav > li > a {
|
|
|
e8ec7a |
text-shadow: 0 1px 0 rgba(255,255,255,.25);
|
|
|
e8ec7a |
}
|
|
|
e8ec7a |
|
|
|
e8ec7a |
// Inverted navbar
|
|
|
e8ec7a |
.navbar-inverse {
|
|
|
e8ec7a |
@include gradient-vertical($start-color: lighten($navbar-inverse-bg, 10%), $end-color: $navbar-inverse-bg);
|
|
|
e8ec7a |
|
|
|
e8ec7a |
.navbar-nav > .active > a {
|
|
|
e8ec7a |
background-color: $navbar-inverse-bg;
|
|
|
e8ec7a |
}
|
|
|
e8ec7a |
|
|
|
e8ec7a |
.navbar-brand,
|
|
|
e8ec7a |
.navbar-nav > li > a {
|
|
|
e8ec7a |
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
|
|
|
e8ec7a |
}
|
|
|
e8ec7a |
}
|
|
|
e8ec7a |
|
|
|
e8ec7a |
// Undo rounded corners in static and fixed navbars
|
|
|
e8ec7a |
.navbar-static-top,
|
|
|
e8ec7a |
.navbar-fixed-top,
|
|
|
e8ec7a |
.navbar-fixed-bottom {
|
|
|
e8ec7a |
border-radius: 0;
|
|
|
e8ec7a |
}
|
|
|
e8ec7a |
|
|
|
e8ec7a |
|
|
|
e8ec7a |
|
|
|
e8ec7a |
//
|
|
|
e8ec7a |
// Alerts
|
|
|
e8ec7a |
// --------------------------------------------------
|
|
|
e8ec7a |
|
|
|
e8ec7a |
// Common styles
|
|
|
e8ec7a |
.alert {
|
|
|
e8ec7a |
text-shadow: 0 1px 0 rgba(255,255,255,.2);
|
|
|
e8ec7a |
$shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 1px 2px rgba(0,0,0,.05);
|
|
|
e8ec7a |
@include box-shadow($shadow);
|
|
|
e8ec7a |
}
|
|
|
e8ec7a |
|
|
|
e8ec7a |
// Mixin for generating new styles
|
|
|
e8ec7a |
@mixin alert-styles($color) {
|
|
|
e8ec7a |
@include gradient-vertical($start-color: $color, $end-color: darken($color, 7.5%));
|
|
|
e8ec7a |
border-color: darken($color, 15%);
|
|
|
e8ec7a |
}
|
|
|
e8ec7a |
|
|
|
e8ec7a |
// Apply the mixin to the alerts
|
|
|
e8ec7a |
.alert-success { @include alert-styles($alert-success-bg); }
|
|
|
e8ec7a |
.alert-info { @include alert-styles($alert-info-bg); }
|
|
|
e8ec7a |
.alert-warning { @include alert-styles($alert-warning-bg); }
|
|
|
e8ec7a |
.alert-danger { @include alert-styles($alert-danger-bg); }
|
|
|
e8ec7a |
|
|
|
e8ec7a |
|
|
|
e8ec7a |
|
|
|
e8ec7a |
//
|
|
|
e8ec7a |
// Progress bars
|
|
|
e8ec7a |
// --------------------------------------------------
|
|
|
e8ec7a |
|
|
|
e8ec7a |
// Give the progress background some depth
|
|
|
e8ec7a |
.progress {
|
|
|
e8ec7a |
@include gradient-vertical($start-color: darken($progress-bg, 4%), $end-color: $progress-bg)
|
|
|
e8ec7a |
}
|
|
|
e8ec7a |
|
|
|
e8ec7a |
// Mixin for generating new styles
|
|
|
e8ec7a |
@mixin progress-bar-styles($color) {
|
|
|
e8ec7a |
@include gradient-vertical($start-color: $color, $end-color: darken($color, 10%));
|
|
|
e8ec7a |
}
|
|
|
e8ec7a |
|
|
|
e8ec7a |
// Apply the mixin to the progress bars
|
|
|
e8ec7a |
.progress-bar { @include progress-bar-styles($progress-bar-bg); }
|
|
|
e8ec7a |
.progress-bar-success { @include progress-bar-styles($progress-bar-success-bg); }
|
|
|
e8ec7a |
.progress-bar-info { @include progress-bar-styles($progress-bar-info-bg); }
|
|
|
e8ec7a |
.progress-bar-warning { @include progress-bar-styles($progress-bar-warning-bg); }
|
|
|
e8ec7a |
.progress-bar-danger { @include progress-bar-styles($progress-bar-danger-bg); }
|
|
|
e8ec7a |
|
|
|
e8ec7a |
|
|
|
e8ec7a |
|
|
|
e8ec7a |
//
|
|
|
e8ec7a |
// List groups
|
|
|
e8ec7a |
// --------------------------------------------------
|
|
|
e8ec7a |
|
|
|
e8ec7a |
.list-group {
|
|
|
e8ec7a |
border-radius: $border-radius-base;
|
|
|
e8ec7a |
@include box-shadow(0 1px 2px rgba(0,0,0,.075));
|
|
|
e8ec7a |
}
|
|
|
e8ec7a |
.list-group-item.active,
|
|
|
e8ec7a |
.list-group-item.active:hover,
|
|
|
e8ec7a |
.list-group-item.active:focus {
|
|
|
e8ec7a |
text-shadow: 0 -1px 0 darken($list-group-active-bg, 10%);
|
|
|
e8ec7a |
@include gradient-vertical($start-color: $list-group-active-bg, $end-color: darken($list-group-active-bg, 7.5%));
|
|
|
e8ec7a |
border-color: darken($list-group-active-border, 7.5%);
|
|
|
e8ec7a |
}
|
|
|
e8ec7a |
|
|
|
e8ec7a |
|
|
|
e8ec7a |
|
|
|
e8ec7a |
//
|
|
|
e8ec7a |
// Panels
|
|
|
e8ec7a |
// --------------------------------------------------
|
|
|
e8ec7a |
|
|
|
e8ec7a |
// Common styles
|
|
|
e8ec7a |
.panel {
|
|
|
e8ec7a |
@include box-shadow(0 1px 2px rgba(0,0,0,.05));
|
|
|
e8ec7a |
}
|
|
|
e8ec7a |
|
|
|
e8ec7a |
// Mixin for generating new styles
|
|
|
e8ec7a |
@mixin panel-heading-styles($color) {
|
|
|
e8ec7a |
@include gradient-vertical($start-color: $color, $end-color: darken($color, 5%));
|
|
|
e8ec7a |
}
|
|
|
e8ec7a |
|
|
|
e8ec7a |
// Apply the mixin to the panel headings only
|
|
|
e8ec7a |
.panel-default > .panel-heading { @include panel-heading-styles($panel-default-heading-bg); }
|
|
|
e8ec7a |
.panel-primary > .panel-heading { @include panel-heading-styles($panel-primary-heading-bg); }
|
|
|
e8ec7a |
.panel-success > .panel-heading { @include panel-heading-styles($panel-success-heading-bg); }
|
|
|
e8ec7a |
.panel-info > .panel-heading { @include panel-heading-styles($panel-info-heading-bg); }
|
|
|
e8ec7a |
.panel-warning > .panel-heading { @include panel-heading-styles($panel-warning-heading-bg); }
|
|
|
e8ec7a |
.panel-danger > .panel-heading { @include panel-heading-styles($panel-danger-heading-bg); }
|
|
|
e8ec7a |
|
|
|
e8ec7a |
|
|
|
e8ec7a |
|
|
|
e8ec7a |
//
|
|
|
e8ec7a |
// Wells
|
|
|
e8ec7a |
// --------------------------------------------------
|
|
|
e8ec7a |
|
|
|
e8ec7a |
.well {
|
|
|
e8ec7a |
@include gradient-vertical($start-color: darken($well-bg, 5%), $end-color: $well-bg);
|
|
|
e8ec7a |
border-color: darken($well-bg, 10%);
|
|
|
e8ec7a |
$shadow: inset 0 1px 3px rgba(0,0,0,.05), 0 1px 0 rgba(255,255,255,.1);
|
|
|
e8ec7a |
@include box-shadow($shadow);
|
|
|
e8ec7a |
}
|