Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/JugglerX/hugo-whisper-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'assets/scss/bootstrap/_list-group.scss')
-rwxr-xr-xassets/scss/bootstrap/_list-group.scss44
1 files changed, 39 insertions, 5 deletions
diff --git a/assets/scss/bootstrap/_list-group.scss b/assets/scss/bootstrap/_list-group.scss
index 9f145c1..3f80687 100755
--- a/assets/scss/bootstrap/_list-group.scss
+++ b/assets/scss/bootstrap/_list-group.scss
@@ -24,6 +24,7 @@
// Hover state
@include hover-focus {
+ z-index: 1; // Place hover/focus items above their siblings for proper border styling
color: $list-group-action-hover-color;
text-decoration: none;
background-color: $list-group-hover-bg;
@@ -46,6 +47,7 @@
padding: $list-group-item-padding-y $list-group-item-padding-x;
// Place the border on the list items and negative margin up for better styling
margin-bottom: -$list-group-border-width;
+ color: $list-group-color;
background-color: $list-group-bg;
border: $list-group-border-width solid $list-group-border-color;
@@ -58,14 +60,10 @@
@include border-bottom-radius($list-group-border-radius);
}
- @include hover-focus {
- z-index: 1; // Place hover/active items above their siblings for proper border styling
- text-decoration: none;
- }
-
&.disabled,
&:disabled {
color: $list-group-disabled-color;
+ pointer-events: none;
background-color: $list-group-disabled-bg;
}
@@ -79,6 +77,37 @@
}
+// Horizontal
+//
+// Change the layout of list group items from vertical (default) to horizontal.
+
+@each $breakpoint in map-keys($grid-breakpoints) {
+ @include media-breakpoint-up($breakpoint) {
+ $infix: breakpoint-infix($breakpoint, $grid-breakpoints);
+
+ .list-group-horizontal#{$infix} {
+ flex-direction: row;
+
+ .list-group-item {
+ margin-right: -$list-group-border-width;
+ margin-bottom: 0;
+
+ &:first-child {
+ @include border-left-radius($list-group-border-radius);
+ @include border-top-right-radius(0);
+ }
+
+ &:last-child {
+ margin-right: 0;
+ @include border-right-radius($list-group-border-radius);
+ @include border-bottom-left-radius(0);
+ }
+ }
+ }
+ }
+}
+
+
// Flush list items
//
// Remove borders and border-radius to keep list group items edge-to-edge. Most
@@ -89,6 +118,10 @@
border-right: 0;
border-left: 0;
@include border-radius(0);
+
+ &:last-child {
+ margin-bottom: -$list-group-border-width;
+ }
}
&:first-child {
@@ -99,6 +132,7 @@
&:last-child {
.list-group-item:last-child {
+ margin-bottom: 0;
border-bottom: 0;
}
}