|
|
@@ -183,12 +183,15 @@
|
|
|
>
|
|
|
<div
|
|
|
ref="canvas"
|
|
|
- class="c-designer__canvas has-bg"
|
|
|
- :class="{ dragging }"
|
|
|
+ class="c-designer__canvas"
|
|
|
:style="[transformStyles, styles]"
|
|
|
@dragover.prevent
|
|
|
@drop.prevent="widgetOnDrop"
|
|
|
>
|
|
|
+ <div
|
|
|
+ class="c-designer__background has-bg"
|
|
|
+ :style="backgroundStyles"
|
|
|
+ />
|
|
|
<div
|
|
|
v-show="grid"
|
|
|
class="c-designer__grid"
|
|
|
@@ -893,10 +896,10 @@ $drak: #242a30;
|
|
|
|
|
|
&__canvas {
|
|
|
position: relative;
|
|
|
- overflow: visible;
|
|
|
background-color: #000;
|
|
|
+ overflow: visible;
|
|
|
|
|
|
- &::after {
|
|
|
+ &::before {
|
|
|
content: "";
|
|
|
position: absolute;
|
|
|
top: 0;
|
|
|
@@ -906,24 +909,23 @@ $drak: #242a30;
|
|
|
background-color: currentColor;
|
|
|
z-index: -1;
|
|
|
}
|
|
|
+ }
|
|
|
|
|
|
- &.dragging::after {
|
|
|
- content: "";
|
|
|
- position: absolute;
|
|
|
- top: 0;
|
|
|
- left: 0;
|
|
|
- right: 0;
|
|
|
- bottom: 0;
|
|
|
- z-index: 9;
|
|
|
- }
|
|
|
+ &__background {
|
|
|
+ position: absolute;
|
|
|
+ top: 0;
|
|
|
+ left: 0;
|
|
|
+ right: 0;
|
|
|
+ bottom: 0;
|
|
|
+ z-index: -1;
|
|
|
}
|
|
|
|
|
|
&__grid {
|
|
|
position: absolute;
|
|
|
top: 0;
|
|
|
left: 0;
|
|
|
- width: 100%;
|
|
|
- height: 100%;
|
|
|
+ right: 0;
|
|
|
+ bottom: 0;
|
|
|
background-size: 30px 30px, 30px 30px;
|
|
|
background-image: linear-gradient(hsla(0, 0%, 100%, 0.1) 1px, transparent 0),
|
|
|
linear-gradient(90deg, hsla(0, 0%, 100%, 0.1) 1px, transparent 0);
|