forked from AkkomaGang/akkoma-fe
updated preview to account for underlay
This commit is contained in:
parent
8462853269
commit
e46bb94226
4 changed files with 112 additions and 96 deletions
|
@ -31,9 +31,11 @@ h4 {
|
||||||
margin: auto;
|
margin: auto;
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
max-width: 980px;
|
max-width: 980px;
|
||||||
|
align-content: flex-start;
|
||||||
|
}
|
||||||
|
.underlay {
|
||||||
background-color: rgba(0,0,0,0.15);
|
background-color: rgba(0,0,0,0.15);
|
||||||
background-color: var(--underlay, rgba(0,0,0,0.15));
|
background-color: var(--underlay, rgba(0,0,0,0.15));
|
||||||
align-content: flex-start;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.text-center {
|
.text-center {
|
||||||
|
|
|
@ -78,7 +78,7 @@
|
||||||
</nav>
|
</nav>
|
||||||
<div
|
<div
|
||||||
id="content"
|
id="content"
|
||||||
class="container"
|
class="container underlay"
|
||||||
>
|
>
|
||||||
<div class="sidebar-flexer mobile-hidden">
|
<div class="sidebar-flexer mobile-hidden">
|
||||||
<div class="sidebar-bounds">
|
<div class="sidebar-bounds">
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
|
<div class="preview-container">
|
||||||
|
<div class="underlay underlay-preview"/>
|
||||||
<div class="panel dummy">
|
<div class="panel dummy">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<div class="title">
|
<div class="title">
|
||||||
|
@ -98,4 +100,18 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
<style lang="scss">
|
||||||
|
.preview-container {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
.underlay-preview {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
bottom: 0;
|
||||||
|
left: 10px;
|
||||||
|
right: 10px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
|
@ -116,9 +116,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="preview-container">
|
|
||||||
<preview :style="previewRules" />
|
<preview :style="previewRules" />
|
||||||
</div>
|
|
||||||
|
|
||||||
<keep-alive>
|
<keep-alive>
|
||||||
<tab-switcher key="style-tweak">
|
<tab-switcher key="style-tweak">
|
||||||
|
|
Loading…
Reference in a new issue