mirror of
https://github.com/lordmathis/lemma.git
synced 2025-11-06 07:54:22 +00:00
137 lines
2.0 KiB
SCSS
137 lines
2.0 KiB
SCSS
// Variables
|
|
$padding: 20px;
|
|
$navbar-height: 64px;
|
|
|
|
.custom-navbar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.sidebar {
|
|
overflow: auto;
|
|
padding: $padding;
|
|
|
|
.file-tree-container {
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
.image-preview {
|
|
width: 100%;
|
|
height: 100%;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
overflow: auto;
|
|
}
|
|
|
|
.image-preview img {
|
|
max-width: 100%;
|
|
max-height: 100%;
|
|
object-fit: contain;
|
|
}
|
|
|
|
.page-content {
|
|
padding: 0 $padding;
|
|
}
|
|
|
|
.main-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.content-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 0 $padding;
|
|
|
|
.breadcrumbs-container {
|
|
flex-grow: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
|
|
.unsaved-indicator {
|
|
margin-left: 8px;
|
|
}
|
|
}
|
|
|
|
.tabs {
|
|
flex-shrink: 0;
|
|
}
|
|
}
|
|
|
|
.disabled {
|
|
opacity: 0.6;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.setting-group {
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.setting-item {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.content-body {
|
|
flex-grow: 1;
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.editor-container,
|
|
.markdown-preview {
|
|
flex-grow: 1;
|
|
overflow-y: auto;
|
|
padding: $padding;
|
|
}
|
|
|
|
.editor-container {
|
|
height: 100%;
|
|
|
|
.cm-editor {
|
|
height: 100%;
|
|
}
|
|
|
|
.cm-scroller {
|
|
overflow: auto;
|
|
}
|
|
}
|
|
|
|
.tree {
|
|
padding-top: $padding;
|
|
}
|
|
|
|
// Syntax highlighting themes
|
|
@import 'highlight.js/styles/github.css' layer(light-theme);
|
|
@import 'highlight.js/styles/github-dark.css' layer(dark-theme);
|
|
|
|
// Show light theme by default
|
|
@layer light-theme {
|
|
[data-mantine-color-scheme='light'] .markdown-preview {
|
|
pre code.hljs {
|
|
display: block;
|
|
overflow-x: auto;
|
|
padding: 1em;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Show dark theme in dark mode
|
|
@layer dark-theme {
|
|
[data-mantine-color-scheme='dark'] .markdown-preview {
|
|
pre code.hljs {
|
|
display: block;
|
|
overflow-x: auto;
|
|
padding: 1em;
|
|
}
|
|
}
|
|
}
|