diff options
| author | (no author) <(no author)@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2003-07-02 17:51:01 +0000 |
|---|---|---|
| committer | (no author) <(no author)@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2003-07-02 17:51:01 +0000 |
| commit | edf2f3bec1de42965e347eb808f8604151c35bdb (patch) | |
| tree | 783ec29ed403599a0717019ac974ed2fd7366207 /sandbox/blais/css_tricks | |
| parent | 97e20d03d7a4f773f24b082b76a34411acc1fefd (diff) | |
| download | docutils-ax.tar.gz | |
This commit was manufactured by cvs2svn to create branch 'ax'.ax
git-svn-id: http://svn.code.sf.net/p/docutils/code/branches/ax@1551 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'sandbox/blais/css_tricks')
| -rw-r--r-- | sandbox/blais/css_tricks/README.txt | 12 | ||||
| -rw-r--r-- | sandbox/blais/css_tricks/boxed_titles/castro.png | bin | 20738 -> 0 bytes | |||
| -rw-r--r-- | sandbox/blais/css_tricks/boxed_titles/clinton.png | bin | 16129 -> 0 bytes | |||
| -rw-r--r-- | sandbox/blais/css_tricks/boxed_titles/docutils.conf | 3 | ||||
| -rw-r--r-- | sandbox/blais/css_tricks/boxed_titles/index.txt | 37 | ||||
| -rw-r--r-- | sandbox/blais/css_tricks/boxed_titles/style.css | 16 | ||||
| -rw-r--r-- | sandbox/blais/css_tricks/section_based/docutils.conf | 3 | ||||
| -rw-r--r-- | sandbox/blais/css_tricks/section_based/index.txt | 35 | ||||
| -rw-r--r-- | sandbox/blais/css_tricks/section_based/style.css | 11 |
9 files changed, 0 insertions, 117 deletions
diff --git a/sandbox/blais/css_tricks/README.txt b/sandbox/blais/css_tricks/README.txt deleted file mode 100644 index 9920d5968..000000000 --- a/sandbox/blais/css_tricks/README.txt +++ /dev/null @@ -1,12 +0,0 @@ -.. -*- mode: text; fill-column: 70; truncate-lines: t -*- - -========== -CSS Tricks -========== - -:Author: Martin Blais <blais@iro.umontreal.ca> -:Date: $Date$ - -This mini-project is meant to contain neat tricks with cascading -stylesheet to spice up the looks of reST documents converted to HTML -with the default HTML converter. diff --git a/sandbox/blais/css_tricks/boxed_titles/castro.png b/sandbox/blais/css_tricks/boxed_titles/castro.png Binary files differdeleted file mode 100644 index b75456b6b..000000000 --- a/sandbox/blais/css_tricks/boxed_titles/castro.png +++ /dev/null diff --git a/sandbox/blais/css_tricks/boxed_titles/clinton.png b/sandbox/blais/css_tricks/boxed_titles/clinton.png Binary files differdeleted file mode 100644 index eb13abd8d..000000000 --- a/sandbox/blais/css_tricks/boxed_titles/clinton.png +++ /dev/null diff --git a/sandbox/blais/css_tricks/boxed_titles/docutils.conf b/sandbox/blais/css_tricks/boxed_titles/docutils.conf deleted file mode 100644 index 21677a51f..000000000 --- a/sandbox/blais/css_tricks/boxed_titles/docutils.conf +++ /dev/null @@ -1,3 +0,0 @@ -[options] - -stylesheet-path: style.css diff --git a/sandbox/blais/css_tricks/boxed_titles/index.txt b/sandbox/blais/css_tricks/boxed_titles/index.txt deleted file mode 100644 index 07e894063..000000000 --- a/sandbox/blais/css_tricks/boxed_titles/index.txt +++ /dev/null @@ -1,37 +0,0 @@ -.. -*- mode: rst; -*- - -.. image:: castro.png - :align: left - -Box Title -========= - -.. .. raw:: html -.. -.. <img src="castro.png" alt="My Face" class="home-image1" /> -.. <h1 class="box-title">Viva Los Boxed Titles!</h1> - -This is a trick that shows how to do a kind of slightly fancier heading with an -image by using a tiny bit of raw HTML and CSS. There would be a way to minimize -the few raw HTML directives that this requires: - -From <http://docutils.sf.net/spec/notes.html#directives>: - -Add a "class" option to many/most directives, to set an arbitrary "class" -attribute on the enclosing element? Perhaps "name" as well? - -It may be useful to add an option [*] to the HTML writer to restrict the -document title to <head><title> only, and not include it in the document body. -As for the "raw" stuff, a combination of the "image" directive's "align" option, -the yet-to-be-implemented "class" directive, and stylesheet magic may allow such -effects without resorting to raw HTML. - -We continue with a similar trick for the bottom part. - -.. raw:: html - - <img SRC="clinton.png" class="home-image2" /> - <h2 class="box-title">I love boxed titles too!</h2> - -Oh yeah! - diff --git a/sandbox/blais/css_tricks/boxed_titles/style.css b/sandbox/blais/css_tricks/boxed_titles/style.css deleted file mode 100644 index 9fe378f1e..000000000 --- a/sandbox/blais/css_tricks/boxed_titles/style.css +++ /dev/null @@ -1,16 +0,0 @@ -.home-image1 { float: left; border: 0; padding: 5px; } -.home-image2 { float: right; border: 0; padding: 5px; } - -H1 { - background-color: #EEF; - border: thin dashed black; - padding: 10px; - margin: 20px -} - -.box-title { - background-color: #EEF; - border: thin dashed black; - padding: 10px; - margin: 20px -} diff --git a/sandbox/blais/css_tricks/section_based/docutils.conf b/sandbox/blais/css_tricks/section_based/docutils.conf deleted file mode 100644 index 21677a51f..000000000 --- a/sandbox/blais/css_tricks/section_based/docutils.conf +++ /dev/null @@ -1,3 +0,0 @@ -[options] - -stylesheet-path: style.css diff --git a/sandbox/blais/css_tricks/section_based/index.txt b/sandbox/blais/css_tricks/section_based/index.txt deleted file mode 100644 index fcec84658..000000000 --- a/sandbox/blais/css_tricks/section_based/index.txt +++ /dev/null @@ -1,35 +0,0 @@ -.. -*- mode: rst; -*- - -========================= -Section-Based CSS Changes -========================= - -Introduction ------------- - -In this example, we just want to demonstrate simply that one can customize the -content style by using CSS with the automatically-generated title classes. - -This is a bit of a hack but it can be useful under some circumstances. - -Red Section ------------ - -For example, this section contains red items. - -* Yes, this should be read. -* No, you must be ``red``. - - -Green Section -------------- - -* But here we turn green. - - -Blue Section ------------- - -* A problem with this approach is that if you change the section title the CSS - file has to be changed as well. - diff --git a/sandbox/blais/css_tricks/section_based/style.css b/sandbox/blais/css_tricks/section_based/style.css deleted file mode 100644 index 6754ed865..000000000 --- a/sandbox/blais/css_tricks/section_based/style.css +++ /dev/null @@ -1,11 +0,0 @@ -.section#red-section LI { - color: red; -} - -.section#green-section LI { - color: green; -} - -.section#blue-section LI { - color: blue; -} |
