From 0bf0647032ff6f2d6f50b21dfe1f7e3f0837c834 Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Fri, 17 Oct 2014 16:06:42 +0200 Subject: copy media.ccc.de style --- assets/css/bootstrap/mixins/_list-group.scss | 31 ++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 assets/css/bootstrap/mixins/_list-group.scss (limited to 'assets/css/bootstrap/mixins/_list-group.scss') diff --git a/assets/css/bootstrap/mixins/_list-group.scss b/assets/css/bootstrap/mixins/_list-group.scss new file mode 100644 index 0000000..5f05e7b --- /dev/null +++ b/assets/css/bootstrap/mixins/_list-group.scss @@ -0,0 +1,31 @@ +// List Groups + +@mixin list-group-item-variant($state, $background, $color) { + .list-group-item-#{$state} { + color: $color; + background-color: $background; + + // [converter] extracted a& to a.list-group-item-#{$state} + } + + a.list-group-item-#{$state} { + 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; + } + } +} -- cgit v1.2.3