Improve client preview styles to work with increase client padding
This commit is contained in:
parent
de9b80e23d
commit
8540f4020b
|
@ -275,6 +275,7 @@
|
|||
src="/app/preview"
|
||||
class:hidden={loading || error}
|
||||
/>
|
||||
<div class="underlay" />
|
||||
<div
|
||||
class="add-component"
|
||||
class:active={isAddingComponent}
|
||||
|
@ -295,11 +296,10 @@
|
|||
<style>
|
||||
.loading {
|
||||
position: absolute;
|
||||
container-type: inline-size;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border: 2px solid transparent;
|
||||
box-sizing: border-box;
|
||||
width: calc(100% - 12px);
|
||||
height: calc(100% - 12px);
|
||||
left: 6px;
|
||||
top: 6px;
|
||||
}
|
||||
|
||||
.loading.tablet {
|
||||
|
@ -318,7 +318,6 @@
|
|||
display: grid;
|
||||
place-items: center;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
margin: auto;
|
||||
height: 100%;
|
||||
}
|
||||
|
@ -363,6 +362,17 @@
|
|||
height: 100%;
|
||||
}
|
||||
|
||||
.underlay {
|
||||
position: absolute;
|
||||
background: var(--spectrum-global-color-gray-200);
|
||||
z-index: -1;
|
||||
--offset: 2px;
|
||||
width: calc(100% - 12px + 2 * var(--offset));
|
||||
height: calc(100% - 12px + 2 * var(--offset));
|
||||
left: calc(6px - var(--offset));
|
||||
top: calc(6px - var(--offset));
|
||||
}
|
||||
|
||||
.add-component {
|
||||
position: absolute;
|
||||
bottom: 20px;
|
||||
|
|
|
@ -58,7 +58,6 @@
|
|||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
border-radius: 4px;
|
||||
overflow: hidden;
|
||||
background-color: var(--spectrum-global-color-gray-200);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue