Files
logseq/src/main/frontend/components/editor.css
2021-07-19 17:19:50 +08:00

71 lines
1.1 KiB
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);
}
/* Fix autocomplete preview */
.preview-trigger-wrapper > [data-tooltipped] {
display: block !important;
}