base-js-sw 1.0.1 → 1.0.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/components/ImagePicker.scss +117 -0
- package/components/LinkPicker.scss +49 -0
- package/index.js +3 -0
- package/package.json +1 -1
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
.component-image-picker {
|
|
2
|
+
text-align: center;
|
|
3
|
+
|
|
4
|
+
&__edit-buttons{
|
|
5
|
+
display: flex;
|
|
6
|
+
margin-top: 10px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
&__edit-button{
|
|
10
|
+
flex: 1;
|
|
11
|
+
text-align: center;
|
|
12
|
+
justify-content: center;
|
|
13
|
+
|
|
14
|
+
&:first-child{
|
|
15
|
+
margin-right: 10px;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&__media {
|
|
20
|
+
margin: 0 auto;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&__media-wrapper{
|
|
24
|
+
position: relative;
|
|
25
|
+
display: inline-block;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&__crop-tool-text{
|
|
29
|
+
font-weight: 600;
|
|
30
|
+
margin-bottom: 15px;
|
|
31
|
+
margin-top: 20px !important;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&:hover{
|
|
35
|
+
.component-alignment-matrix-control{
|
|
36
|
+
opacity: 1;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.component-alignment-matrix-control{
|
|
41
|
+
width: 100%;
|
|
42
|
+
position: absolute;
|
|
43
|
+
top: 0px;
|
|
44
|
+
grid-template-rows: repeat(3, auto);
|
|
45
|
+
height: 100%;
|
|
46
|
+
background: rgba($color: #000000, $alpha: 0.3);
|
|
47
|
+
opacity: 0;
|
|
48
|
+
transition: 0.2s ease-in all;
|
|
49
|
+
|
|
50
|
+
span[role="gridcell"]{
|
|
51
|
+
& > div {
|
|
52
|
+
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
span {
|
|
56
|
+
height: 10px;
|
|
57
|
+
width: 10px;
|
|
58
|
+
border-radius: 50%;
|
|
59
|
+
color: #fff;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
span[tabindex="0"]{//Active dot
|
|
63
|
+
span {
|
|
64
|
+
height: 15px;
|
|
65
|
+
width: 15px;
|
|
66
|
+
color: #000;
|
|
67
|
+
border: 1px solid white;
|
|
68
|
+
box-shadow: none;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.component-image-picker-preview {
|
|
77
|
+
position: relative;
|
|
78
|
+
display: inline-block;
|
|
79
|
+
|
|
80
|
+
&:hover {
|
|
81
|
+
.component-image-picker-preview__edit-button {
|
|
82
|
+
background: #fff;
|
|
83
|
+
opacity: 1;
|
|
84
|
+
cursor: pointer;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
&__upload-button {//Image preview
|
|
89
|
+
margin-bottom: 10px;
|
|
90
|
+
background: #fff !important;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&__edit-buttons {//Replace/Remove buttons
|
|
94
|
+
padding: 5px;
|
|
95
|
+
position: absolute;
|
|
96
|
+
right: 0px;
|
|
97
|
+
top: 0px;
|
|
98
|
+
z-index: 5;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
&__edit-button {
|
|
102
|
+
background: transparent;
|
|
103
|
+
opacity: 0;
|
|
104
|
+
transition: 0.15s all ease;
|
|
105
|
+
cursor: none;
|
|
106
|
+
|
|
107
|
+
&:first-child {
|
|
108
|
+
margin-right: 7.5px;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.no-image__upload-button {
|
|
114
|
+
background: #fff !important;
|
|
115
|
+
margin: 0 auto;
|
|
116
|
+
display: block;
|
|
117
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
.block-editor-block-inspector {
|
|
2
|
+
|
|
3
|
+
.block-editor-link-control__search-input {
|
|
4
|
+
margin: 0 !important;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.block-editor-link-control__search-results-wrapper {
|
|
8
|
+
margin-block: 10px !important;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.block-editor-link-control__search-results {
|
|
12
|
+
padding: 0 !important;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.block-editor-link-control__search-item.is-current {
|
|
16
|
+
padding-top: 0 !important;
|
|
17
|
+
padding-left: 0 !important;
|
|
18
|
+
padding-right: 0 !important;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.block-editor-link-control__tools {
|
|
22
|
+
border: none !important;
|
|
23
|
+
padding-bottom: 0 !important;
|
|
24
|
+
padding-left: 0 !important;
|
|
25
|
+
padding-right: 0 !important;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.block-editor-link-control__search-actions {
|
|
29
|
+
right: 3px !important;
|
|
30
|
+
top: 2px !important;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.block-editor-link-control__search-item {
|
|
34
|
+
padding-block: 5px;
|
|
35
|
+
padding-inline: 0;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.block-editor-link-control__search-item-icon {
|
|
39
|
+
display: none;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.is-current .block-editor-link-control__search-item-info {
|
|
43
|
+
display: none;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.block-editor-link-control__search-item-details{
|
|
47
|
+
max-width: 140px;
|
|
48
|
+
}
|
|
49
|
+
}
|
package/index.js
CHANGED