Commits

Anonymous committed 6474fee

More CSS Refactoring.

Comments (0)

Files changed (4)

 LATEMP_WML_FLAGS =$(shell latemp-config --wml-flags)
 
-COMMON_PREPROC_FLAGS = -I $$HOME/conf/wml/Latemp/lib
+COMMON_PREPROC_FLAGS = -I $$HOME/conf/wml/Latemp/lib 
 WML_FLAGS += --passoption=2,-X3074 --passoption=3,-I../lib/ \
 	--passoption=3,-w -I../lib/ $(LATEMP_WML_FLAGS) \
 	-DROOT~. -DLATEMP_THEME=better-scm \
 	-I $${HOME}/apps/wml
 
-TTML_FLAGS += $(COMMON_PREPROC_FLAGS)
+TTML_FLAGS += $(COMMON_PREPROC_FLAGS) -I lib
 WML_FLAGS += $(COMMON_PREPROC_FLAGS)
 
 ALL_DEST_BASE = dest

common/style.css.ttml

     margin-left : 0.3em;
 }
 [% INCLUDE "nav_links.ttml" %]
-p.desc { margin-left : 3em }
-ul.navbarmain { padding-left : 1em ; margin-left : 1em }
-ul.navbarnested { padding-left : 0em ; margin-left : 2em }
-h3.newsitem { text-indent: 3em }
-p.newsitem { margin-left : 6em }
-ol.newsitem { margin-left : 6em }
+[% PROCESS "newsitem.css.ttml" %]
 div.indent { margin-left : 3em }
 p.indent { margin-left : 3em  }
 div.rightalign { text-align : right }
     margin-top : 0em;
     margin-bottom : 0em;
 }
-.colored_frame
-{
-    background-color : #F8FF98;
-    border-color : black;
-    border-width : medium;
-    border-style : double;
-    padding : 0.5em;
-}
+[% PROCESS "shlomif/note.ttml" %]
 
 /* This is for the breadcrumbs trail (= leading path) at the top. */
 .leading_path
 {
     border:0;
 }
+[% PROCESS "shlomif/common_defs.ttml" %]
+

lib/newsitem.css.ttml

+h3.newsitem { text-indent: 3em }
+p.newsitem { margin-left : 6em }
+ol.newsitem { margin-left : 6em }
 </define-tag>
 
 <define-tag note endtag="required">
-<div class="colored_frame">
+<div class="note">
 %body
 </div>
 </define-tag>