You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by da...@apache.org on 2014/01/19 22:11:37 UTC

svn commit: r1559586 - /isis/site/trunk/content/applib-guide/how-tos/how-to-tweak-the-ui-using-css-classes.md

Author: danhaywood
Date: Sun Jan 19 21:11:37 2014
New Revision: 1559586

URL: http://svn.apache.org/r1559586
Log:
isis docs

Modified:
    isis/site/trunk/content/applib-guide/how-tos/how-to-tweak-the-ui-using-css-classes.md

Modified: isis/site/trunk/content/applib-guide/how-tos/how-to-tweak-the-ui-using-css-classes.md
URL: http://svn.apache.org/viewvc/isis/site/trunk/content/applib-guide/how-tos/how-to-tweak-the-ui-using-css-classes.md?rev=1559586&r1=1559585&r2=1559586&view=diff
==============================================================================
--- isis/site/trunk/content/applib-guide/how-tos/how-to-tweak-the-ui-using-css-classes.md (original)
+++ isis/site/trunk/content/applib-guide/how-tos/how-to-tweak-the-ui-using-css-classes.md Sun Jan 19 21:11:37 2014
@@ -74,3 +74,15 @@ Note also that instead of using `@CssCla
     ...
 
 This is in fact how the `ToDoItem` class has been refactored to, as shown [here](https://github.com/apache/isis/blob/5e5b07c4691cbd651023c6ed8b7b756bc8370e09/example/application/quickstart_wicket_restful_jdo/dom/src/main/java/dom/todo/ToDoItem.layout.json#L94).
+
+### Application-specific 'theme' class [1.4.0-SNAPSHOT]
+
+The application name (as defined in the `IsisWicketApplication` subclass) is also used (in sanitized form) as the CSS class in a `<div>` that wraps all the rendered content of every page.
+
+For example, if the application name is "ToDo App", then the `<div>` generated is:
+
+    <div class="todo-app">
+        ...
+    </div>
+
+You can therefore use this CSS class as a way of building your own theme for the various elements of the wicket viewer pages.