-
Notifications
You must be signed in to change notification settings - Fork 382
/
Copy pathedit.css
99 lines (81 loc) · 2.7 KB
/
edit.css
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
.wp-block[data-type="amp/amp-story-text"] p {
margin: 0;
}
/**
* See https://github.com/ampproject/amp-wp/issues/2219.
*/
.wp-block-amp-story-text .block-editor-rich-text__editable {
padding: 7px !important;
width: 100%;
}
.is-not-editing .wp-block-amp-amp-story-text.block-editor-rich-text__editable.editor-rich-text__editable {
cursor: grab;
}
.wp-block-amp-story-text-wrapper.is-empty-draggable-text,
.wp-block-amp-story-text-wrapper:not(.with-line-height) {
height: 100%;
}
.wp-block-amp-story-text-wrapper .amp-overlay {
height: 100%;
width: 100%;
z-index: 1000;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
}
.wp-block-amp-story-text-wrapper.is-empty-draggable-text .amp-text-placeholder {
opacity: 0.62;
}
.wp-block[data-type="amp/amp-story-text"] .amp-story-resize-container .components-resizable-box__handle-right {
right: -13px;
}
.wp-block[data-type="amp/amp-story-text"] .amp-story-resize-container .components-resizable-box__handle-right::before {
margin: 0;
}
.wp-block[data-type="amp/amp-story-text"] .amp-story-resize-container .components-resizable-box__handle-bottom {
width: 50px;
left: calc(50% - 25px);
}
.amp-story-text__resize-container .components-resizable-box__handle-bottom::before {
margin: 0 auto;
}
.editor-styles-wrapper #amp-story-editor .wp-block .wp-block[data-type="amp/amp-story-text"] {
width: initial;
}
.wp-block[data-type="amp/amp-story-text"] .components-resizable-box__handle,
.wp-block.is-typing[data-type="amp/amp-story-text"] .components-resizable-box__handle {
display: block;
opacity: 0;
transition: opacity .3s;
}
.wp-block[data-type="amp/amp-story-text"]:hover .components-resizable-box__handle,
.wp-block[data-type="amp/amp-story-text"] .components-resizable-box__handle:hover {
opacity: 100;
}
.wp-block[data-type="amp/amp-story-text"] .block-editor-rich-text__editable,
div[data-type="amp/amp-story-page"] .block-editor-inner-blocks .block-editor-block-list__block-edit {
display: inline-block;
}
.with-line-height .wp-block-amp-story-text {
position: relative;
}
.wp-block[data-type="amp/amp-story-text"] .wp-block-amp-story-text .is-amp-fit-text {
display: inline-block;
vertical-align: middle;
line-height: 1.15;
}
.wp-block[data-type="amp/amp-story-text"] .wp-block-amp-story-text .is-amp-fit-text.is-measuring {
height: initial !important;
width: initial !important;
position: absolute !important;
}
.editor-block-list__layout .wp-block[data-type="amp/amp-story-text"] .editor-block-list__block-edit::before {
position: absolute;
}
.wp-block[data-type="amp/amp-story-text"] .amp-story-editor__rotate-container,
.wp-block[data-type="amp/amp-story-text"] .block-mover,
.wp-block[data-type="amp/amp-story-text"] .block-mover div {
height: 100%;
}