chore(docs): update example styles (#1469)

* chore(docs): update basic example styles

* chore(docs): update confirm delete example styles

* chore(docs): update dnd example styles

* chore(docs): update hidden example

* chore(docs): update update node example

* chore(docs): update node toolbar example styles

* chore(docs): update transition example styles

* chore(docs): cleanup basic example els

* chore(docs): cleanup examples
This commit is contained in:
Braks
2024-06-10 23:51:47 +02:00
committed by braks
parent 5dc8711a6b
commit d71de0a92d
34 changed files with 528 additions and 244 deletions
+30 -4
View File
@@ -17,9 +17,17 @@ function cancel() {
<template>
<div v-if="isVisible" class="dialog-overlay">
<div class="dialog">
<p>{{ message }}</p>
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24">
<path
fill="#e53e3e"
d="M7 21q-.825 0-1.412-.587T5 19V6H4V4h5V3h6v1h5v2h-1v13q0 .825-.587 1.413T17 21zm2-4h2V8H9zm4 0h2V8h-2z"
/>
</svg>
<div class="dialog-actions">
<p v-if="typeof message === 'string'">{{ message }}</p>
<component :is="message" v-else />
<div class="actions">
<button @click="confirm">Confirm</button>
<button @click="cancel">Cancel</button>
</div>
@@ -42,16 +50,34 @@ function cancel() {
}
.dialog {
background: white;
background: #2d3748;
padding: 20px;
border-radius: 5px;
text-align: center;
color: white;
}
.dialog-actions {
.dialog .actions {
margin-top: 20px;
display: flex;
justify-content: center;
gap: 8px;
}
.dialog .actions button {
background: #4a5568;
color: white;
border: none;
padding: 8px 16px;
border-radius: 5px;
cursor: pointer;
}
.dialog .actions button:first-of-type:hover {
background: #2563eb;
}
.dialog .actions button:last-of-type:hover {
background: #e53e3e;
}
</style>