mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-02 21:19:12 +00:00
Make org result headings at same level. Improve spacing of results
Having org-mode result headings change size based on their depth in the source document makes is a confusing UI experience. Improve font-size, line-spacing and margins of results to make delineation between entries, and differntiating between entry heading and it's body easier to visually infer. Do not white-space: pre-line. Improves rendering of Markdown results
This commit is contained in:
@@ -92,7 +92,7 @@ var Org = (function () {
|
||||
token.indentation = 0;
|
||||
token.content = RegExp.$2;
|
||||
// specific
|
||||
token.level = RegExp.$1.length;
|
||||
token.level = 2;
|
||||
} else if (Syntax.isPreformatted(line)) {
|
||||
token.type = Lexer.tokens.preformatted;
|
||||
token.indentation = RegExp.$1.length;
|
||||
|
||||
@@ -154,6 +154,14 @@
|
||||
border-radius: 5px;
|
||||
border: 1px solid #ccc;
|
||||
}
|
||||
#query {
|
||||
font-size: larger;
|
||||
}
|
||||
#results {
|
||||
font-size: medium;
|
||||
margin: 0px;
|
||||
line-height: 20px;
|
||||
}
|
||||
#results-image {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
@@ -172,19 +180,22 @@
|
||||
|
||||
#results-markdown {
|
||||
text-align: left;
|
||||
white-space: pre-line;
|
||||
}
|
||||
|
||||
#results-org {
|
||||
#results-org {
|
||||
text-align: left;
|
||||
white-space: pre-line;
|
||||
}
|
||||
#results-org h3 {
|
||||
margin: 20px 0 0 0;
|
||||
font-size: larger;
|
||||
}
|
||||
span.task-status {
|
||||
color: white;
|
||||
padding: 3.5px 3.5px 0;
|
||||
margin-right: 5px;
|
||||
border-radius: 5px;
|
||||
background-color: #ed6f00;
|
||||
font-size: medium;
|
||||
}
|
||||
span.task-status.todo {
|
||||
background-color: #048ba8
|
||||
@@ -198,6 +209,7 @@
|
||||
margin-right: 5px;
|
||||
border-radius: 5px;
|
||||
background-color: #bbb;
|
||||
font-size: small;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user