diff options
| author | Thomas Pointhuber <thomas.pointhuber@gmx.at> | 2014-09-29 10:00:24 +0200 |
|---|---|---|
| committer | Thomas Pointhuber <thomas.pointhuber@gmx.at> | 2014-10-05 14:40:47 +0200 |
| commit | 841f1eedfc8b2c49f0395d5f0ea2bfa269c19df2 (patch) | |
| tree | bf56c830fbed336796c7586f84b46df82d5c2d81 /searx/static/oscar/less/bootstrap/mixins/buttons.less | |
| parent | 14b0604bc0a14a110c92457f43b3828fc22e7fc7 (diff) | |
oscar template: generate bootstrap.min.css from source
Diffstat (limited to 'searx/static/oscar/less/bootstrap/mixins/buttons.less')
| -rw-r--r-- | searx/static/oscar/less/bootstrap/mixins/buttons.less | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/searx/static/oscar/less/bootstrap/mixins/buttons.less b/searx/static/oscar/less/bootstrap/mixins/buttons.less new file mode 100644 index 000000000..409f8f20a --- /dev/null +++ b/searx/static/oscar/less/bootstrap/mixins/buttons.less @@ -0,0 +1,50 @@ +// Button variants +// +// Easily pump out default styles, as well as :hover, :focus, :active, +// and disabled options for all buttons + +.button-variant(@color; @background; @border) { + color: @color; + background-color: @background; + border-color: @border; + + &:hover, + &:focus, + &:active, + &.active, + .open > .dropdown-toggle& { + color: @color; + background-color: darken(@background, 10%); + border-color: darken(@border, 12%); + } + &:active, + &.active, + .open > .dropdown-toggle& { + background-image: none; + } + &.disabled, + &[disabled], + fieldset[disabled] & { + &, + &:hover, + &:focus, + &:active, + &.active { + background-color: @background; + border-color: @border; + } + } + + .badge { + color: @background; + background-color: @color; + } +} + +// Button sizes +.button-size(@padding-vertical; @padding-horizontal; @font-size; @line-height; @border-radius) { + padding: @padding-vertical @padding-horizontal; + font-size: @font-size; + line-height: @line-height; + border-radius: @border-radius; +} |