mirror of
https://codeberg.org/Hyperpipe/Hyperpipe
synced 2025-06-29 21:38:01 +02:00
Added info page
This commit is contained in:
parent
2b55ff908f
commit
466068ae12
5 changed files with 73 additions and 34 deletions
36
src/components/TextModal.vue
Normal file
36
src/components/TextModal.vue
Normal file
|
@ -0,0 +1,36 @@
|
|||
<template>
|
||||
<div class="txt-modal">
|
||||
<slot name="content"></slot>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.txt-modal {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
position: fixed;
|
||||
top: 2rem;
|
||||
bottom: 5rem;
|
||||
right: 1rem;
|
||||
width: 30rem;
|
||||
max-width: calc(100% - 2rem);
|
||||
background: var(--color-background-mute);
|
||||
border-radius: 0.5rem;
|
||||
z-index: 99999;
|
||||
box-shadow: 0.1rem 0.1rem 1rem var(--color-shadow);
|
||||
padding: 1rem;
|
||||
overflow-y: auto;
|
||||
}
|
||||
:deep(pre) {
|
||||
font-family: inherit;
|
||||
font-size: 1.25rem;
|
||||
letter-spacing: 0.125rem;
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
||||
:deep(div) {
|
||||
padding: 1rem;
|
||||
letter-spacing: 0.1rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
</style>
|
Loading…
Add table
Add a link
Reference in a new issue