summaryrefslogtreecommitdiff
path: root/searx/static/less/bootstrap/mixins/list-group.less
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2015-01-12 14:54:16 +0100
committerAdam Tauber <asciimoo@gmail.com>2015-01-12 14:54:16 +0100
commit410dbc573bbb873a447710e122faefd11075b6df (patch)
treecc4af9e6f213579ad92a27aeaef52d8d2e0158b6 /searx/static/less/bootstrap/mixins/list-group.less
parent12425618caacec90ac90332f580fb628ef32e213 (diff)
[enh] static content generalization
Diffstat (limited to 'searx/static/less/bootstrap/mixins/list-group.less')
-rw-r--r--searx/static/less/bootstrap/mixins/list-group.less29
1 files changed, 29 insertions, 0 deletions
diff --git a/searx/static/less/bootstrap/mixins/list-group.less b/searx/static/less/bootstrap/mixins/list-group.less
new file mode 100644
index 000000000..8b5b065cb
--- /dev/null
+++ b/searx/static/less/bootstrap/mixins/list-group.less
@@ -0,0 +1,29 @@
+// List Groups
+
+.list-group-item-variant(@state; @background; @color) {
+ .list-group-item-@{state} {
+ color: @color;
+ background-color: @background;
+
+ a& {
+ color: @color;
+
+ .list-group-item-heading {
+ color: inherit;
+ }
+
+ &:hover,
+ &:focus {
+ color: @color;
+ background-color: darken(@background, 5%);
+ }
+ &.active,
+ &.active:hover,
+ &.active:focus {
+ color: #fff;
+ background-color: @color;
+ border-color: @color;
+ }
+ }
+ }
+}