Skip to content

Commit

Permalink
add left border to active item (don't rely only on colour)
Browse files Browse the repository at this point in the history
  • Loading branch information
drammock committed Aug 7, 2023
1 parent f23fa2d commit 7210700
Showing 1 changed file with 15 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,23 +31,22 @@ button.btn.version-switcher__button {
&:hover {
background-color: var(--pst-color-surface);
}
}

// Over-rides Bootstrap default blue for the current one (info-bg)
// TODO: @trallard to fix active in subsequent PR
a.list-group-item.active {
color: var(--pst-color-info);
position: relative;
z-index: 1;
&.active {
color: var(--pst-color-primary);
border-left: 0.2rem solid;
border-left-color: currentcolor;
position: relative;
z-index: 1;

span:before {
content: "";
width: 100%;
height: 100%;
position: absolute;
z-index: -1;
left: 0;
top: 0;
span:before {
content: "";
width: 100%;
height: 100%;
position: absolute;
z-index: -1;
left: 0;
top: 0;
}
}
}
}
Expand Down

0 comments on commit 7210700

Please sign in to comment.