File size: 2,182 Bytes
1e92f2d |
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 126 127 128 129 130 |
.image-editor {
position: relative;
width: 100%;
height: 100%;
}
.image-editor .calypso-notice.image-editor__notice {
margin-top: 0;
}
.image-editor__content {
display: flex;
flex-direction: column;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
background: var(--color-neutral-90);
}
.image-editor__toolbar {
flex: 1;
display: flex;
justify-content: center;
min-height: 60px;
position: relative;
bottom: 0;
width: 100%;
text-align: center;
}
.image-editor__toolbar-button {
background: color-mix(in srgb, var(--color-surface) 0%, transparent);
border: none;
color: var(--color-text-inverted);
margin: 0 10px;
cursor: pointer;
&.is-disabled {
opacity: 0.3;
}
}
.image-editor__toolbar-button .gridicon {
display: block;
margin: 0 auto;
}
.image-editor__toolbar-button:hover {
color: var(--color-neutral-light);
}
.image-editor__canvas-container {
flex: 10;
position: relative;
width: 100%;
height: 80%;
overflow: hidden;
}
.image-editor__canvas {
position: absolute;
top: 50%;
/*!rtl:ignore*/
left: 50%;
&.is-placeholder {
@include placeholder( --color-neutral-70 );
}
}
.image-editor__crop {
position: absolute;
border: 1px solid var(--color-border-inverted);
cursor: move;
box-sizing: border-box;
}
.image-editor__crop-background-container {
/*!rtl:ignore*/
direction: ltr;
}
.image-editor__crop-background {
position: absolute;
background: var(--color-neutral-90);
opacity: 0.5;
}
.image-editor__crop-handle {
position: absolute;
width: 8px;
height: 8px;
margin-top: -4px;
/*!rtl:ignore*/
margin-left: -4px;
border-radius: 50%;
border: 2px solid var(--color-border-inverted);
background: var(--color-neutral-90);
&::before {
border-radius: 100%;
content: " ";
display: block;
height: 24px;
margin: -8px auto auto -8px;
width: 24px;
}
}
.image-editor__crop-handle-nesw {
/*!rtl:ignore*/
cursor: nesw-resize;
}
.image-editor__crop-handle-nwse {
/*!rtl:ignore*/
cursor: nwse-resize;
}
.image-editor__buttons {
border-top: 1px solid var(--color-neutral-70);
padding: 16px;
text-align: right;
}
.image-editor__buttons-button.button {
/*!rtl:ignore*/
margin-left: 10px;
}
|