summaryrefslogtreecommitdiff
path: root/templates/assets/bootstrap/scss/mixins/_list-group.scss
diff options
context:
space:
mode:
Diffstat (limited to 'templates/assets/bootstrap/scss/mixins/_list-group.scss')
-rw-r--r--templates/assets/bootstrap/scss/mixins/_list-group.scss26
1 files changed, 26 insertions, 0 deletions
diff --git a/templates/assets/bootstrap/scss/mixins/_list-group.scss b/templates/assets/bootstrap/scss/mixins/_list-group.scss
new file mode 100644
index 0000000..ba27b50
--- /dev/null
+++ b/templates/assets/bootstrap/scss/mixins/_list-group.scss
@@ -0,0 +1,26 @@
+// List Groups
+
+@mixin list-group-item-variant($state, $background, $color) {
+ .list-group-item-#{$state} {
+ color: $color;
+ background-color: $background;
+ }
+
+ //scss-lint:disable QualifyingElement
+ a.list-group-item-#{$state},
+ button.list-group-item-#{$state} {
+ color: $color;
+
+ @include hover-focus {
+ color: $color;
+ background-color: darken($background, 5%);
+ }
+
+ &.active {
+ color: #fff;
+ background-color: $color;
+ border-color: $color;
+ }
+ }
+ // scss-lint:enable QualifyingElement
+}