securityos/components/apps/TinyMCE/StyledTinyMceEditor.ts

44 lines
972 B
TypeScript
Raw Normal View History

2024-09-06 15:32:35 +00:00
import styled from "styled-components";
const StyledTinyMceEditor = styled.div`
height: 100%;
[role="application"] {
border-radius: 0;
height: 100% !important;
button:disabled {
pointer-events: none;
}
&[aria-disabled="true"] {
.tox-editor-header {
height: 39px;
overflow: hidden;
padding: 0;
position: relative;
&::before {
background-color: rgba(255, 255, 255, 80%);
content: "Click to switch to design mode.";
cursor: pointer;
display: flex;
height: calc(100% - 1px);
place-content: center;
place-items: center;
position: absolute;
text-shadow: 0 0 25px rgba(0, 0, 0, 80%);
width: 100%;
z-index: 1;
}
.tox-toolbar-overlord {
display: none;
}
}
}
}
`;
export default StyledTinyMceEditor;