@sepveneto/free-dom 0.5.1 → 0.7.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.css CHANGED
@@ -1,33 +1,16 @@
1
- /* ../../../../../../../tmp/tmp-1795-zVwjx0wkBECQ/core/src/style/index.css */
1
+ /* ../../../../../../../tmp/tmp-1911-cJ4ZBsbJbPIk/core/src/style/index.css */
2
2
  :root {
3
- --free-dom-theme: #4089ef;
4
- --free-dom-line: var(--free-dom-theme);
5
- --free-dom-dot-border: var(--free-dom-theme);
6
- --free-dom-line-border: var(--free-dom-theme);
7
- --free-dom-dot-size: 10px;
8
- }
9
- .free-dom__line {
10
- background: var(--free-dom-line-border);
11
- position: absolute;
12
- z-index: 1000;
13
- }
14
- .free-dom__xline {
15
- left: 0;
16
- width: 100%;
17
- height: 1px;
18
- }
19
- .free-dom__yline {
20
- top: 0;
21
- width: 1px;
22
- height: 100%;
3
+ --vv-free-dom--theme: #4089ef;
4
+ --vv-free-dom--line: var(--vv-free-dom--theme);
5
+ --free-dom-dot: var(--vv-free-dom--theme);
6
+ --vv-grid-layout--placeholder: crimson;
7
+ --vv-grid-layout--placeholder__opacity: 0.2;
23
8
  }
24
9
  .free-dom__widget-wrapper {
25
10
  display: inline-block;
26
- border: 1px dashed transparent;
27
11
  transition: border-color 0.3s;
28
12
  box-sizing: content-box;
29
13
  user-select: none;
30
- overflow: hidden;
31
14
  }
32
15
  .free-dom__widget-wrapper.is-absolute {
33
16
  position: absolute;
@@ -75,3 +58,102 @@
75
58
  border-right: 2px solid rgba(0, 0, 0, 0.4);
76
59
  border-bottom: 2px solid rgba(0, 0, 0, 0.4);
77
60
  }
61
+ .vv-free-dom--draggable {
62
+ cursor: move;
63
+ }
64
+ .vv-free-dom--line {
65
+ background: var(--vv-free-dom--line);
66
+ position: absolute;
67
+ z-index: 1000;
68
+ }
69
+ .vv-free-dom--xline {
70
+ left: 0;
71
+ width: 100%;
72
+ height: 1px;
73
+ }
74
+ .vv-free-dom--yline {
75
+ top: 0;
76
+ width: 1px;
77
+ height: 100%;
78
+ }
79
+ .vv-free-dom--scene {
80
+ position: relative;
81
+ }
82
+ .vv-grid-layout {
83
+ position: relative;
84
+ transition: height 0.2s;
85
+ }
86
+ .vv-grid-layout--placeholder {
87
+ background: var(--vv-grid-layout--placeholder);
88
+ opacity: var(--vv-grid-layout--placeholder__opacity);
89
+ transition-duration: 100ms !important;
90
+ z-index: 2;
91
+ }
92
+ .vv-grid-layout--item {
93
+ transition: transform 0.2s;
94
+ }
95
+ .vv-grid-layout--item.vv-grid-layout--item__draggable {
96
+ transition: none;
97
+ z-index: 1;
98
+ }
99
+ .vv-resize-dom--handler__t {
100
+ top: 0;
101
+ left: 50%;
102
+ transform: translateX(-50%) rotate(225deg);
103
+ cursor: ns-resize;
104
+ }
105
+ .vv-resize-dom--handler__l {
106
+ top: 50%;
107
+ left: 0;
108
+ transform: translateY(-50%) rotate(135deg);
109
+ cursor: ew-resize;
110
+ }
111
+ .vv-resize-dom--handler__r {
112
+ top: 50%;
113
+ right: 0;
114
+ transform: translateY(-50%) rotate(-45deg);
115
+ cursor: ew-resize;
116
+ }
117
+ .vv-resize-dom--handler__b {
118
+ bottom: 0;
119
+ left: 50%;
120
+ transform: translateX(-50%) rotate(45deg);
121
+ cursor: ns-resize;
122
+ }
123
+ .vv-resize-dom--handler__lt {
124
+ top: 0;
125
+ left: 0;
126
+ transform: rotate(180deg);
127
+ cursor: nw-resize;
128
+ }
129
+ .vv-resize-dom--handler__rt {
130
+ top: 0;
131
+ right: 0;
132
+ transform: rotate(-90deg);
133
+ cursor: ne-resize;
134
+ }
135
+ .vv-resize-dom--handler__lb {
136
+ bottom: 0;
137
+ left: 0;
138
+ transform: rotate(90deg);
139
+ cursor: ne-resize;
140
+ }
141
+ .vv-resize-dom--handler__rb {
142
+ bottom: 0;
143
+ right: 0;
144
+ cursor: nw-resize;
145
+ }
146
+ .vv-resize-dom--handler {
147
+ position: absolute;
148
+ width: 20px;
149
+ height: 20px;
150
+ padding: 0 3px 3px 0;
151
+ background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2IDYiIHN0eWxlPSJiYWNrZ3JvdW5kLWNvbG9yOiNmZmZmZmYwMCIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI2cHgiIGhlaWdodD0iNnB4Ij48ZyBvcGFjaXR5PSIwLjMwMiI+PHBhdGggZD0iTSA2IDYgTCAwIDYgTCAwIDQuMiBMIDQgNC4yIEwgNC4yIDQuMiBMIDQuMiAwIEwgNiAwIEwgNiA2IEwgNiA2IFoiIGZpbGw9IiMwMDAwMDAiLz48L2c+PC9zdmc+);
152
+ background-origin: content-box;
153
+ background-position: bottom right;
154
+ background-repeat: no-repeat;
155
+ box-sizing: border-box;
156
+ }
157
+ .vv-resize-dom--disabled {
158
+ display: none;
159
+ }