/
editor.scss
125 lines (103 loc) · 2.28 KB
/
editor.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
.wp-block-image {
position: relative;
margin: 0;
img {
display: block;
width: 100%;
}
&.is-resized img {
height: 100%;
}
&.is-transient img {
@include loading_fade;
}
}
.wp-block-image__resize-handler-top-right,
.wp-block-image__resize-handler-bottom-right,
.wp-block-image__resize-handler-top-left,
.wp-block-image__resize-handler-bottom-left {
display: none;
border-radius: 50%;
border: 2px solid white;
width: 15px !important;
height: 15px !important;
position: absolute;
background: $blue-medium-500;
padding: 0 3px 3px 0;
box-sizing: border-box;
cursor: se-resize;
.wp-block-image.is-focused & {
display: block;
z-index: z-index( '.wp-block-image__resize-handlers' );
}
}
/*!rtl:begin:ignore*/
.wp-block-image__resize-handler-top-right {
top: -6px !important;
right: -6px !important;
}
.wp-block-image__resize-handler-top-left {
top: -6px !important;
left: -6px !important;
}
.wp-block-image__resize-handler-bottom-right {
bottom: -6px !important;
right: -6px !important;
}
.wp-block-image__resize-handler-bottom-left {
bottom: -6px !important;
left: -6px !important;
}
/*!rtl:end:ignore*/
.editor-block-list__block[data-type="core/image"] {
.blocks-format-toolbar__link-modal {
top: 0;
left: 0;
position: absolute;
border: none;
width: 100%;
}
}
.wp-core-ui .wp-block-audio__upload-button.button,
.wp-core-ui .wp-block-image__upload-button.button,
.wp-core-ui .wp-block-video__upload-button.button {
margin-right: 5px;
.dashicon {
vertical-align: middle;
margin-bottom: 3px;
}
&:hover {
color: $dark-gray-800;
}
}
.editor-block-list__block[data-type="core/image"][data-align="center"] {
.wp-block-image {
margin-left: auto;
margin-right: auto;
}
&[data-resized="false"] .wp-block-image > div {
margin-left: auto;
margin-right: auto;
}
}
.edit-post-sidebar .blocks-image__dimensions {
margin-bottom: 1em;
.blocks-image__dimensions__row {
display: flex;
justify-content: space-between;
.blocks-image__dimensions__width,
.blocks-image__dimensions__height {
margin-bottom: 0.5em;
// Fix the text and placeholder text being misaligned in Safari
input {
line-height: 1.25;
}
}
.blocks-image__dimensions__width {
margin-right: 5px;
}
.blocks-image__dimensions__height {
margin-left: 5px;
}
}
}