From: Christian Egli <christian.egli@sbszh.ch>
To: Bastien <bastien.guerry@wikimedia.fr>
Cc: emacs-orgmode@gnu.org
Subject: Re: Re: New CSS for orgmode and Worg ?
Date: Mon, 12 Jul 2010 11:59:55 +0200 [thread overview]
Message-ID: <87ocedow9w.fsf@saadawi.sbszh.ch> (raw)
In-Reply-To: <87bpaiz8p2.fsf@altern.org> (Bastien's message of "Thu, 08 Jul 2010 09:56:20 +0200")
[-- Attachment #1: Type: text/plain, Size: 905 bytes --]
Bastien <bastien.guerry@wikimedia.fr> writes:
> Christian Egli <christian.egli@sbszh.ch> writes:
>
>> What I'd like to see is something more aligned with the css for asciidoc
>> which makes for a very pleasant and readable experience.
>
> Yes, the CSS behind asciidoc is neat.
>
>> Unfortunatelly my expertise is limited to trial and error when it
>> comes to css.
>
> Trial and error will be very useful for suggested CSS.
Actually, come to think of it: I had totally forgotten that I once took
the css from org
(http://repo.or.cz/w/org-mode.git/blob/HEAD:/ORGWEBPAGE/org.css) and
added some asciidoc styling to it. An example output can be seen at
http://www.daisyproducer.org/. It is in a "works for me" state, I think
I probably hard coded some assumptions I had on my side.
The css is attached.
If there is demand I could merge it with the original org.css or create
a patch.
Thanks
Christian
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: asciidoc css adapted for org mode --]
[-- Type: text/css, Size: 3828 bytes --]
@media all
{
body {
margin: 1em 5% 1em 5%;
}
a {
color: blue;
text-decoration: underline;
}
a:visited {
color: fuchsia;
}
em {
font-style: italic;
color: navy;
}
strong {
font-weight: bold;
color: #083194;
}
tt {
color: navy;
}
h1, h2, h3, h4, h5, h6 {
color: #527bbd;
font-family: sans-serif;
margin-top: 1.2em;
margin-bottom: 0.5em;
line-height: 1.3;
}
h1, h2, h3 {
border-bottom: 2px solid silver;
}
h2 {
padding-top: 0.5em;
}
h3 {
float: left;
}
h3 + * {
clear: left;
}
div.sectionbody {
font-family: serif;
margin-left: 0;
}
hr {
border: 1px solid silver;
}
p {
margin-top: 0.5em;
margin-bottom: 0.5em;
}
ul, ol, li > p {
margin-top: 0;
}
pre {
padding: 0;
margin: 0;
}
#table-of-contents {
font-size: 85%;
line-height: 1.4em;
}
#table-of-contents ul {
list-style: none;
margin: 7px 0px 7px 15px ;
padding: 0px;
}
div.content { /* Block element content. */
padding: 0;
}
dl {
margin-top: 0.8em;
margin-bottom: 0.8em;
}
dt {
margin-top: 0.5em;
margin-bottom: 0;
font-style: normal;
color: navy;
}
dd > *:first-child {
margin-top: 0.1em;
}
ul, ol {
list-style-position: outside;
}
table {
border:3px solid #527bbd;
border-left-style:none;
border-right-style:none;
margin-bottom:1.5em;
margin-top:0.25em;
}
thead {
font-family: sans-serif;
font-weight: bold;
border-bottom: 3px solid #527bbd;
}
tfoot {
font-weight: bold;
}
th, td {
border-bottom: 1px solid #527bbd;
}
tbody tr:hover {
color: #527bbd;
}
code {font-size: 10pt;}
img {
border: none;
}
.share img {
opacity: .4;
-moz-opacity: .4;
filter: alpha(opacity=40);
}
.share img:hover {
opacity: 1;
-moz-opacity: 1;
filter: alpha(opacity=100);
}
} /* END OF @media all */
@media screen
{
body {
margin: 10px 6% 10px 180px;
font-family: serif;
}
.logo-link {
position: fixed;
top: 10px;
left: 30px;
}
#table-of-contents {
position: fixed;
display: block;
left: 10px;
width: 150px;
min-height:60px;
max-height:90%;
overflow:auto;
}
#table-of-contents h2 {
display:none;
}
/* These style are only for IE: */
* html {
overflow-y: hidden;
padding-bottom:0px;
margin:0px;
}
* html body {
height: 100%;
overflow-y: auto;
font-size: 100%;
margin: 0px 0px 0px 180px;
padding: 0px 10% 0px 0px;
}
* html #table-of-contents {
position: absolute;
width:150px;
}
* html h1 {
margin-top:10px;
}
* html .logo-link {
position: absolute;
top: 10px;
left: 30px;
}
} /* END OF @media screen */
/* Printing */
@page
{
margin-top:3cm;
margin-bottom:2.5cm;
}
@page :left
{
margin-left:1.5cm;
margin-right:2cm;
}
@page :right
{
margin-left:2cm;
margin-right:1.5cm;
}
@media print
{
body {
margin:0px;
font-family: Verdana, Helvetica, sans-serif;
}
div {
orphans:2;
}
p {
orphans:2;
}
li {
orphans:2;
}
.logo-link {
top: 10px;
left: 30px;
}
#table-of-contents h2 {
margin-top:1.5cm;
page-break-before:auto;
border-style:none;
}
#text-table-of-contents {
width:50%;
margin-top:1cm;
margin-left:0cm;
margin-right:auto;
text-align:left;
}
#table-of-contents ul {
text-align:left;
}
h2 {
/* page-break-before:always; */
}
pre {
page-break-inside:avoid;
}
/* Hide all org-info.js stuff for printing: */
div#org-info-js_console-container {
display:none;
}
div.org-info-js_local-toc {
display:none;
}
table.org-info-js_info-navigation {
display:none;
}
div.org-info-js_header-navigation {
display:none;
visibility:hidden; /* needed to overwrite the hardcoded style setting... */
}
} /* END OF @media print */
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
--
Christian Egli
Swiss Library for the Blind, Visually Impaired and Print Disabled
Grubenstrasse 12, CH-8045 Zürich, Switzerland
[-- Attachment #4: Type: text/plain, Size: 201 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
next prev parent reply other threads:[~2010-07-12 10:00 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-06 22:20 New CSS for orgmode and Worg ? Bastien
2010-07-06 22:24 ` Greg Newman
2010-07-07 4:53 ` Carsten Dominik
2010-07-07 14:56 ` Christian Egli
2010-07-08 7:56 ` Bastien
2010-07-08 8:28 ` Greg Newman
2010-07-09 13:38 ` Sebastian Rose
2010-07-09 16:29 ` Jonathan Arkell
2010-07-09 17:51 ` Greg Newman
2010-07-12 9:59 ` Christian Egli [this message]
2010-07-12 19:58 ` Dan Davison
2010-07-12 20:10 ` Greg Newman
2010-09-21 9:27 ` Bastien
2010-09-21 9:28 ` Bastien
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ocedow9w.fsf@saadawi.sbszh.ch \
--to=christian.egli@sbszh.ch \
--cc=bastien.guerry@wikimedia.fr \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.