@websline/cms-view-utils 0.20.0 → 0.22.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@websline/cms-view-utils",
3
- "version": "0.20.0",
3
+ "version": "0.22.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./src/index.js"
@@ -10,8 +10,8 @@
10
10
  ],
11
11
  "sideEffects": false,
12
12
  "peerDependencies": {
13
- "astro": "^5.8.0",
14
- "svelte": "^5.33.3"
13
+ "astro": "^5.8.1",
14
+ "svelte": "^5.33.10"
15
15
  },
16
16
  "scripts": {
17
17
  "bump:minor": "pnpm version minor --no-git-tag-version",
@@ -1,19 +1,19 @@
1
1
  [data-drop-zone] {
2
- transition: all 0.2s ease-in-out;
3
2
  height: 0px;
4
3
  margin-left: auto;
5
4
  margin-right: auto;
6
- width: 100%;
7
5
  max-width: min(1440px, calc(100% - 48px));
6
+ transition: all 0.2s ease-in-out;
7
+ width: 100%;
8
8
  }
9
9
  [data-drop-zone].highlight {
10
- border: 1.5px dashed var(--cms-drop-zone-border, #000);
10
+ border: 1.5px dashed var(--cms-drop-zone-border, #1168af);
11
11
  height: 60px;
12
12
  margin-top: 24px;
13
13
  margin-bottom: 24px;
14
14
  }
15
15
  [data-drop-zone].highlight:hover {
16
- background-color: var(--cms-drop-zone-background, rgba(0, 0, 0, 0.5));
16
+ background-color: var(--cms-drop-zone-background, rgba(17, 104, 175, 0.5));
17
17
  }
18
18
 
19
19
  [data-edit-block] {
@@ -22,47 +22,42 @@
22
22
  }
23
23
  [data-edit-block-hover] {
24
24
  &:after {
25
+ background: var(--cms-edit-block-background, #5aaff48c);
26
+ border-radius: 8px;
27
+ bottom: 0;
25
28
  content: "";
26
29
  display: block;
27
- border-radius: 8px;
30
+ left: 0;
31
+ pointer-events: none;
28
32
  position: absolute;
33
+ right: 0;
29
34
  top: 0;
30
- left: 0;
31
35
  z-index: 1;
32
- right: 0;
33
- bottom: 0;
34
- pointer-events: none;
35
- background: var(--cms-edit-block-background, #7db2ddab);
36
36
  }
37
37
  }
38
38
  [data-edit-block-hover] > [data-edit-block-menu] {
39
39
  display: flex;
40
40
  }
41
41
  [data-edit-block-menu] {
42
- background: var(--cms-edit-block-menu-bg, #000000);
42
+ background: var(--cms-edit-block-menu-bg, #1168af);
43
43
  border-radius: 4px;
44
44
  display: none;
45
- color: inherit;
46
- position: absolute;
47
- top: -5px;
48
45
  left: 0;
49
46
  overflow: hidden;
47
+ position: absolute;
48
+ top: -5px;
50
49
  transform: translate(0, -100%);
51
50
  }
52
51
  [data-edit-block-item] {
53
52
  color: var(--cms-edit-block-menu-color, #fff);
54
53
  cursor: pointer;
55
54
  font-family: "Ancizar Sans", sans-serif;
56
- font-weight: 400;
57
55
  font-size: 14px;
58
- padding: 8px 8px 8px 12px;
56
+ font-weight: 400;
57
+ padding: 8px;
59
58
 
60
59
  &:hover {
61
- background: var(--cms-edit-block-menu-bg-hover, #1b1726);
60
+ background: var(--cms-edit-block-menu-bg-hover, #0d5d9e);
62
61
  color: var(--cms-edit-block-menu-color-hover, #fff);
63
62
  }
64
63
  }
65
- [data-edit-block-item-delete] {
66
- padding-left: 8px;
67
- padding-right: 12px;
68
- }
@@ -38,7 +38,6 @@ const enableEditBlocks = () => {
38
38
 
39
39
  editBlocks.forEach((el) => {
40
40
  el.addEventListener("mouseover", () => {
41
- // check if dragging is in progress
42
41
  if (document.body.classList.contains("cms-editor-is-dragging")) {
43
42
  return;
44
43
  }