From 94567729fcc2ed9796972f9c0afd01c9823f28dc Mon Sep 17 00:00:00 2001 From: Ben Ogle Date: Thu, 29 Aug 2013 15:46:51 -0700 Subject: [PATCH] Add button variants --- themes/neue-dark-ui/buttons.less | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/themes/neue-dark-ui/buttons.less b/themes/neue-dark-ui/buttons.less index b9fc61a41..b57b8b245 100644 --- a/themes/neue-dark-ui/buttons.less +++ b/themes/neue-dark-ui/buttons.less @@ -19,6 +19,13 @@ } } +.btn-variant (@color) { + @bg: darken(@color, 10%); + @hover: @color; + @selected: @color; + .btn-background(@bg, @hover, @selected, @text-color-highlight); +} + .btn { border-radius: @component-border-radius; border: none; @@ -38,6 +45,22 @@ } } +.btn.btn-primary { + .btn-variant(@background-color-info); +} +.btn.btn-info { + .btn-variant(@background-color-info); +} +.btn.btn-success { + .btn-variant(@background-color-success); +} +.btn.btn-warning { + .btn-variant(@background-color-warning); +} +.btn.btn-error { + .btn-variant(@background-color-error); +} + .btn.btn-xs, .btn-group-xs > .btn { padding: 2px 5px; font-size: 10px;