@colijnit/inphoto 300.1.0 → 300.1.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/assets/inphoto-make-selection.jpg +0 -0
- package/assets/inphoto-redesign-ai.jpg +0 -0
- package/assets/inphoto-remove-all.jpg +0 -0
- package/assets/inphoto-select-all.png +0 -0
- package/assets/inphoto-single-select.png +0 -0
- package/fesm2022/colijnit-inphoto.mjs +5682 -2193
- package/fesm2022/colijnit-inphoto.mjs.map +1 -1
- package/icons/angle_down_solid_full.svg +1 -0
- package/icons/angle_up_solid_full.svg +1 -0
- package/icons/arrow_left_solid_full.svg +1 -0
- package/icons/arrow_right_solid_full.svg +1 -0
- package/icons/arrow_rotate_left_solid_full.svg +1 -0
- package/icons/arrow_up_from_bracket_solid.svg +1 -0
- package/icons/arrow_up_right_and_arrow_down_left_from_center_solid_full.svg +1 -0
- package/icons/arrow_up_to_bracket_duotone_regular.svg +1 -0
- package/icons/brush_solid_full.svg +1 -0
- package/icons/caret_down_solid_full.svg +1 -0
- package/icons/caret_up_solid_full.svg +1 -0
- package/icons/check_solid_full.svg +1 -0
- package/icons/circle_info_regular_full.svg +1 -0
- package/icons/cloud_arrow_up_regular.svg +1 -0
- package/icons/copy_light.svg +1 -0
- package/icons/couch_solid_full.svg +1 -0
- package/icons/cross_skinny.svg +1 -0
- package/icons/cube_regular_full.svg +1 -0
- package/icons/draw_square_regular.svg +1 -0
- package/icons/eraser_regular.svg +1 -0
- package/icons/eraser_solid_full.svg +1 -0
- package/icons/file_vector_light.svg +1 -0
- package/icons/fill_solid_full.svg +1 -0
- package/icons/grip_dots_vertical_solid.svg +1 -0
- package/icons/grip_vertical_sharp_solid.svg +1 -0
- package/icons/image_circle_arrow_down_solid_full.svg +1 -0
- package/icons/image_circle_xmark_solid_full.svg +1 -0
- package/icons/image_solid_full.svg +1 -0
- package/icons/images_sharp_solid_full.svg +1 -0
- package/icons/info_solid_full.svg +1 -0
- package/icons/lightbulb_regular_full.svg +1 -0
- package/icons/lock_solid_full.svg +1 -0
- package/icons/paintbrush_regular.svg +1 -0
- package/icons/pen_to_square_solid_full.svg +1 -0
- package/icons/rotate_left_sharp_solid_full.svg +1 -0
- package/icons/rotate_solid_full.svg +1 -0
- package/icons/save_skinny.svg +3 -0
- package/icons/scale.svg +1 -0
- package/icons/sharp_regular_object_group_pen.svg +1 -0
- package/icons/sparkles_regular_full.svg +1 -0
- package/icons/trash_can_light.svg +1 -0
- package/icons/up_down_left_right_solid_full.svg +1 -0
- package/icons/upload_solid_full.svg +1 -0
- package/icons/wand_magic_sparkles.svg +1 -0
- package/icons/wand_magic_sparkles_sharp_regular.svg +1 -0
- package/icons/xmark_solid_full.svg +1 -0
- package/index.d.ts +840 -342
- package/lib/component/ai-prompt/style/_layout.scss +125 -0
- package/lib/component/ai-prompt/style/_theme.scss +9 -0
- package/lib/component/back-next-buttons/style/_layout.scss +2 -2
- package/lib/component/back-next-buttons/style/_theme.scss +33 -22
- package/lib/component/canvas-tool-bar/style/_layout.scss +135 -0
- package/lib/component/canvas-tool-bar/style/_material-definition.scss +4 -0
- package/lib/component/canvas-tool-bar/style/_theme.scss +11 -0
- package/lib/component/catalog/style/_layout.scss +8 -35
- package/lib/component/catalog/style/_material-definition.scss +2 -1
- package/lib/component/catalog/style/_theme.scss +41 -7
- package/lib/component/{model-list-item → configuration-side-bar-menu}/style/_layout.scss +19 -37
- package/lib/component/configuration-side-bar-menu/style/_material-definition.scss +3 -0
- package/lib/component/configuration-side-bar-menu/style/_theme.scss +10 -0
- package/lib/component/edit-canvas/style/_layout.scss +10 -38
- package/lib/component/edit-canvas/style/_theme.scss +2 -27
- package/lib/component/error-dialog/style/_layout.scss +5 -6
- package/lib/component/error-dialog/style/_theme.scss +2 -2
- package/lib/component/image-enhancer/style/_layout.scss +75 -18
- package/lib/component/image-enhancer/style/_theme.scss +26 -14
- package/lib/component/image-enhancer-style/style/_layout.scss +53 -6
- package/lib/component/image-enhancer-style/style/_theme.scss +26 -2
- package/lib/component/image-enhancer-upload/style/_layout.scss +8 -9
- package/lib/component/image-enhancer-upload/style/_theme.scss +36 -2
- package/lib/component/image-history/style/_layout.scss +114 -20
- package/lib/component/image-history/style/_theme.scss +19 -7
- package/lib/component/image-history-tile/style/_layout.scss +46 -32
- package/lib/component/image-history-tile/style/_theme.scss +4 -4
- package/lib/component/image-process-complete/components/image-process-complete-next/style/_layout.scss +45 -0
- package/lib/component/image-process-complete/components/image-process-complete-next/style/_material-definition.scss +3 -0
- package/lib/component/image-process-complete/components/image-process-complete-next/style/_theme.scss +10 -0
- package/lib/component/image-process-complete/components/image-process-complete-next/style/material.scss +3 -0
- package/lib/component/image-process-complete/style/_layout.scss +56 -0
- package/lib/component/image-process-complete/style/_material-definition.scss +3 -0
- package/lib/component/image-process-complete/style/_theme.scss +66 -0
- package/lib/component/image-process-complete/style/material.scss +3 -0
- package/lib/component/image-tile/components/color-palette-option/style/_layout.scss +17 -0
- package/lib/component/image-tile/components/color-palette-option/style/_material-definition.scss +3 -0
- package/lib/component/image-tile/components/color-palette-option/style/_theme.scss +12 -0
- package/lib/component/image-tile/components/color-palette-option/style/material.scss +3 -0
- package/lib/component/image-tile/style/_layout.scss +100 -0
- package/lib/component/image-tile/style/_material-definition.scss +3 -0
- package/lib/component/image-tile/style/_theme.scss +8 -0
- package/lib/component/image-tile/style/material.scss +3 -0
- package/lib/component/image-upload/style/_layout.scss +34 -18
- package/lib/component/image-upload/style/_material-definition.scss +3 -3
- package/lib/component/image-upload/style/_theme.scss +29 -20
- package/lib/component/inphoto/style/_layout.scss +2 -10
- package/lib/component/inphoto/style/_theme.scss +2 -2
- package/lib/component/photo-editor/style/_layout.scss +9 -24
- package/lib/component/photo-editor/style/_theme.scss +2 -2
- package/lib/component/prepare-starting-image/style/_layout.scss +82 -23
- package/lib/component/prepare-starting-image/style/_material-definition.scss +1 -3
- package/lib/component/prepare-starting-image/style/_theme.scss +108 -53
- package/lib/component/process-loader/style/_layout.scss +69 -14
- package/lib/component/process-loader/style/_material-definition.scss +3 -0
- package/lib/component/process-loader/style/_theme.scss +85 -9
- package/lib/component/ready-to-add-articles/style/_layout.scss +65 -0
- package/lib/component/ready-to-add-articles/style/_material-definition.scss +3 -0
- package/lib/component/ready-to-add-articles/style/_theme.scss +95 -0
- package/lib/component/ready-to-add-articles/style/material.scss +3 -0
- package/lib/component/scene-context-menu/style/_layout.scss +90 -0
- package/lib/component/scene-context-menu/style/_material-definition.scss +3 -0
- package/lib/component/scene-context-menu/style/_theme.scss +8 -0
- package/lib/component/scene-context-menu/style/material.scss +3 -0
- package/lib/component/segment-inpaint/components/inpaint-info-card/style/_layout.scss +49 -0
- package/lib/component/segment-inpaint/components/inpaint-info-card/style/_material-definition.scss +3 -0
- package/lib/component/segment-inpaint/components/inpaint-info-card/style/_theme.scss +10 -0
- package/lib/component/segment-inpaint/components/inpaint-info-card/style/material.scss +3 -0
- package/lib/component/segment-inpaint/style/_layout.scss +52 -0
- package/lib/component/segment-inpaint/style/_material-definition.scss +3 -0
- package/lib/component/segment-inpaint/style/_theme.scss +11 -0
- package/lib/component/segment-inpaint/style/material.scss +3 -0
- package/lib/component/side-bar-menu/style/_layout.scss +24 -19
- package/lib/component/side-bar-menu/style/_theme.scss +2 -15
- package/lib/component/threed-to-ai/style/_layout.scss +38 -0
- package/lib/component/threed-to-ai/style/_material-definition.scss +3 -0
- package/lib/component/threed-to-ai/style/_theme.scss +6 -0
- package/lib/component/threed-to-ai/style/material.scss +3 -0
- package/lib/component/threedscene/style/_layout.scss +12 -41
- package/lib/component/threedscene/style/_theme.scss +3 -33
- package/lib/component/upload-starting-image/style/_layout.scss +40 -31
- package/lib/component/upload-starting-image/style/_theme.scss +31 -13
- package/lib/style/_index.scss +2 -0
- package/lib/style/_mixin.scss +28 -0
- package/lib/style/_variables.scss +41 -35
- package/lib/style/inphoto-globals.scss +15 -0
- package/package.json +1 -1
- package/lib/component/model-list/style/_layout.scss +0 -7
- package/lib/component/model-list/style/_theme.scss +0 -10
- package/lib/component/model-list-item/style/_material-definition.scss +0 -4
- package/lib/component/model-list-item/style/_theme.scss +0 -10
- package/lib/component/step-menu/style/_layout.scss +0 -43
- package/lib/component/step-menu/style/_material-definition.scss +0 -7
- package/lib/component/step-menu/style/_theme.scss +0 -44
- package/lib/style/app-globals.scss +0 -26
- /package/lib/component/{model-list → ai-prompt}/style/_material-definition.scss +0 -0
- /package/lib/component/{model-list-item → ai-prompt}/style/material.scss +0 -0
- /package/lib/component/{model-list → canvas-tool-bar}/style/material.scss +0 -0
- /package/lib/component/{step-menu → configuration-side-bar-menu}/style/material.scss +0 -0
|
@@ -1,52 +1,66 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use '../../../style' as cfg;
|
|
2
2
|
|
|
3
|
-
@include export-module('co-image-history-tile-layout') {
|
|
3
|
+
@include cfg.export-module('co-image-history-tile-layout') {
|
|
4
4
|
.co-image-history-tile {
|
|
5
|
+
flex: 0 0 auto;
|
|
6
|
+
width: 160px;
|
|
5
7
|
|
|
6
8
|
.image-history-item {
|
|
7
|
-
width: 100%;
|
|
8
|
-
height: 100%;
|
|
9
|
-
max-height: 250px;
|
|
10
9
|
position: relative;
|
|
10
|
+
width: 100%;
|
|
11
|
+
height: 115px;
|
|
12
|
+
border-radius: var(--co-inphoto-border-radius);
|
|
13
|
+
overflow: hidden;
|
|
14
|
+
cursor: pointer;
|
|
11
15
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
position: absolute;
|
|
15
|
-
top: 0;
|
|
16
|
-
left: 0;
|
|
16
|
+
img {
|
|
17
|
+
display: block;
|
|
17
18
|
width: 100%;
|
|
18
19
|
height: 100%;
|
|
19
|
-
|
|
20
|
+
object-fit: cover;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.tile-action {
|
|
24
|
+
position: absolute;
|
|
20
25
|
display: flex;
|
|
21
|
-
flex-direction: column;
|
|
22
26
|
align-items: center;
|
|
23
|
-
justify-content:
|
|
27
|
+
justify-content: center;
|
|
28
|
+
width: 26px;
|
|
29
|
+
height: 26px;
|
|
30
|
+
border-radius: 50%;
|
|
31
|
+
color: #ffffff;
|
|
32
|
+
background: rgba(0, 0, 0, 0.55);
|
|
33
|
+
opacity: 0;
|
|
34
|
+
transition: opacity 0.15s ease;
|
|
35
|
+
z-index: 1;
|
|
24
36
|
|
|
25
|
-
.
|
|
26
|
-
|
|
27
|
-
}
|
|
37
|
+
@include cfg.default-icon(20px, 20px, #fff);
|
|
38
|
+
}
|
|
28
39
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
justify-content: space-around;
|
|
33
|
-
gap: 25px;
|
|
34
|
-
cursor: pointer;
|
|
35
|
-
}
|
|
40
|
+
&:hover .tile-action {
|
|
41
|
+
opacity: 1;
|
|
42
|
+
}
|
|
36
43
|
|
|
44
|
+
.tile-action-select {
|
|
45
|
+
top: 6px;
|
|
46
|
+
right: 6px;
|
|
37
47
|
}
|
|
38
48
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}
|
|
49
|
+
.tile-action-download {
|
|
50
|
+
bottom: 6px;
|
|
51
|
+
left: 6px;
|
|
43
52
|
}
|
|
44
53
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
54
|
+
.tile-action-remove {
|
|
55
|
+
bottom: 6px;
|
|
56
|
+
right: 6px;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&--selected {
|
|
60
|
+
.tile-action-select {
|
|
61
|
+
opacity: 1;
|
|
62
|
+
background: #f5a623;
|
|
63
|
+
}
|
|
50
64
|
}
|
|
51
65
|
}
|
|
52
66
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use '../../../style' as cfg;
|
|
2
2
|
|
|
3
|
-
@include export-module('co-image-history-tile-theme') {
|
|
3
|
+
@include cfg.export-module('co-image-history-tile-theme') {
|
|
4
4
|
|
|
5
5
|
.co-image-history-tile {
|
|
6
6
|
.image-history-item {
|
|
@@ -12,11 +12,11 @@
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.image-history-item-zoom {
|
|
15
|
-
@include default-icon(40px, 40px, #fff)
|
|
15
|
+
@include cfg.default-icon(40px, 40px, #fff)
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
.tile-toolbar {
|
|
19
|
-
@include default-icon(40px, 40px, #fff);
|
|
19
|
+
@include cfg.default-icon(40px, 40px, #fff);
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
@use '../../../../../style' as cfg;
|
|
2
|
+
|
|
3
|
+
@include cfg.export-module('co-image-process-complete-next-layout') {
|
|
4
|
+
.co-image-process-complete-next {
|
|
5
|
+
flex: 1;
|
|
6
|
+
|
|
7
|
+
.image-process-complete-next {
|
|
8
|
+
.image-process-complete-dialog-next-step {
|
|
9
|
+
background: var(--co-inphoto-background-white);
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: start;
|
|
12
|
+
justify-content: space-between;
|
|
13
|
+
border: 1px solid var(--co-inphoto-next-stop-border-color);
|
|
14
|
+
box-sizing: border-box;
|
|
15
|
+
padding: 10px;
|
|
16
|
+
border-radius: var(--co-inphoto-border-radius);
|
|
17
|
+
cursor: pointer;
|
|
18
|
+
min-height: 100px;
|
|
19
|
+
|
|
20
|
+
&:hover {
|
|
21
|
+
border-color: var(--co-inphoto-accent-color);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.next-step-icon {
|
|
25
|
+
margin-right: 15px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.next-body {
|
|
29
|
+
.next-body-head {
|
|
30
|
+
@include cfg.sub-header-text();
|
|
31
|
+
margin-bottom: 15px;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.next-body-text {
|
|
35
|
+
@include cfg.text();
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.next-step-continue {
|
|
40
|
+
margin-left: auto;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
@use '../../../style' as cfg;
|
|
2
|
+
|
|
3
|
+
@include cfg.export-module('co-image-process-complete-layout') {
|
|
4
|
+
.co-image-process-complete {
|
|
5
|
+
.image-process-complete {
|
|
6
|
+
background-size: contain;
|
|
7
|
+
display: flex;
|
|
8
|
+
justify-content: space-around;
|
|
9
|
+
align-items: center;
|
|
10
|
+
width: 100%;
|
|
11
|
+
height: 100%;
|
|
12
|
+
min-height: 100vh;
|
|
13
|
+
background-repeat: no-repeat;
|
|
14
|
+
background-position: center;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.image-process-complete-dialog {
|
|
18
|
+
position: absolute;
|
|
19
|
+
width: 100%;
|
|
20
|
+
max-width: 980px;
|
|
21
|
+
top: 20%;
|
|
22
|
+
left: calc(50% - 490px);
|
|
23
|
+
box-sizing: border-box;
|
|
24
|
+
z-index: 10;
|
|
25
|
+
|
|
26
|
+
.image-process-complete-dialog-header {
|
|
27
|
+
display: flex;
|
|
28
|
+
align-items: center;
|
|
29
|
+
|
|
30
|
+
.header-icon {
|
|
31
|
+
width: 40px;
|
|
32
|
+
height: 40px;
|
|
33
|
+
display: flex;
|
|
34
|
+
justify-content: space-around;
|
|
35
|
+
align-items: center;
|
|
36
|
+
border-radius: 50%;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.header-button {
|
|
40
|
+
.co-button {
|
|
41
|
+
display: flex;
|
|
42
|
+
box-sizing: border-box;
|
|
43
|
+
cursor: pointer;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.image-process-complete-dialog-body {
|
|
49
|
+
display: flex;
|
|
50
|
+
justify-content: space-between;
|
|
51
|
+
align-items: center;
|
|
52
|
+
gap: 20px;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
@use '../../../style' as cfg;
|
|
2
|
+
|
|
3
|
+
@include cfg.export-module('co-image-process-complete-theme') {
|
|
4
|
+
.co-image-process-complete {
|
|
5
|
+
|
|
6
|
+
.image-process-complete-dialog {
|
|
7
|
+
background: var(--co-inphoto-dialog-background-color);
|
|
8
|
+
border-radius: var(--co-inphoto-border-radius);
|
|
9
|
+
padding: 15px 25px 25px;
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
.image-process-complete-dialog-header {
|
|
13
|
+
margin-bottom: 25px;
|
|
14
|
+
|
|
15
|
+
.header-icon {
|
|
16
|
+
background: var(--co-inphoto-header-icon-background);
|
|
17
|
+
color: var(--co-inphoto-success-color);
|
|
18
|
+
margin-right: 25px;
|
|
19
|
+
height: 50px;
|
|
20
|
+
width: 50px;
|
|
21
|
+
display: flex;
|
|
22
|
+
justify-content: space-around;
|
|
23
|
+
align-items: center;
|
|
24
|
+
border-radius: 50%;
|
|
25
|
+
@include cfg.default-icon(var(--co-inphoto-icon-size-large), var(--co-inphoto-icon-size-large), var(--co-inphoto-success-color));
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.header-info {
|
|
29
|
+
.header-text {
|
|
30
|
+
@include cfg.header-text();
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.explain-text {
|
|
34
|
+
@include cfg.text();
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.header-button {
|
|
39
|
+
margin-left: auto;
|
|
40
|
+
|
|
41
|
+
.co-button {
|
|
42
|
+
@include cfg.action-button(
|
|
43
|
+
var(--co-inphoto-button-background),
|
|
44
|
+
var(--co-inphoto-button-background),
|
|
45
|
+
var(--co-inphoto-button-color),
|
|
46
|
+
var(--co-inphoto-button-font-size),
|
|
47
|
+
var(--co-inphoto-button-icon-size),
|
|
48
|
+
var(--co-inphoto-button-icon-color),
|
|
49
|
+
var(--co-inphoto-button-border),
|
|
50
|
+
var(--co-inphoto-button-radius),
|
|
51
|
+
var(--co-inphoto-button-padding)
|
|
52
|
+
);
|
|
53
|
+
|
|
54
|
+
.label {
|
|
55
|
+
margin-left: 15px;
|
|
56
|
+
font-weight: bold;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
@use '../../../../../style' as cfg;
|
|
2
|
+
|
|
3
|
+
@include cfg.export-module('co-color-palette-option-layout') {
|
|
4
|
+
.color-palette-option {
|
|
5
|
+
width: 18px;
|
|
6
|
+
height: 18px;
|
|
7
|
+
cursor: pointer;
|
|
8
|
+
border: 2px solid;
|
|
9
|
+
border-radius: 50%;
|
|
10
|
+
|
|
11
|
+
.color-palette-option-circle {
|
|
12
|
+
height: 100%;
|
|
13
|
+
width: 100%;
|
|
14
|
+
border-radius: 50%;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
@use '../../../../../style' as cfg;
|
|
2
|
+
|
|
3
|
+
@include cfg.export-module('co-color-palette-option-theme') {
|
|
4
|
+
.color-palette-option {
|
|
5
|
+
padding: 2px;
|
|
6
|
+
|
|
7
|
+
.color-palette-option-circle {
|
|
8
|
+
@include cfg.default-icon(var(--co-inphoto-icon-size-small), var(--co-inphoto-icon-size-small), var(--co-inphoto-icon-color-light));
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
@use '../../../style' as cfg;
|
|
2
|
+
|
|
3
|
+
@include cfg.export-module('co-image-title-layout') {
|
|
4
|
+
.co-image-title {
|
|
5
|
+
|
|
6
|
+
.image-tile {
|
|
7
|
+
border-radius: var(--co-inphoto-border-radius);
|
|
8
|
+
overflow: hidden;
|
|
9
|
+
width: 95%;
|
|
10
|
+
background: var(--co-inphoto-background-white);
|
|
11
|
+
cursor: pointer;
|
|
12
|
+
|
|
13
|
+
.image-tile-top {
|
|
14
|
+
position: relative;
|
|
15
|
+
|
|
16
|
+
.image-tile-index, .image-tile-remove {
|
|
17
|
+
position: absolute;
|
|
18
|
+
width: 20px;
|
|
19
|
+
height: 20px;
|
|
20
|
+
border-radius: 50%;
|
|
21
|
+
text-align: center;
|
|
22
|
+
background: var(--co-inphoto-background-white);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.image-tile-index {
|
|
26
|
+
top: 5px;
|
|
27
|
+
left: 5px;
|
|
28
|
+
font-size: 14px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.image-tile-remove {
|
|
32
|
+
top: 5px;
|
|
33
|
+
right: 5px;
|
|
34
|
+
cursor: pointer;
|
|
35
|
+
@include cfg.default-icon(var(--co-inphoto-icon-size), var(--co-inphoto-icon-size), var( --co-inphoto-icon-color));
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.image-tile-container {
|
|
39
|
+
min-height: 100px;
|
|
40
|
+
|
|
41
|
+
.mask-no-image-explain {
|
|
42
|
+
box-sizing: border-box;
|
|
43
|
+
padding: 30px 8px 0;
|
|
44
|
+
font-size: var(--co-inphoto-font-size-label)
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
img {
|
|
48
|
+
width: 100%;
|
|
49
|
+
height: 100%;
|
|
50
|
+
object-fit: contain;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.image-tile-bottom {
|
|
56
|
+
box-sizing: border-box;
|
|
57
|
+
padding: 8px;
|
|
58
|
+
|
|
59
|
+
.brush-icon, .delete-icon {
|
|
60
|
+
cursor: pointer;
|
|
61
|
+
@include cfg.default-icon(var(--co-inphoto-icon-size-small), var(--co-inphoto-icon-size-small), var( --co-inphoto-icon-color));
|
|
62
|
+
|
|
63
|
+
.co-icon {
|
|
64
|
+
display: block;
|
|
65
|
+
margin: 5px auto;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.hide-delete-button, .hide-brush-button {
|
|
70
|
+
display: none;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.color-palette-wrapper {
|
|
74
|
+
cursor: pointer;
|
|
75
|
+
|
|
76
|
+
.color-palette {
|
|
77
|
+
display: grid;
|
|
78
|
+
grid-template-columns: repeat(5, 25px);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.color-palette-disabled {
|
|
82
|
+
pointer-events: none;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.color-palette-hidden {
|
|
86
|
+
display: none;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.active-item {
|
|
93
|
+
.image-tile-top {
|
|
94
|
+
.image-tile-index {
|
|
95
|
+
background: var(--co-inphoto-accent-color);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
@@ -1,23 +1,42 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use '../../../style' as cfg;
|
|
2
2
|
|
|
3
|
-
@include export-module('co-image-upload-layout') {
|
|
3
|
+
@include cfg.export-module('co-image-upload-layout') {
|
|
4
4
|
.co-image-upload {
|
|
5
5
|
.upload-container {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
min-width: 400px;
|
|
7
|
+
border-radius: var(--co-inphoto-border-radius);
|
|
8
|
+
padding: 20px;
|
|
8
9
|
text-align: center;
|
|
9
10
|
cursor: pointer;
|
|
10
11
|
position: relative;
|
|
11
12
|
|
|
12
13
|
.image-upload-icon {
|
|
13
|
-
width:
|
|
14
|
-
height:
|
|
15
|
-
border-radius: 50%;
|
|
14
|
+
width: 40px;
|
|
15
|
+
height: 40px;
|
|
16
16
|
display: flex;
|
|
17
17
|
align-items: center;
|
|
18
18
|
justify-content: center;
|
|
19
19
|
margin: 0 auto;
|
|
20
20
|
}
|
|
21
|
+
|
|
22
|
+
.upload-supported-formats-container {
|
|
23
|
+
margin-top: 15px;
|
|
24
|
+
width: 200px;
|
|
25
|
+
display: flex;
|
|
26
|
+
justify-self: center;
|
|
27
|
+
justify-content: space-between;
|
|
28
|
+
|
|
29
|
+
.supported-format {
|
|
30
|
+
border: 1px solid var(--co-inphoto-upload-border-color);
|
|
31
|
+
color: var(--co-inphoto-accent-text);
|
|
32
|
+
font-size: var(--co-inphoto-font-size-label);
|
|
33
|
+
font-weight: bold;
|
|
34
|
+
border-radius: 15px;
|
|
35
|
+
box-sizing: border-box;
|
|
36
|
+
padding: 4px 10px;
|
|
37
|
+
margin: 0 4px;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
21
40
|
}
|
|
22
41
|
|
|
23
42
|
.preview {
|
|
@@ -35,21 +54,24 @@
|
|
|
35
54
|
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
|
|
36
55
|
gap: 10px;
|
|
37
56
|
margin-top: 10px;
|
|
57
|
+
|
|
38
58
|
.uploaded-file-preview {
|
|
39
59
|
position: relative;
|
|
60
|
+
|
|
40
61
|
img {
|
|
41
62
|
width: 100%;
|
|
42
63
|
height: 100%;
|
|
43
64
|
object-fit: cover;
|
|
44
|
-
border-radius:
|
|
65
|
+
border-radius: var(--co-inphoto-border-radius);
|
|
45
66
|
}
|
|
67
|
+
|
|
46
68
|
.uploaded-file-overlay {
|
|
47
69
|
position: absolute;
|
|
48
70
|
top: 0;
|
|
49
71
|
left: 0;
|
|
50
72
|
right: 0;
|
|
51
73
|
bottom: 0;
|
|
52
|
-
border-radius:
|
|
74
|
+
border-radius: var(--co-inphoto-border-radius);
|
|
53
75
|
display: flex;
|
|
54
76
|
align-items: center;
|
|
55
77
|
justify-content: center;
|
|
@@ -71,17 +93,11 @@
|
|
|
71
93
|
}
|
|
72
94
|
}
|
|
73
95
|
}
|
|
74
|
-
}
|
|
75
96
|
|
|
76
|
-
.image-upload-compact {
|
|
77
|
-
.upload-container {
|
|
78
|
-
padding: 20px;
|
|
79
97
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
height: 0;
|
|
84
|
-
overflow: hidden;
|
|
98
|
+
.compact {
|
|
99
|
+
.upload-container {
|
|
100
|
+
padding: 10px;
|
|
85
101
|
}
|
|
86
102
|
}
|
|
87
103
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
:root {
|
|
2
|
-
--co-inphoto-upload-border-width:
|
|
3
|
-
--co-inphoto-upload-background: #
|
|
4
|
-
--co-inphoto-upload-border-color: #
|
|
2
|
+
--co-inphoto-upload-border-width: 2px;
|
|
3
|
+
--co-inphoto-upload-background: #fff;
|
|
4
|
+
--co-inphoto-upload-border-color: #CBD5E1;
|
|
5
5
|
--co-inphoto-upload-dragging-border-color: #1A73E8;
|
|
6
6
|
--co-inphoto-upload-dragging-background: #f5f7ff;
|
|
7
7
|
--co-inphoto-upload-icon-background: #e2e8f0;
|
|
@@ -1,25 +1,26 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use '../../../style' as cfg;
|
|
2
2
|
|
|
3
|
-
@include export-module('co-image-upload-theme') {
|
|
3
|
+
@include cfg.export-module('co-image-upload-theme') {
|
|
4
4
|
.co-image-upload {
|
|
5
5
|
.upload-container {
|
|
6
|
-
|
|
7
6
|
background: var(--co-inphoto-upload-background);
|
|
8
|
-
border: var(--co-inphoto-upload-border-width)
|
|
7
|
+
border: var(--co-inphoto-upload-border-width) dashed var(--co-inphoto-upload-border-color);
|
|
9
8
|
|
|
10
9
|
.image-upload-icon {
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
@include cfg.default-icon(30px, 30px, var(--co-inphoto-upload-icon-color));
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.upload-content-header {
|
|
14
|
+
@include cfg.sub-header-text();
|
|
13
15
|
}
|
|
14
16
|
|
|
15
17
|
.upload-content-text {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
+
@include cfg.text();
|
|
19
|
+
color: var(--co-inphoto-accent-text);
|
|
18
20
|
}
|
|
19
21
|
|
|
20
22
|
.upload-content {
|
|
21
23
|
margin: 5px auto;
|
|
22
|
-
max-width: 280px;
|
|
23
24
|
}
|
|
24
25
|
}
|
|
25
26
|
|
|
@@ -34,16 +35,16 @@
|
|
|
34
35
|
}
|
|
35
36
|
|
|
36
37
|
.upload-content .upload-button {
|
|
37
|
-
@include action-button(
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
38
|
+
@include cfg.action-button(
|
|
39
|
+
var(--co-inphoto-action-button-background),
|
|
40
|
+
var(--co-inphoto-action-button-background),
|
|
41
|
+
var(--co-inphoto-action-button-color),
|
|
42
|
+
var(--co-inphoto-action-button-font-size),
|
|
43
|
+
var(--co-inphoto-action-button-icon-size),
|
|
44
|
+
var(--co-inphoto-action-button-icon-color),
|
|
45
|
+
var(--co-inphoto-action-button-border),
|
|
46
|
+
var(--co-inphoto-action-button-radius),
|
|
47
|
+
var(--co-inphoto-action-button-padding)
|
|
47
48
|
);
|
|
48
49
|
}
|
|
49
50
|
|
|
@@ -53,7 +54,7 @@
|
|
|
53
54
|
background-color: var(--co-inphoto-loader-background-dark);
|
|
54
55
|
|
|
55
56
|
.remove-button {
|
|
56
|
-
@include default-icon(20px, 20px, #fff);
|
|
57
|
+
@include cfg.default-icon(20px, 20px, #fff);
|
|
57
58
|
}
|
|
58
59
|
}
|
|
59
60
|
}
|
|
@@ -67,5 +68,13 @@
|
|
|
67
68
|
}
|
|
68
69
|
}
|
|
69
70
|
}
|
|
71
|
+
|
|
72
|
+
.compact {
|
|
73
|
+
.upload-container {
|
|
74
|
+
.upload-content-text {
|
|
75
|
+
font-size: var(--co-inphoto-font-size-label);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
70
79
|
}
|
|
71
80
|
|