localm / src /app /app.css
mihailik's picture
Enabling more natural styling and slash menu.
0282567
body {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
margin: 0;
padding: 0;
border: none;
display: grid;
grid-template: 1fr auto / 1fr;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
.milkdown {
display: grid;
grid-template: 1fr / 1fr;
padding: 0;
.ProseMirror {
padding: 0.6em 1em;
font-family: inherit;
white-space: pre-wrap;
outline: none;
margin: 0;
pre {
background: inherit;
color: inherit;
code {
color: inherit;
}
}
}
}
}
.chat-log {
position: relative;
.milkdown {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
.ProseMirror {
overflow: auto;
}
}
}
.chat-input {
border-top: solid 1px black;
display: grid;
grid-template: 1fr auto / 1fr;
.milkdown {
display: grid;
grid-template: 1fr / 1fr;
background: white;
.ProseMirror {
max-height: 20vh;
overflow: auto;
}
}
/* Crepe-specific styling for input */
.editor {
max-height: 20vh;
overflow: auto;
background: white;
}
.editor .ProseMirror {
padding: 0.6em 1em;
max-height: 20vh;
overflow: auto;
}
}