emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: James Harkins <jamshark70@gmail.com>
To: Bastien <bzg@gnu.org>
Cc: orgmode <emacs-orgmode@gnu.org>
Subject: Re: Seeking advice on a worg contribution
Date: Tue, 06 May 2014 22:41:46 +0800	[thread overview]
Message-ID: <27c33cde-6551-49cf-99a3-53ea1dee20a0@dewdrop-world.net> (raw)
In-Reply-To: <874n13kybg.fsf@bzg.ath.cx>

[-- Attachment #1: Type: text/plain, Size: 696 bytes --]

On Tuesday, May 6, 2014 6:08:10 PM HKT, Bastien wrote:
>> If not, what do I have to do to make it do that? (At least, display
>> the captions slightly smaller.)
>
> Propose a diff against this CSS:
>   http://orgmode.org/worg/style/worg.css
>
> adding text properties (like font-size, for example?) to a new
> .figure p {...} class.

Here's a patch for worg.css. Captions for source code blocks are rendered 
as <label...> in the HTML export, with the class name org-src-name. I 
checked in Firefox, and it does change the appearance of the captions.

It's getting kind of late here and I'm running out of steam, so I'll deal 
with the links and pushing the text tomorrow.

hjh

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Add-class-definition-for-label.org-src-name-for-sour.patch --]
[-- Type: text/x-patch, Size: 666 bytes --]

From 67961f8baa13318e846c6b09f38f779ae8665c90 Mon Sep 17 00:00:00 2001
From: James Harkins <jamshark70@dewdrop-world.net>
Date: Tue, 6 May 2014 22:35:10 +0800
Subject: [PATCH] Add class definition for label.org-src-name for source-block
 captions

---
 style/worg.css |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/style/worg.css b/style/worg.css
index 2553546..1807f28 100644
--- a/style/worg.css
+++ b/style/worg.css
@@ -926,6 +926,11 @@ content: "*** "
     .rss_item a:hover {}
     .rss_date {}
 
+    label.org-src-name {
+	font-size: 80%;
+	font-style: italic;
+    }
+
     #show_source {margin: 0; padding: 0;}
 
     #postamble {
-- 
1.7.9.5


  parent reply	other threads:[~2014-05-06 14:42 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-04  1:38 Seeking advice on a worg contribution James Harkins
2014-05-05 17:04 ` Eric S Fraga
2014-05-06  2:17   ` James Harkins
2014-05-06  6:45     ` Christian Moe
2014-05-06  7:30     ` Eric S Fraga
2014-05-06 10:08 ` Bastien
2014-05-06 11:46   ` James Harkins
2014-05-06 12:35     ` Bastien
2014-05-06 14:41   ` James Harkins [this message]
2014-05-07  9:08     ` 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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=27c33cde-6551-49cf-99a3-53ea1dee20a0@dewdrop-world.net \
    --to=jamshark70@gmail.com \
    --cc=bzg@gnu.org \
    --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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).