PTViewer visual updates
parent
1bdab8ed45
commit
edae389d35
|
@ -442,7 +442,7 @@
|
|||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-color: var(--p-content-border-color);
|
||||
border-color: var(--border-color);
|
||||
border-width: 0 1px 0 0;
|
||||
padding: 1rem;
|
||||
width: 75%;
|
||||
|
@ -461,16 +461,13 @@
|
|||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: .5rem;
|
||||
cursor: pointer;
|
||||
|
||||
&:hover {
|
||||
background-color: var(--p-content-hover-background);
|
||||
background-color: var(--hover-background);
|
||||
}
|
||||
|
||||
.doc-ptoption-text {
|
||||
color: var(--p-text-muted-color);
|
||||
font-size: 0.875rem;
|
||||
line-height: 1.25rem;
|
||||
.doc-ptoption-text:hover {
|
||||
cursor: default;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,8 +7,10 @@
|
|||
<template v-if="docs[0].data">
|
||||
<template v-for="doc of docs" :key="doc.key">
|
||||
<div v-for="item of handleData(doc.data)" :key="item.value" class="doc-ptoption" @mouseenter="enterSection(item, doc.key)" @mouseleave="leaveSection">
|
||||
<span>{{ item.label }}</span>
|
||||
<span class="doc-ptoption-text">{{ item.label }} element of {{ doc.key }} component</span>
|
||||
<span class="doc-ptoption-text">
|
||||
{{ item.label }}
|
||||
<template v-if="docs.length > 1">| {{ doc.key }}</template>
|
||||
</span>
|
||||
</div>
|
||||
</template>
|
||||
</template>
|
||||
|
@ -43,12 +45,12 @@ export default {
|
|||
if (this.hoveredElements.length === 0) this.hoveredElements = find(document.querySelector('body'), selector); //TODO:
|
||||
|
||||
this.hoveredElements?.forEach((el) => {
|
||||
addClass(el, '!ring !ring-red-500 !z-10');
|
||||
addClass(el, '!ring !ring-blue-500 !z-10');
|
||||
});
|
||||
},
|
||||
leaveSection() {
|
||||
this.hoveredElements.forEach((el) => {
|
||||
removeClass(el, '!ring !ring-red-500 !z-10');
|
||||
removeClass(el, '!ring !ring-blue-500 !z-10');
|
||||
});
|
||||
|
||||
this.hoveredElements = [];
|
||||
|
|
Loading…
Reference in New Issue