Files
logseq/src/main/frontend/components/editor.css
2021-05-02 11:14:01 +08:00

66 lines
998 B
CSS

#mobile-editor-toolbar {
position: fixed;
bottom: 0;
width: 100%;
left: 0;
justify-content: center;
height: 2.5rem;
display: flex;
align-items: center;
z-index: 9999;
transition: top 0.3s;
> button {
padding: 5px;
}
}
.editor-wrapper {
width: 100%;
margin: 0 auto;
}
.editor-inner {
position: relative;
display: flex;
textarea {
border: none;
border-radius: 0;
background: transparent;
padding: 0;
resize: none;
}
}
.absolute-modal {
overflow: auto;
background: var(--ls-primary-background-color);
&.is-overflow-vw-x {
transform: translateX(calc(-100% + 1rem));
}
}
.is-mobile {
.absolute-modal {
&.is-overflow-vw-x {
transform: translateX(-1%);
}
}
}
.non-block-editor textarea,
pre {
display: block;
padding: 0.5rem;
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.02);
border-radius: 4px;
}
.non-block-editor textarea {
background: #f6f8fa;
background: var(--ls-secondary-background-color);
}