From 3bdf4afa1a37a235973fddfe9c03d1ee7179d4d0 Mon Sep 17 00:00:00 2001 From: rjy7 Date: Fri, 21 May 2010 15:56:07 +0000 Subject: [PATCH] Implement StylesheetList and ScriptList view objects and new strategy for templates to direct stylesheets and script files to be loaded onto a page. --- themes/vivo-basic/css/blueprint/forms.css | 6 ++++++ themes/vivo-basic/ftl/page/default.ftl | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/themes/vivo-basic/css/blueprint/forms.css b/themes/vivo-basic/css/blueprint/forms.css index 00d7ce61..6861075c 100644 --- a/themes/vivo-basic/css/blueprint/forms.css +++ b/themes/vivo-basic/css/blueprint/forms.css @@ -58,3 +58,9 @@ input.button { margin: 1em 0; } .error a { color: #8a1f11; } .notice a { color: #514721; } .success a { color: #264409; } + + +/* Comment Form */ +form#contact_form .buttons { + margin-top: 1em; +} diff --git a/themes/vivo-basic/ftl/page/default.ftl b/themes/vivo-basic/ftl/page/default.ftl index 40d815c9..db4e569d 100644 --- a/themes/vivo-basic/ftl/page/default.ftl +++ b/themes/vivo-basic/ftl/page/default.ftl @@ -36,3 +36,10 @@ <#include "/components/scripts.ftl"> + +<#-- How to add a stylesheet: +${stylesheets.addFromTheme("/sample.css"); +${stylesheets.add("/themes/vivo-basic/css/sample.css"} +NOT (gets contextPath added twice): +${stylesheets.add(stylesheetDir + "/sample.css")} +--> \ No newline at end of file