Commits

shl...@iglu.org.il@cec68495-dca5-4e2b-845c-11fdaaa4f967  committed d4cdf19

Add a screenplay.css for the fortunes.

  • Participants
  • Parent commits f2a15d6

Comments (0)

Files changed (5)

 $(DOCBOOK4_ALL_IN_ONE_XHTMLS_CSS): %: $(DOCMAKE_STYLE_CSS)
 	cp -f $< $@
 
-COMMON_CSS_TARGET_DEPS = lib/common-style.css.ttml lib/newsitem.css.ttml lib/smoked-wp-theme.css.ttml lib/lang_switch.css.ttml lib/fortunes.css.ttml lib/fortunes_show.css.ttml
+COMMON_CSS_TARGET_DEPS = lib/common-style.css.ttml lib/newsitem.css.ttml lib/smoked-wp-theme.css.ttml lib/lang_switch.css.ttml lib/fortunes.css.ttml lib/fortunes_show.css.ttml lib/screenplay-xml/css/screenplay.css.ttml
 
 MOJOLICIOUS_LECTURE_SLIDE1 = $(T2_DEST)/lecture/Perl/Lightning/Mojolicious/mojolicious-slides.html
 
 
 CSS_TARGETS_COMMON_DEPS = $(COMMON_CSS_TARGET_DEPS) $(TTMLS_COMMON_DEPS) $(CSS_GEN_SCRIPT)
 
-css_targets: $(T2_CSS_TARGETS) $(VIPE_CSS_TARGETS)
+css_targets: $(T2_CSS_TARGETS) $(VIPE_CSS_TARGETS) $(T2_DEST)/screenplay.css
 
 $(T2_CSS_TARGETS) : $(T2_DEST)/% : lib/%.ttml $(CSS_TARGETS_COMMON_DEPS)
 	perl $(CSS_GEN_SCRIPT) -o $@ $(T2_TTML_FLAGS) -DLATEMP_FILENAME=$(patsubst $(T2_DEST)/%,%,$(patsubst %.ttml,%,$@)) $<
 $(VIPE_CSS_TARGETS) : $(VIPE_DEST)/% : lib/%.ttml $(CSS_TARGETS_COMMON_DEPS)
 	perl $(CSS_GEN_SCRIPT) -o $@ $(VIPE_TTML_FLAGS) -DLATEMP_FILENAME=$(patsubst $(VIPE_DEST)/%,%,$(patsubst %.ttml,%,$@)) $<
 
+$(T2_DEST)/screenplay.css: lib/screenplay-xml/css/screenplay.css.ttml $(CSS_TARGETS_COMMON_DEPS)
+	perl $(CSS_GEN_SCRIPT) -o $@ $(T2_TTML_FLAGS) -DLATEMP_FILENAME=$(patsubst $(T2_DEST)/%,%,$(patsubst %.ttml,%,$@)) $<

File common/screenplay.css

Empty file removed.

File lib/common-style.css.ttml

 {
     clear: right;
 }
+
 /* Right floaty */
 .rfloaty
 {
     margin: 1em;
 }
 
-/* For the screenplays */
-.description
-{
-    font-style: italic;
-    color: brown;
-}
+[% INCLUDE "screenplay-xml/css/screenplay.css.ttml" %]
 
 /* Graphic Designs on /art/ */
 [% SET g = ".graphic_designs .design" %]

File lib/screenplay-xml/css/screenplay.css.ttml

+/* For the screenplays */
+.description
+{
+    font-style: italic;
+    color: brown;
+}

File t2/humour/fortunes/show.cgi

 <title>Fortune "@{[CGI::escapeHTML($str_id)]}"</title>
 <link rel="stylesheet" href="/fortunes.css" type="text/css" media="screen, projection" />
 <link rel="stylesheet" href="/fortunes_show.css" type="text/css" media="screen, projection" />
+<link rel="stylesheet" href="/screenplay.css" type="text/css" media="screen, projection" />
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 </head>
 <body>