/* * Bootstrap $Buttons * */ .btn { outline: 0; .transition(all 300ms linear); .rounded(@border-radius-base); padding: 9px 12px; font-size: 13px; -webkit-font-smoothing: antialiased; line-height: 14px; &:focus, &:active, &.active, &:active:focus, &.active:focus { outline: 0; } } .btn:active, .btn.active { .box-shadow(inset 0 3px 8px rgba(0,0,0,.1)); } .btn-lg, .btn-group-lg>.btn { padding: 15px 16px; .rounded(@border-radius-large); } .btn-sm, .btn-group-sm>.btn { padding: 7px 10px; } .btn-xs, .btn-group-xs>.btn { padding: 3px 5px; font-size: 10px; } /* Rounded button styles */ .btn-rounded, .btn-rounded a, .btn-rounded .btn, .input-rounded { .rounded(40px); } /* * Default Button Style * */ .btn-default { .button-variant(@btn-default-color; @btn-default-bg; @btn-default-border); &.btn-outline { color: @btn-default-color; } } /* * Primary Button Style * */ .btn-primary { .button-variant(@btn-primary-color; @btn-primary-bg; @btn-primary-border); } /* * Warning Button Style * */ .btn-warning { .button-variant(@btn-warning-color; @btn-warning-bg; @btn-warning-border); } /* * Success Button Style * */ .btn-success { .button-variant(@btn-success-color; @btn-success-bg; @btn-success-border); } /* * Info Button Style * */ .btn-info { .button-variant(@btn-info-color; @btn-info-bg; @btn-info-border); } /* * Danger Button Style * */ .btn-danger { .button-variant(@brand-white; @brand-danger; @brand-danger); } /* * Social Buttons for Bootstrap * * Copyright 2013-2014 Panayiotis Lipiridis * Licensed under the MIT License * * https://github.com/lipis/bootstrap-social */ @bs-height-base: (@line-height-computed + @padding-base-vertical * 2); @bs-height-lg: (floor(@font-size-large * @line-height-base) + @padding-large-vertical * 2); @bs-height-sm: (floor(@font-size-small * 1.5) + @padding-small-vertical * 2); @bs-height-xs: (floor(@font-size-small * 1.2) + @padding-small-vertical + 1); .btn-social { position: relative; padding-left: (@bs-height-base + @padding-base-horizontal); text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; :first-child { position: absolute; left: 0; top: 0; bottom: 0; width: @bs-height-base; line-height: (@bs-height-base + 2); font-size: 1.6em; text-align: center; border-right: 1px solid rgba(0, 0, 0, 0.1); } &.btn-lg { padding-left: (@bs-height-lg + @padding-large-horizontal); :first-child { line-height: @bs-height-lg; width: @bs-height-lg; font-size: 1.8em; } } &.btn-sm { padding-left: (@bs-height-sm + @padding-small-horizontal); :first-child { line-height: @bs-height-sm; width: @bs-height-sm; font-size: 1.4em; } } &.btn-xs { padding-left: (@bs-height-xs + @padding-small-horizontal); :first-child { line-height: @bs-height-xs; width: @bs-height-xs; font-size: 1.2em; } } } .btn-social-icon { .btn-social; height: (@bs-height-base + 2); width: (@bs-height-base + 2); padding: 0; :first-child { border: none; text-align: center; width: 100%!important; } &.btn-lg { height: @bs-height-lg; width: @bs-height-lg; padding-left: 0; padding-right: 0; } &.btn-sm { height: (@bs-height-sm + 2); width: (@bs-height-sm + 2); padding-left: 0; padding-right: 0; } &.btn-xs { height: (@bs-height-xs + 2); width: (@bs-height-xs + 2); padding-left: 0; padding-right: 0; } } .btn-social(@color-bg, @color: #fff) { background-color: @color-bg; .button-variant(@color, @color-bg, @color-bg); } .btn-adn { .btn-social(#d87a68); } .btn-bitbucket { .btn-social(#205081); } .btn-dropbox { .btn-social(#1087dd); } .btn-facebook { .btn-social(#3b5998); } .btn-flickr { .btn-social(#ff0084); } .btn-foursquare { .btn-social(#0072b1); } .btn-github { .btn-social(#444444); } .btn-google-plus { .btn-social(#dd4b39); } .btn-instagram { .btn-social(#3f729b); } .btn-linkedin { .btn-social(#007bb6); } .btn-microsoft { .btn-social(#2672ec); } .btn-openid { .btn-social(#f7931e); } .btn-reddit { .btn-social(#eff7ff, #000); } .btn-soundcloud { .btn-social(#ff5500); } .btn-tumblr { .btn-social(#2c4762); } .btn-twitter { .btn-social(#55acee); } .btn-vimeo { .btn-social(#1ab7ea); } .btn-vk { .btn-social(#587ea3); } .btn-yahoo { .btn-social(#720e9e); }