Skip to content

Commit

Permalink
docs: style sheet
Browse files Browse the repository at this point in the history
  • Loading branch information
nobiot committed Aug 18, 2023
1 parent edca0c9 commit 98e9fe6
Showing 1 changed file with 24 additions and 76 deletions.
100 changes: 24 additions & 76 deletions docs/resources/manual.css
Original file line number Diff line number Diff line change
@@ -1,76 +1,24 @@
/** Based on Org-roam's css
https://github.com/org-roam/org-roam/blob/master/doc/assets/page.css
**/
:root {
--border: #526980;
--code: #007;
}

body {
margin: 5ex auto;
max-width: 850px;
line-height: 1.5;
font-family: sans-serif;
font-size: 18px;
}

h1, h2, h3 {
font-weight: normal;
}

.settitle {
display: none;
}

pre, code {
font-family: x, monospace;
}

pre {
padding: 1ex;
background: #eee;
border: solid 1px #ddd;
min-width: 0;
font-size: 80%;
overflow: auto;
}

code {
color: var(--code);
}

img {
max-width: 100%;
}

table {
border-collapse: collapse;
width: 100%;
}

pre.menu-comment {
background: none;
border: none;
font-family: sans-serif;
padding: 0;
margin: 0;
font-size: 100%;
}

thead {
border-bottom: 1px solid var(--border);
}

tfoot {
border-top: 1px solid var(--border);
}

blockquote {
margin-left: 1rem;
font-style: italic;
font-family: serif;
border-left: 3px solid;
border-left-color: currentcolor;
border-color: var(--text-color);
padding-left: 1em;
}
/* Style-sheet to use for Emacs manuals */

/* Copyright (C) 2013-2022 Free Software Foundation, Inc.
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved. This file is offered as-is,
without any warranty.
*/

@import url('style.css');

/* makeinfo convert @deffn and similar functions to something inside
<blockquote>. style.css uses italic for blockquote. This looks poor
in the Emacs manuals, which make extensive use of @defun (etc).
In particular, references to function arguments appear as <var>
inside <blockquote>. Since <var> is also italic, it makes it
impossible to distinguish variables. We could change <var> to
e.g. bold-italic, or normal, or a different color, but that does
not look as good IMO. So we just override blockquote to be non-italic.
*/
blockquote { font-style: normal; }

var { font-style: italic; }

0 comments on commit 98e9fe6

Please sign in to comment.