emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* List items, HTML export
@ 2013-10-27 19:34 Fabrice Popineau
  2013-10-29 18:02 ` Rick Frankel
  0 siblings, 1 reply; 3+ messages in thread
From: Fabrice Popineau @ 2013-10-27 19:34 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

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

Hi,

Is it possible to set class/id on exported UL and LI elements ?

If there is a list with 2 levels, is it possible to set it independently ?

I'm looking into it, not even sure if I need it, but that may be helpful
for navigation elements.

Thanks for your inputs on this question.

-- 
Fabrice

[-- Attachment #2: Type: text/html, Size: 451 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: List items, HTML export
  2013-10-27 19:34 List items, HTML export Fabrice Popineau
@ 2013-10-29 18:02 ` Rick Frankel
  2013-10-29 20:27   ` Fabrice Popineau
  0 siblings, 1 reply; 3+ messages in thread
From: Rick Frankel @ 2013-10-29 18:02 UTC (permalink / raw)
  To: Fabrice Popineau; +Cc: emacs-orgmode

On 2013-10-27 15:34, Fabrice Popineau wrote:
> Hi,
> 
> Is it possible to set class/id on exported UL and LI elements ?
> 
> If there is a list with 2 levels, is it possible to set it 
> independently ?

Not currently, but in css you can reference the list and sub-list from
the id of it's wrapper div:

#+BEGIN_SRC org
,#+TITLE: Style test
,#+OPTIONS: toc:nil
,#+HTML_HEAD: <style type="text/css">
,#+HTML_HEAD: #text-1 > ul {color: red}
,#+HTML_HEAD: #text-1 > ul  ul {color: green}
,#+HTML_HEAD: #text-another-heading > ul {color: blue}
,#+HTML_HEAD: #text-another-heading > ul  ul {color: magenta}
,#+HTML_HEAD: </style>

,* Test
- one
- two
- two.one

,* Another
:PROPERTIES:
:CUSTOM_ID:       another-heading
:END:
- one
- two
- two.one
#+END_SRC

rick

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: List items, HTML export
  2013-10-29 18:02 ` Rick Frankel
@ 2013-10-29 20:27   ` Fabrice Popineau
  0 siblings, 0 replies; 3+ messages in thread
From: Fabrice Popineau @ 2013-10-29 20:27 UTC (permalink / raw)
  To: Rick Frankel; +Cc: emacs-orgmode@gnu.org

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

Thanks for the example! Ok, the css is the way to go.

Fabrice




2013/10/29 Rick Frankel <rick@rickster.com>

> On 2013-10-27 15:34, Fabrice Popineau wrote:
>
>> Hi,
>>
>> Is it possible to set class/id on exported UL and LI elements ?
>>
>> If there is a list with 2 levels, is it possible to set it independently ?
>>
>
> Not currently, but in css you can reference the list and sub-list from
> the id of it's wrapper div:
>
> #+BEGIN_SRC org
> ,#+TITLE: Style test
> ,#+OPTIONS: toc:nil
> ,#+HTML_HEAD: <style type="text/css">
> ,#+HTML_HEAD: #text-1 > ul {color: red}
> ,#+HTML_HEAD: #text-1 > ul  ul {color: green}
> ,#+HTML_HEAD: #text-another-heading > ul {color: blue}
> ,#+HTML_HEAD: #text-another-heading > ul  ul {color: magenta}
> ,#+HTML_HEAD: </style>
>
> ,* Test
> - one
> - two
> - two.one
>
> ,* Another
> :PROPERTIES:
> :CUSTOM_ID:       another-heading
> :END:
> - one
> - two
> - two.one
> #+END_SRC
>
> rick
>
>


-- 
Fabrice Popineau
-----------------------------
SUPELEC
Département Informatique
3, rue Joliot Curie
91192 Gif/Yvette Cedex
Tel direct : +33 (0) 169851950
Standard : +33 (0) 169851212
------------------------------

[-- Attachment #2: Type: text/html, Size: 1982 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-10-29 20:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-27 19:34 List items, HTML export Fabrice Popineau
2013-10-29 18:02 ` Rick Frankel
2013-10-29 20:27   ` Fabrice Popineau

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).