]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Update z-indices (#29292)
authorMartijn Cuppens <martijn.cuppens@gmail.com>
Mon, 26 Aug 2019 06:42:44 +0000 (08:42 +0200)
committerXhmikosR <xhmikosr@gmail.com>
Mon, 26 Aug 2019 06:42:44 +0000 (09:42 +0300)
- `.carousel-caption` doesn't need a z-index. There are no non-static element in its containing block (`.carousel-item`)
- The `z-index` of `.carousel-indicators` is way higher than it needs to be (`15`), the highest sibling `z-index` is `1`, so it can be set to `2` to be the top layer.

scss/_carousel.scss

index df9408a7573899c856fe91528a51090dd53b65a2..0e79f179b6d7b73cd4204cdbca69d73951949bc7 100644 (file)
   right: 0;
   bottom: 0;
   left: 0;
-  z-index: 15;
+  z-index: 2;
   display: flex;
   justify-content: center;
   padding-left: 0; // override <ol> default
   right: (100% - $carousel-caption-width) / 2;
   bottom: 20px;
   left: (100% - $carousel-caption-width) / 2;
-  z-index: 10;
   padding-top: 20px;
   padding-bottom: 20px;
   color: $carousel-caption-color;