chore(docs): update visibility example styles
This commit is contained in:
@@ -29,12 +29,35 @@ watch(isHidden, () => {
|
|||||||
<Background />
|
<Background />
|
||||||
|
|
||||||
<Panel position="top-right">
|
<Panel position="top-right">
|
||||||
<div>
|
<button type="button" @click="isHidden = !isHidden">
|
||||||
<label for="ishidden">
|
{{ isHidden ? 'Show' : 'Hide' }}
|
||||||
hidden
|
</button>
|
||||||
<input id="ishidden" v-model="isHidden" type="checkbox" />
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
</Panel>
|
</Panel>
|
||||||
</VueFlow>
|
</VueFlow>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.vue-flow__panel {
|
||||||
|
background-color: #2d3748;
|
||||||
|
padding: 10px;
|
||||||
|
border-radius: 8px;
|
||||||
|
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
|
||||||
|
color: white;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 2px;
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
.vue-flow__panel button {
|
||||||
|
background-color: #4a5568;
|
||||||
|
border: none;
|
||||||
|
border-radius: 4px;
|
||||||
|
color: white;
|
||||||
|
cursor: pointer;
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: 600;
|
||||||
|
padding: 5px 10px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user