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

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <markdotto@gmail.com>2020-11-03 23:56:24 +0300
committerXhmikosR <xhmikosr@gmail.com>2020-11-06 15:49:41 +0300
commit3df4dd15e407dce8bc665fc0140497312856ec47 (patch)
tree0e664e496066806acc1f48d8b66e607973d55c1d
parent6a3761254050222d80eda2926ad6b6946a8787aa (diff)
Update relative position hack for layers
Switches to slightly more verbose, but more consistent, z-index layering we use elsewhere (e.g., pagination). Doing this ensures we're not toggling position on and off, but rather z-index.
-rw-r--r--scss/_accordion.scss7
1 files changed, 6 insertions, 1 deletions
diff --git a/scss/_accordion.scss b/scss/_accordion.scss
index 53715274a7..0990a15c6b 100644
--- a/scss/_accordion.scss
+++ b/scss/_accordion.scss
@@ -3,6 +3,7 @@
//
.accordion-button {
+ position: relative;
display: flex;
align-items: center;
width: 100%;
@@ -39,8 +40,12 @@
@include transition($accordion-icon-transition);
}
+ &:hover {
+ z-index: 2;
+ }
+
&:focus {
- position: relative;
+ z-index: 3;
outline: 0;
box-shadow: $btn-focus-box-shadow;
}