info@53: info@53: // info@53: // Load core variables and mixins info@53: // -------------------------------------------------- info@53: info@53: @import "variables.less"; info@53: @import "mixins.less"; info@53: info@53: info@53: info@53: // info@53: // Buttons info@53: // -------------------------------------------------- info@53: info@53: // Common styles info@53: .btn-default, info@53: .btn-primary, info@53: .btn-success, info@53: .btn-info, info@53: .btn-warning, info@53: .btn-danger { info@53: text-shadow: 0 -1px 0 rgba(0,0,0,.2); info@53: @shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 1px 1px rgba(0,0,0,.075); info@53: .box-shadow(@shadow); info@53: info@53: // Reset the shadow info@53: &:active, info@53: &.active { info@53: .box-shadow(inset 0 3px 5px rgba(0,0,0,.125)); info@53: } info@53: } info@53: info@53: // Mixin for generating new styles info@53: .btn-styles(@btn-color: #555) { info@53: #gradient > .vertical(@start-color: @btn-color; @end-color: darken(@btn-color, 12%)); info@53: .reset-filter(); // Disable gradients for IE9 because filter bleeds through rounded corners info@53: background-repeat: repeat-x; info@53: border-color: darken(@btn-color, 14%); info@53: info@53: &:hover, info@53: &:focus { info@53: background-color: darken(@btn-color, 12%); info@53: background-position: 0 -15px; info@53: } info@53: info@53: &:active, info@53: &.active { info@53: background-color: darken(@btn-color, 12%); info@53: border-color: darken(@btn-color, 14%); info@53: } info@53: } info@53: info@53: // Common styles info@53: .btn { info@53: // Remove the gradient for the pressed/active state info@53: &:active, info@53: &.active { info@53: background-image: none; info@53: } info@53: } info@53: info@53: // Apply the mixin to the buttons info@53: .btn-default { .btn-styles(@btn-default-bg); text-shadow: 0 1px 0 #fff; border-color: #ccc; } info@53: .btn-primary { .btn-styles(@btn-primary-bg); } info@53: .btn-success { .btn-styles(@btn-success-bg); } info@53: .btn-warning { .btn-styles(@btn-warning-bg); } info@53: .btn-danger { .btn-styles(@btn-danger-bg); } info@53: .btn-info { .btn-styles(@btn-info-bg); } info@53: info@53: info@53: info@53: // info@53: // Images info@53: // -------------------------------------------------- info@53: info@53: .thumbnail, info@53: .img-thumbnail { info@53: .box-shadow(0 1px 2px rgba(0,0,0,.075)); info@53: } info@53: info@53: info@53: info@53: // info@53: // Dropdowns info@53: // -------------------------------------------------- info@53: info@53: .dropdown-menu > li > a:hover, info@53: .dropdown-menu > li > a:focus { info@53: #gradient > .vertical(@start-color: @dropdown-link-hover-bg; @end-color: darken(@dropdown-link-hover-bg, 5%)); info@53: background-color: darken(@dropdown-link-hover-bg, 5%); info@53: } info@53: .dropdown-menu > .active > a, info@53: .dropdown-menu > .active > a:hover, info@53: .dropdown-menu > .active > a:focus { info@53: #gradient > .vertical(@start-color: @dropdown-link-active-bg; @end-color: darken(@dropdown-link-active-bg, 5%)); info@53: background-color: darken(@dropdown-link-active-bg, 5%); info@53: } info@53: info@53: info@53: info@53: // info@53: // Navbar info@53: // -------------------------------------------------- info@53: info@53: // Default navbar info@53: .navbar-default { info@53: #gradient > .vertical(@start-color: lighten(@navbar-default-bg, 10%); @end-color: @navbar-default-bg); info@53: .reset-filter(); // Remove gradient in IE<10 to fix bug where dropdowns don't get triggered info@53: border-radius: @navbar-border-radius; info@53: @shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 1px 5px rgba(0,0,0,.075); info@53: .box-shadow(@shadow); info@53: info@53: .navbar-nav > .active > a { info@53: #gradient > .vertical(@start-color: darken(@navbar-default-bg, 5%); @end-color: darken(@navbar-default-bg, 2%)); info@53: .box-shadow(inset 0 3px 9px rgba(0,0,0,.075)); info@53: } info@53: } info@53: .navbar-brand, info@53: .navbar-nav > li > a { info@53: text-shadow: 0 1px 0 rgba(255,255,255,.25); info@53: } info@53: info@53: // Inverted navbar info@53: .navbar-inverse { info@53: #gradient > .vertical(@start-color: lighten(@navbar-inverse-bg, 10%); @end-color: @navbar-inverse-bg); info@53: .reset-filter(); // Remove gradient in IE<10 to fix bug where dropdowns don't get triggered info@53: info@53: .navbar-nav > .active > a { info@53: #gradient > .vertical(@start-color: @navbar-inverse-bg; @end-color: lighten(@navbar-inverse-bg, 2.5%)); info@53: .box-shadow(inset 0 3px 9px rgba(0,0,0,.25)); info@53: } info@53: info@53: .navbar-brand, info@53: .navbar-nav > li > a { info@53: text-shadow: 0 -1px 0 rgba(0,0,0,.25); info@53: } info@53: } info@53: info@53: // Undo rounded corners in static and fixed navbars info@53: .navbar-static-top, info@53: .navbar-fixed-top, info@53: .navbar-fixed-bottom { info@53: border-radius: 0; info@53: } info@53: info@53: info@53: info@53: // info@53: // Alerts info@53: // -------------------------------------------------- info@53: info@53: // Common styles info@53: .alert { info@53: text-shadow: 0 1px 0 rgba(255,255,255,.2); info@53: @shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 1px 2px rgba(0,0,0,.05); info@53: .box-shadow(@shadow); info@53: } info@53: info@53: // Mixin for generating new styles info@53: .alert-styles(@color) { info@53: #gradient > .vertical(@start-color: @color; @end-color: darken(@color, 7.5%)); info@53: border-color: darken(@color, 15%); info@53: } info@53: info@53: // Apply the mixin to the alerts info@53: .alert-success { .alert-styles(@alert-success-bg); } info@53: .alert-info { .alert-styles(@alert-info-bg); } info@53: .alert-warning { .alert-styles(@alert-warning-bg); } info@53: .alert-danger { .alert-styles(@alert-danger-bg); } info@53: info@53: info@53: info@53: // info@53: // Progress bars info@53: // -------------------------------------------------- info@53: info@53: // Give the progress background some depth info@53: .progress { info@53: #gradient > .vertical(@start-color: darken(@progress-bg, 4%); @end-color: @progress-bg) info@53: } info@53: info@53: // Mixin for generating new styles info@53: .progress-bar-styles(@color) { info@53: #gradient > .vertical(@start-color: @color; @end-color: darken(@color, 10%)); info@53: } info@53: info@53: // Apply the mixin to the progress bars info@53: .progress-bar { .progress-bar-styles(@progress-bar-bg); } info@53: .progress-bar-success { .progress-bar-styles(@progress-bar-success-bg); } info@53: .progress-bar-info { .progress-bar-styles(@progress-bar-info-bg); } info@53: .progress-bar-warning { .progress-bar-styles(@progress-bar-warning-bg); } info@53: .progress-bar-danger { .progress-bar-styles(@progress-bar-danger-bg); } info@53: info@53: info@53: info@53: // info@53: // List groups info@53: // -------------------------------------------------- info@53: info@53: .list-group { info@53: border-radius: @border-radius-base; info@53: .box-shadow(0 1px 2px rgba(0,0,0,.075)); info@53: } info@53: .list-group-item.active, info@53: .list-group-item.active:hover, info@53: .list-group-item.active:focus { info@53: text-shadow: 0 -1px 0 darken(@list-group-active-bg, 10%); info@53: #gradient > .vertical(@start-color: @list-group-active-bg; @end-color: darken(@list-group-active-bg, 7.5%)); info@53: border-color: darken(@list-group-active-border, 7.5%); info@53: } info@53: info@53: info@53: info@53: // info@53: // Panels info@53: // -------------------------------------------------- info@53: info@53: // Common styles info@53: .panel { info@53: .box-shadow(0 1px 2px rgba(0,0,0,.05)); info@53: } info@53: info@53: // Mixin for generating new styles info@53: .panel-heading-styles(@color) { info@53: #gradient > .vertical(@start-color: @color; @end-color: darken(@color, 5%)); info@53: } info@53: info@53: // Apply the mixin to the panel headings only info@53: .panel-default > .panel-heading { .panel-heading-styles(@panel-default-heading-bg); } info@53: .panel-primary > .panel-heading { .panel-heading-styles(@panel-primary-heading-bg); } info@53: .panel-success > .panel-heading { .panel-heading-styles(@panel-success-heading-bg); } info@53: .panel-info > .panel-heading { .panel-heading-styles(@panel-info-heading-bg); } info@53: .panel-warning > .panel-heading { .panel-heading-styles(@panel-warning-heading-bg); } info@53: .panel-danger > .panel-heading { .panel-heading-styles(@panel-danger-heading-bg); } info@53: info@53: info@53: info@53: // info@53: // Wells info@53: // -------------------------------------------------- info@53: info@53: .well { info@53: #gradient > .vertical(@start-color: darken(@well-bg, 5%); @end-color: @well-bg); info@53: border-color: darken(@well-bg, 10%); info@53: @shadow: inset 0 1px 3px rgba(0,0,0,.05), 0 1px 0 rgba(255,255,255,.1); info@53: .box-shadow(@shadow); info@53: }