@searpent/react-image-annotate 2.0.12 → 2.0.13

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.
@@ -0,0 +1,46 @@
1
+ /**
2
+ * Plugin styles
3
+ */
4
+ .ce-header {
5
+ padding: 0.6em 0 3px;
6
+ margin: 0;
7
+ line-height: 1.25em;
8
+ outline: none;
9
+ }
10
+
11
+ .ce-header p,
12
+ .ce-header div {
13
+ padding: 0 !important;
14
+ margin: 0 !important;
15
+ }
16
+
17
+ /**
18
+ * Styles for Plugin icon in Toolbar
19
+ */
20
+ .ce-header__icon {}
21
+
22
+ .ce-header[contentEditable=true][data-placeholder]::before {
23
+ position: absolute;
24
+ content: attr(data-placeholder);
25
+ color: #707684;
26
+ font-weight: normal;
27
+ display: none;
28
+ cursor: text;
29
+ }
30
+
31
+ .ce-header[contentEditable=true][data-placeholder]:empty::before {
32
+ display: block;
33
+ }
34
+
35
+ .ce-header[contentEditable=true][data-placeholder]:empty:focus::before {
36
+ display: none;
37
+ }
38
+
39
+ /* Custom overwrite */
40
+ .cdx-settings-button {
41
+ width: 100% !important;
42
+ }
43
+
44
+ .ce-settings__plugin-zone {
45
+ padding: 0 .25rem;
46
+ }
@@ -0,0 +1,198 @@
1
+ .page-selector {
2
+ height: 100vh;
3
+ overflow-y: scroll;
4
+ max-width: 10%;
5
+ transition: max-width .5s;
6
+ }
7
+
8
+ .page-selector--opened {
9
+ max-width: 20%;
10
+ }
11
+
12
+ .pages {
13
+ list-style: none;
14
+ padding: 1rem;
15
+ }
16
+
17
+ .page-thumbnail__wrapper {
18
+ display: flex;
19
+ flex-direction: row;
20
+ align-items: flex-start;
21
+ }
22
+
23
+ .page-thumbnail {
24
+ margin-bottom: 1rem;
25
+ border-radius: .25rem !important;
26
+ overflow: hidden;
27
+ filter: grayscale(1);
28
+ transition: transform .2s;
29
+ opacity: .5;
30
+ }
31
+
32
+ .page-thumbnail:hover {
33
+ box-shadow: 0 0 2rem 0 #8898aa !important;
34
+ filter: grayscale(0);
35
+ transform: scale(1.075);
36
+ cursor: pointer;
37
+ opacity: 1;
38
+ }
39
+
40
+ .page-thumbnail-is-active {
41
+ filter: grayscale(0);
42
+ opacity: 1;
43
+ }
44
+
45
+ .page-thumbnail img {
46
+ width: 100%;
47
+ }
48
+
49
+ .page-thumbnail__metadata {
50
+ padding: 1rem;
51
+ }
52
+
53
+ .page-thumbnail__metadata * {
54
+ display: block;
55
+ }
56
+
57
+ .top-buttons {
58
+ background: linear-gradient(#8898aa, rgba(255, 255, 255, 0));
59
+ position: sticky;
60
+ top: 0;
61
+ display: flex;
62
+ flex-direction: column;
63
+ padding: 1rem;
64
+ margin-bottom: 1rem;
65
+ z-index: 100;
66
+ }
67
+
68
+ .top-buttons button {
69
+ margin-bottom: 1rem;
70
+ width: 100%;
71
+ }
72
+
73
+ .top-buttons button:hover {
74
+ cursor: pointer;
75
+ }
76
+
77
+ .top-buttons button:disabled {
78
+ pointer-events: none;
79
+ opacity: .5;
80
+ }
81
+
82
+ .top-buttons button.info {
83
+ background-color: transparent;
84
+ border-radius: 0.5rem;
85
+ background-image: linear-gradient(310deg, #627594, #a8b8d8);
86
+ color: white;
87
+ border: none;
88
+ padding: 0.5rem 0;
89
+ }
90
+
91
+ .top-buttons button.success {
92
+ color: white;
93
+ background-image: linear-gradient(310deg, #2dce89, #2dcecc);
94
+ border-radius: 0.5rem;
95
+ border: none;
96
+ padding: 0.5rem 0;
97
+ }
98
+
99
+ .bottom-buttons {
100
+ background: linear-gradient(rgba(255, 255, 255, 0), #8898aa);
101
+ position: sticky;
102
+ bottom: 0;
103
+ display: flex;
104
+ flex-direction: column;
105
+ padding: 1rem;
106
+ margin-bottom: 1rem;
107
+ z-index: 100;
108
+ }
109
+
110
+
111
+ .page-number-wrapper {
112
+ position: absolute;
113
+ bottom: 0;
114
+ width: 100%;
115
+ height: 10%;
116
+ z-index: 100;
117
+ display: flex;
118
+ justify-content: center;
119
+ align-items: center;
120
+ background: linear-gradient(rgba(255, 255, 255, 0), #8898aa);
121
+ padding: .5rem 0;
122
+ }
123
+
124
+ .page-number {
125
+ font-size: 1.5rem;
126
+ font-weight: 800;
127
+ }
128
+
129
+ /* toggle */
130
+ .switch {
131
+ position: relative;
132
+ display: inline-block;
133
+ width: 60px;
134
+ height: 34px;
135
+ }
136
+
137
+ .switch input {
138
+ opacity: 0;
139
+ width: 0;
140
+ height: 0;
141
+ }
142
+
143
+ .slider {
144
+ position: absolute;
145
+ cursor: pointer;
146
+ top: 0;
147
+ left: 0;
148
+ right: 0;
149
+ bottom: 0;
150
+ background-color: #ccc;
151
+ -webkit-transition: .4s;
152
+ transition: .4s;
153
+ }
154
+
155
+ .slider:before {
156
+ position: absolute;
157
+ content: "";
158
+ height: 26px;
159
+ width: 26px;
160
+ left: 4px;
161
+ bottom: 4px;
162
+ background-color: white;
163
+ -webkit-transition: .4s;
164
+ transition: .4s;
165
+ }
166
+
167
+ input:checked+.slider {
168
+ background-color: #2196F3;
169
+ }
170
+
171
+ input:focus+.slider {
172
+ box-shadow: 0 0 1px #2196F3;
173
+ }
174
+
175
+ input:checked+.slider:before {
176
+ -webkit-transform: translateX(26px);
177
+ -ms-transform: translateX(26px);
178
+ transform: translateX(26px);
179
+ }
180
+
181
+ /* Rounded sliders */
182
+ .slider.round {
183
+ border-radius: 34px;
184
+ }
185
+
186
+ .slider.round:before {
187
+ border-radius: 50%;
188
+ }
189
+
190
+ .show-metadata-wrapper {
191
+ display: flex;
192
+ flex-direction: row;
193
+ align-items: center;
194
+ }
195
+
196
+ .mr-2 {
197
+ margin-right: 1rem;
198
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@searpent/react-image-annotate",
3
- "version": "2.0.12",
3
+ "version": "2.0.13",
4
4
  "dependencies": {
5
5
  "@editorjs/editorjs": "^2.25.0",
6
6
  "@editorjs/paragraph": "^2.8.0",