editorjs-image 1.0.1
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/README.md +136 -0
- package/package.json +23 -0
- package/src/cropper.css +305 -0
- package/src/cropper.js +3260 -0
- package/src/image-tool-tune.css +137 -0
- package/src/image-tool-tune.js +896 -0
- package/src/index.js +2 -0
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
.cdx-image-tool-tune--floatLeft.ce-block__content,
|
|
2
|
+
.cdx-image-tool-tune--floatRight.ce-block__content {
|
|
3
|
+
min-height: 20px;
|
|
4
|
+
padding-top: 20px;
|
|
5
|
+
margin-bottom: -20px;
|
|
6
|
+
margin-top: -20px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.cdx-image-tool-tune--center .cdx-block {
|
|
10
|
+
margin: auto;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.cdx-image-tool-tune--floatLeft .cdx-block {
|
|
14
|
+
float: left;
|
|
15
|
+
margin-right: 10px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.cdx-image-tool-tune--floatRight .cdx-block {
|
|
19
|
+
float: right;
|
|
20
|
+
margin-left: 10px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.cdx-image-tool-tune--sizeSmall .cdx-block {
|
|
24
|
+
max-width: 50%;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.cdx-image-tool-tune--sizeMiddle .cdx-block {
|
|
28
|
+
max-width: 70%;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.cdx-image-tool-tune--sizeLarge .cdx-block {
|
|
32
|
+
max-width: 100%;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
.cdx-image-tool-tune--resize .cdx-block {
|
|
38
|
+
position: relative;
|
|
39
|
+
overflow: visible;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.cdx-image-tool-tune--resize .cdx-block .resizable {
|
|
43
|
+
display: none;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.cdx-image-tool-tune--resize .cdx-block:hover .resizable {
|
|
47
|
+
display: block;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.cdx-image-tool-tune--resize .cdx-block .resizable .resizers .resizer {
|
|
51
|
+
width: 10px;
|
|
52
|
+
height: 10px;
|
|
53
|
+
border-radius: 50%;
|
|
54
|
+
background: white;
|
|
55
|
+
border: 3px solid #4286f4;
|
|
56
|
+
position: absolute;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.cdx-image-tool-tune--resize .cdx-block .resizable .resizers .resizer.top-left {
|
|
60
|
+
left: -5px;
|
|
61
|
+
top: -5px;
|
|
62
|
+
cursor: nwse-resize;
|
|
63
|
+
/*resizer cursor*/
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.cdx-image-tool-tune--resize .cdx-block .resizable .resizers .resizer.top-right {
|
|
67
|
+
right: -5px;
|
|
68
|
+
top: -5px;
|
|
69
|
+
cursor: nesw-resize;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.cdx-image-tool-tune--resize .cdx-block .resizable .resizers .resizer.bottom-left {
|
|
73
|
+
left: -5px;
|
|
74
|
+
bottom: -5px;
|
|
75
|
+
cursor: nesw-resize;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.cdx-image-tool-tune--resize .cdx-block .resizable .resizers .resizer.bottom-right {
|
|
79
|
+
right: -5px;
|
|
80
|
+
bottom: -5px;
|
|
81
|
+
cursor: nwse-resize;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
.cdx-image-tool-tune--crop:hover,
|
|
88
|
+
.cdx-image-tool-tune--crop.isCropping,
|
|
89
|
+
.cdx-image-tool-tune--resize:hover {
|
|
90
|
+
z-index: 1;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.cdx-image-tool-tune--crop .image-tool__image {
|
|
94
|
+
position: relative;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.cdx-image-tool-tune--crop .isCropping .image-tool__image {
|
|
98
|
+
min-height: 600px;
|
|
99
|
+
min-width: 100%;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
.cdx-image-tool-tune--crop .image-tool__image .crop-btn,
|
|
105
|
+
.cdx-image-tool-tune--crop .image-tool__image .crop-save {
|
|
106
|
+
position: absolute;
|
|
107
|
+
top: 0;
|
|
108
|
+
right: 0;
|
|
109
|
+
padding: 5px;
|
|
110
|
+
background: #4286f4;
|
|
111
|
+
border-radius: 5px;
|
|
112
|
+
color: white;
|
|
113
|
+
text-align: center;
|
|
114
|
+
line-height: 20px;
|
|
115
|
+
cursor: pointer;
|
|
116
|
+
display: none;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.cdx-image-tool-tune--crop .image-tool__image:hover .crop-btn,
|
|
120
|
+
.cdx-image-tool-tune--crop .image-tool__image:hover .crop-save {
|
|
121
|
+
display: block;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.cdx-image-tool-tune--crop .image-tool__image img.isCropped {
|
|
125
|
+
position: absolute;
|
|
126
|
+
min-width: unset;
|
|
127
|
+
max-width: unset;
|
|
128
|
+
min-height: unset;
|
|
129
|
+
max-height: unset;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.cdx-image-tool-tune--crop .cdx-block.image-tool.isCropping {
|
|
133
|
+
min-width: unset !important;
|
|
134
|
+
max-width: unset !important;
|
|
135
|
+
min-height: unset !important;
|
|
136
|
+
max-height: unset !important;
|
|
137
|
+
}
|