mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
docs: optimized link style (#4027)
This commit is contained in:
@@ -22,6 +22,10 @@
|
||||
.doc-content a {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
&.vp-link {
|
||||
white-space: nowrap;
|
||||
word-break: keep-all;
|
||||
}
|
||||
.link-icon {
|
||||
margin-left: 0.25rem;
|
||||
height: 1em;
|
||||
|
||||
@@ -78,6 +78,7 @@ export function insertLinkIcon(contentRef: any) {
|
||||
)
|
||||
|
||||
links.forEach((link: any) => {
|
||||
link.classList.add('vp-link')
|
||||
if (
|
||||
!link.href.startsWith(window.origin) &&
|
||||
!link.innerHTML.includes('<img')
|
||||
|
||||
Reference in New Issue
Block a user