CI / config (push) Canceled after 0s
CI / test-frontend (push) Canceled after 0s
CI / test-rust (push) Canceled after 0s
CI / test-e2e (push) Canceled after 0s
CI / test-e2e-release (push) Canceled after 0s
CI / build (push) Canceled after 0s
CI / release (push) Canceled after 0s
CI / docker (push) Canceled after 0s
CI / docker-website (push) Canceled after 0s
186 lines
3.1 KiB
SCSS
186 lines
3.1 KiB
SCSS
@use "tokens";
|
|
@use "editor";
|
|
@use "modals";
|
|
@use "theme";
|
|
@use "colors";
|
|
@use "top";
|
|
@use "xray";
|
|
@use "components";
|
|
@use "plainleaf_workspace";
|
|
|
|
@font-face {
|
|
font-family: "iA-Mono";
|
|
src: url("iAWriterMonoS-Regular.woff2");
|
|
font-weight: normal;
|
|
font-style: normal;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: "iA-Mono";
|
|
src: url("iAWriterMonoS-Bold.woff2");
|
|
font-weight: bold;
|
|
font-style: normal;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: "iA-Mono";
|
|
src: url("iAWriterMonoS-Italic.woff2");
|
|
font-weight: normal;
|
|
font-style: italic;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: "iA-Mono";
|
|
src: url("iAWriterMonoS-BoldItalic.woff2");
|
|
font-weight: bold;
|
|
font-style: italic;
|
|
}
|
|
|
|
html,
|
|
body {
|
|
margin: 0;
|
|
height: 100%;
|
|
padding: 0;
|
|
width: 100%;
|
|
overflow: hidden;
|
|
background-color: var(--top-background-color);
|
|
}
|
|
|
|
#sb-root {
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: var(--root-background-color);
|
|
}
|
|
|
|
.sb-panel {
|
|
flex: 1;
|
|
}
|
|
|
|
.sb-bottom-iframe {
|
|
width: 100%;
|
|
margin-top: 10px;
|
|
border: 1px solid var(--editor-widget-background-color);
|
|
border-radius: 5px;
|
|
}
|
|
|
|
.sb-top-iframe {
|
|
width: 100%;
|
|
margin-top: 10px;
|
|
border: 1px solid var(--editor-widget-background-color);
|
|
border-radius: 5px;
|
|
}
|
|
|
|
#sb-main {
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-grow: 1;
|
|
height: 0;
|
|
|
|
.sb-panel {
|
|
flex: 1;
|
|
}
|
|
}
|
|
|
|
#sb-editor {
|
|
flex: 2;
|
|
height: 100%;
|
|
|
|
width: 100%;
|
|
|
|
iframe {
|
|
width: 100%;
|
|
height: 100%;
|
|
border: none;
|
|
}
|
|
}
|
|
|
|
#sb-editor.hide-cm {
|
|
.cm-editor {
|
|
display: none !important;
|
|
}
|
|
}
|
|
|
|
.sb-bhs {
|
|
height: 300px;
|
|
width: 100%;
|
|
z-index: 10;
|
|
|
|
.sb-panel {
|
|
height: 100%;
|
|
}
|
|
}
|
|
|
|
// Full-screen dim behind a "modal" panel, matching the <dialog> backdrop used
|
|
// by command-palette / prompt / confirm modals (.sb-modal-box).
|
|
.sb-modal-backdrop {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 100;
|
|
background-color: var(--modal-backdrop-color);
|
|
}
|
|
|
|
.sb-modal {
|
|
position: absolute;
|
|
border: var(--modal-border-color) 1px solid;
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
// Match the .sb-modal-box drop shadow so plug modals look consistent.
|
|
box-shadow: rgba(0, 0, 0, 0.35) 0px 20px 20px;
|
|
|
|
.sb-panel {
|
|
height: 100%;
|
|
|
|
iframe {
|
|
background-color: initial;
|
|
}
|
|
}
|
|
|
|
@media only screen and (max-width: 600px) {
|
|
// On narrow screens override the inline `inset` that plugs pass to
|
|
// showPanel("modal", N) so the modal sits closer to the edges. It keeps
|
|
// its rounded corners since (unlike .sb-modal-box) it isn't edge-to-edge.
|
|
inset: 8px !important;
|
|
}
|
|
}
|
|
|
|
.sb-page-prefix {
|
|
display: flex;
|
|
align-items: baseline;
|
|
flex: 0 0 auto;
|
|
text-align: left;
|
|
padding-top: 3px;
|
|
font-family: var(--ui-font);
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
.sb-panel {
|
|
iframe {
|
|
background-color: var(--root-background-color);
|
|
border: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
}
|
|
|
|
.sb-preview {
|
|
position: relative;
|
|
}
|
|
|
|
.sb-markdown-toolbar {
|
|
position: absolute;
|
|
opacity: 0;
|
|
transition: opacity 0.2s;
|
|
width: 100%;
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.sb-markdown-toolbar:hover {
|
|
opacity: 1;
|
|
}
|