// // Load core variables and mixins // -------------------------------------------------- @import "bootstrap/variables.less"; @import "bootstrap/mixins.less"; h2 { font-size: 18px; color: @gray-normal; } h3 { font-size: 14px; color: @gray-darkest; } h4 { font-size: 13px; color: @gray-darker; font-weight: 500; } a { transition: color 0.25s; &:hover { text-decoration: none; } } input[type="text"] { &.line { border: 0; border-bottom: 1px solid @gray-lightest; color: @gray-normal; font-weight: 300; padding: 5px; transition: all 0.25s; &:focus { outline: 0; border-bottom: 1px solid @brand-action; } &::-webkit-input-placeholder { color: #DDD; font-weight: 300; } } } // // Buttons // -------------------------------------------------- // Common styles .btn-default, .btn-primary, .btn-success, .btn-info, .btn-warning, .btn-danger { } // Mixin for generating new styles .btn-styles(@btn-color: @gray-normal) { .reset-filter(); // Disable gradients for IE9 because filter bleeds through rounded corners transition: all 100ms; background: transparent; border-color: @btn-color; color: @btn-color; &:hover { background-color: fade(@btn-color, 3%); border-color: darken(@btn-color, 5%); color: darken(@btn-color, 5%); cursor: default; box-shadow: none; } &:focus, &.focus { color: @btn-color; outline: none; } &:active { background-color: fade(@btn-color, 5%); border-color: darken(@btn-color, 5%); box-shadow: 0 0 0 3px fade(@btn-color, 25%); } &:disabled, &[disabled] { opacity: 0.5; background: none; &.active { background: none; color: white; box-shadow: none; box-shadow: none; } } } .btn-filled-styles(@btn-color: @gray-normal) { .reset-filter(); // Disable gradients for IE9 because filter bleeds through rounded corners transition: all 100ms; background: @btn-color; color: white; &:hover { background-color: darken(@btn-color, 4%); color: white; cursor: default; box-shadow: none; } &:focus, &.focus { color: white; outline: none; } &:active { background-color: darken(@btn-color, 5%); box-shadow: 0 0 0 3px fade(@btn-color, 25%); } &:disabled, &[disabled] { opacity: 0.5; background: @btn-color; &.active { background: @btn-color; color: white; box-shadow: none; box-shadow: none; } } } .btn-group { &.tabs { .btn { padding: 6px 14px 6px 14px; } } .btn { .icon-dropdown { &.icon:before { position: relative; font-size: 10px; top: -2px; margin-left: 0px; margin-right: 4px; } } } } // Common styles .btn { font-size: 13px; background-color: transparent; color: @gray-normal; border: 1px solid @gray-normal; border-radius: @border-radius; box-shadow: none; font-weight: 400; text-shadow: none; padding: 5px 14px 5px 14px; cursor: default; &.circular { border-radius: 100%; width: 25px; height: 25px; padding: 0; padding-top: 4px; .icon { font-size: 10px; } } &.small { font-size: 11px; padding: 3px 8px 3px 8px; height: 22px; .icon { font-size: 10px; } } .content { position: relative; top: -4px; margin-left: 5px; margin-right: 5px; } .icon-dropdown { &.icon:before { font-size: 10px; position: relative; top: -2px; } } .icon { position: relative; font-size: 16px; } // Remove the gradient for the pressed/active state &:active, &.active { background-image: none; box-shadow: none; } &:focus, &.focus { box-shadow: none; outline: none !important; } &.only-icon { padding: 6px 7px 6px 7px; &.small { width: 22px; padding: 4px 5px 4px 5px; } } } // Apply the mixin to the buttons .btn-action { .btn-styles(@brand-action); &.btn-filled { .btn-filled-styles(@brand-action); } } .btn-positive { .btn-styles(@brand-positive); } .btn-default { .btn-styles(@btn-default-bg); } .btn-primary { .btn-styles(@btn-primary-bg); } .btn-success { .btn-styles(@btn-success-bg); } .btn-info { .btn-styles(@btn-info-bg); } .btn-warning { .btn-styles(@btn-warning-bg); } .btn-danger { .btn-styles(@btn-danger-bg); } .tooltip { .tooltip-inner { font-size: 10px; padding-bottom: 5px; } }