Skip to content

Commit

Permalink
fix: 🐛 highlight conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
haydenull committed Jun 11, 2022
1 parent 22688b8 commit 550aec6
Showing 1 changed file with 28 additions and 15 deletions.
43 changes: 28 additions & 15 deletions src/mix.less
Original file line number Diff line number Diff line change
Expand Up @@ -61,21 +61,34 @@ a.priority[href="#/page/C"]::before {

// highlight
mark {
background: transparent;
color: inherit;
font-size: inherit;
text-decoration-style: solid;
text-decoration: underline;
text-decoration-color: fade(@yellow-500, 80%);
text-decoration-thickness: 10px;
text-underline-offset: -8px;
text-decoration-skip-ink: none;
}
mark::before {
content: " ";
}
mark::after {
content: " ";
background: linear-gradient(to bottom, transparent 0%, transparent 60%, fade(@yellow-500, 80%) 60%, fade(@yellow-500, 80%) 100%);
padding-left: 2px;
padding-right: 2px;
margin: 0 2px;
border-radius: 0;
// position: relative;
// color: inherit;
// font-size: inherit;
// text-decoration-style: solid;
// text-decoration: underline;
// text-decoration-color: fade(@yellow-500, 80%);
// text-decoration-thickness: 10px;
// text-underline-offset: -8px;
// text-decoration-skip-ink: none;
// &::after {
// position: absolute;
// width: 100%;
// height: 50%;
// bottom: -8px;
// background-color: fade(@yellow-500, 80%);
// }
}
// highlight in list(search result)
#ui__ac {
mark {
background: fade(@yellow-500, 80%);
margin: 0;
}
}

// bullet guide line
Expand Down

0 comments on commit 550aec6

Please sign in to comment.