45 lines
819 B
CSS
45 lines
819 B
CSS
.js-show-hide {
|
|
position: relative;
|
|
}
|
|
|
|
.js-show-hide__toggle {
|
|
position: relative;
|
|
}
|
|
|
|
.js-show-hide__toggle:hover {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.js-show-hide__toggle::before {
|
|
content: '';
|
|
position: absolute;
|
|
width: 0;
|
|
height: 0;
|
|
border-right: 8px solid transparent;
|
|
border-bottom: 8px solid transparent;
|
|
}
|
|
|
|
.js-show-hide__toggle::before,
|
|
.js-show-hide--collapsed .js-show-hide__toggle:hover::before {
|
|
left: -28px;
|
|
top: 10px;
|
|
border-left: 8px solid transparent;
|
|
border-top: 8px solid rebeccapurple;
|
|
}
|
|
|
|
.js-show-hide__toggle:hover::before,
|
|
.js-show-hide--collapsed .js-show-hide__toggle::before {
|
|
border-left: 8px solid rebeccapurple;
|
|
border-top: 8px solid transparent;
|
|
top: 5px;
|
|
left: -22px;
|
|
}
|
|
|
|
.js-show-hide__target {
|
|
|
|
}
|
|
|
|
.js-show-hide--collapsed > .js-show-hide__target {
|
|
display: none;
|
|
}
|