| 1 |
/** |
| 2 |
* #.# Editor Styles |
| 3 |
* |
| 4 |
* CSS for just Backend enqueued after style.scss |
| 5 |
* which makes it higher in priority. |
| 6 |
*/ |
| 7 |
|
| 8 |
.epytblock__modal { |
| 9 |
.components-modal__children-container { |
| 10 |
height: 100%; |
| 11 |
} |
| 12 |
} |
| 13 |
|
| 14 |
.components-modal__frame.epytblock__modal { |
| 15 |
position: absolute; |
| 16 |
top: 25px; |
| 17 |
left: 50% !important; |
| 18 |
transform: translateX(-50%) !important; |
| 19 |
width: 950px; |
| 20 |
max-width: 90%; |
| 21 |
height: calc(100vh - 50px); |
| 22 |
max-height: calc(100vh - 50px); |
| 23 |
|
| 24 |
.components-modal__header { |
| 25 |
margin: 0; |
| 26 |
} |
| 27 |
|
| 28 |
.components-modal__content { |
| 29 |
padding: 0; |
| 30 |
|
| 31 |
>div:not([class]) { |
| 32 |
height: 100%; |
| 33 |
width: 100%; |
| 34 |
display: block; |
| 35 |
} |
| 36 |
} |
| 37 |
|
| 38 |
.components-modal__children-container { |
| 39 |
height: 100%; |
| 40 |
} |
| 41 |
|
| 42 |
iframe { |
| 43 |
width: 100%; |
| 44 |
height: calc(100% - 60px); |
| 45 |
display: block; |
| 46 |
} |
| 47 |
} |
| 48 |
|
| 49 |
.epytblock { |
| 50 |
.components-placeholder__fieldset { |
| 51 |
max-width: 100%; |
| 52 |
} |
| 53 |
} |
| 54 |
|
| 55 |
/*.edit-post-visual-editor |
| 56 |
.block-editor-block-list__block[data-type="epyt/youtube"] |
| 57 |
> div:first-child { |
| 58 |
padding-top: 16px; |
| 59 |
padding-bottom: 16px; |
| 60 |
} |
| 61 |
*/ |
| 62 |
.wp-block { |
| 63 |
&[data-type="epyt/youtube"]="epyt/youtube""] { |
| 64 |
>div { |
| 65 |
&::after { |
| 66 |
content: ""; |
| 67 |
position: absolute; |
| 68 |
top: 0; |
| 69 |
left: 0; |
| 70 |
right: 0; |
| 71 |
bottom: 0; |
| 72 |
opacity: 0; |
| 73 |
cursor: pointer; |
| 74 |
} |
| 75 |
} |
| 76 |
|
| 77 |
&.is-selected>div, |
| 78 |
>div.components-placeholder { |
| 79 |
&::after { |
| 80 |
display: none; |
| 81 |
} |
| 82 |
} |
| 83 |
} |
| 84 |
} |