highlight-plus
Version:
A React component that extends react-highlight to highlight search terms within syntax-highlighted code.
40 lines (32 loc) • 716 B
CSS
.rhp-tlr-0 {
top: 0;
left: 0;
right: 0;
}
.rhp-cont {
position: relative;
overflow-x: auto;
}
.rhp-cont pre {
margin: 0;
}
.rhp-cont pre:first-child {
z-index: 1000;
position: relative;
}
.rhp-cont pre:not(:first-child) {
z-index: 10;
position: absolute;
}
.rhp-cont pre code.hljs {
display: block;
text-align: left;
overflow-x: visible;
position: relative;
}
.rhp-mark {
background-color: yellow;
}
.rhp-bck-transparent {
background-color: transparent;
}