Skip to content

Commit

Permalink
Add .custom-btn-icon code
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzalo-bulnes committed Feb 28, 2013
1 parent bea56bf commit a001d66
Showing 1 changed file with 85 additions and 0 deletions.
85 changes: 85 additions & 0 deletions bootstrap-extensions.css.less
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,88 @@
}
}
}

// Use the .custom-btn-icon to create pixel-perfect icon buttons, or icon-only buttons
// All standard sizes and color are also available!
//
// Example:
//
// <a class="btn btn-link custom-btn-icon custom-btn-icon-danger" href="#">
// <i class="icon-heart"></i>
// </a>
//
// Note: .btn is required to use .custom-btn-icon. Both .btn and .btn-link are required
// to create icon-only buttons.
.btn.custom-btn-icon {
// should be used with .btn.btn-link for icon-olny buttons
color: @btnBackground;
font-size: 24px;
padding-bottom: 2px;
padding-top: 2px;
text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);

&.custom-btn-icon-mini {
font-size: 16px;
padding-bottom: 6px;
padding-top: 6px;
}

&.custom-btn-icon-small {
font-size: 20px;
padding-bottom: 4px;
padding-top: 4px;
}

&.custom-btn-icon-large {
font-size: 32px;
padding-bottom: 0;
padding-top: 0;
}

&:focus, &:hover {
color: @btnBackgroundHighlight;
text-decoration: none;
}

&.custom-btn-icon-link {
color: @btnPrimaryBackground;
&:focus, &:hover {
color: @btnPrimaryBackgroundHighlight;
}
}

&.custom-btn-icon-info {
color: @btnInfoBackground;
&:focus, &:hover {
color: @btnInfoBackgroundHighlight;
}
}

&.custom-btn-icon-success {
color: @btnSuccessBackground;
&:focus, &:hover {
color: @btnSuccessBackgroundHighlight;
}
}

&.custom-btn-icon-warning {
color: @btnWarningBackground;
&:focus, &:hover {
color: @btnWarningBackgroundHighlight;
}
}

&.custom-btn-icon-danger {
color: @btnDangerBackground;
&:focus, &:hover {
color: @btnDangerBackgroundHighlight;
}
}

&.custom-btn-icon-inverse {
color: @btnInverseBackground;
&:focus, &:hover {
color: @btnInverseBackgroundHighlight;
}
}
}

0 comments on commit a001d66

Please sign in to comment.