Skip to content

Commit

Permalink
Update section.less
Browse files Browse the repository at this point in the history
  • Loading branch information
janfaracik committed Jan 17, 2022
1 parent 852a5fd commit 851a85c
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions war/src/main/less/modules/section.less
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@
margin: 0;
}

&::before {
&::before,
&::after {
position: absolute;
content: "";
top: -10px;
Expand All @@ -68,12 +69,22 @@
right: -10px;
z-index: -1;
border-radius: 6px;
transition: var(--standard-transition);
opacity: 0;
}

&::before {
background-color: var(--text-color);
}

&::after {
box-shadow: 0 0 0 10px transparent;
}

&:hover,
&:focus {
&::before {
background-color: var(--btn-link-bg--hover);
opacity: 0.1;
}
}

Expand All @@ -83,8 +94,12 @@
z-index: 1;

&::before {
background: var(--btn-link-bg--active);
box-shadow: 0 0 0 2px var(--focus-btn-primary);
opacity: 0.15;
}

&::after {
opacity: 0.075;
box-shadow: 0 0 0 5px var(--text-color);
}
}

Expand Down

0 comments on commit 851a85c

Please sign in to comment.