You are viewing a plain text version of this content. The canonical link for it is here.
Posted to svn@forrest.apache.org by th...@apache.org on 2004/09/15 02:18:38 UTC
svn commit: rev 46054 - in forrest/trunk/src/core/context/skins/leather-dev: . css xslt/html
Author: thorsten
Date: Tue Sep 14 17:18:37 2004
New Revision: 46054
Added:
forrest/trunk/src/core/context/skins/leather-dev/brainstorming.txt
forrest/trunk/src/core/context/skins/leather-dev/contracts.inicial.txt
Modified:
forrest/trunk/src/core/context/skins/leather-dev/css/branding.css
forrest/trunk/src/core/context/skins/leather-dev/note.txt
forrest/trunk/src/core/context/skins/leather-dev/xslt/html/site2xhtml.xsl
forrest/trunk/src/core/context/skins/leather-dev/xslt/html/tab2menu.xsl
Log:
Did some work on leather, mainly thoughts.
Added: forrest/trunk/src/core/context/skins/leather-dev/brainstorming.txt
==============================================================================
--- (empty file)
+++ forrest/trunk/src/core/context/skins/leather-dev/brainstorming.txt Tue Sep 14 17:18:37 2004
@@ -0,0 +1,39 @@
+TS:
+id for fixed - unique elements
+class for repeating elements
+
+classes in ids used like hooks. Display hidden used to controll layout.
+---------------
+###############
+classical approach comp. http://web.nwe.ufl.edu/writing/help/web/authoring/html/css/div.html
+#header
+#side
+#spacer
+#content
+#footer
+
+is saying about the location of elements rather then the data which is represented.
+****************
+css-contracts (i - initial) (n - new)
+toplevel:
+#branding (i)
+Container used for a header and banner to brand the site. That is the former "top".
+
+#search (i)
+Related to search interface and search results
+
+#nav or #navigation (i)
+Used to contain the navigation devices
+
+#content (i)
+Used for content rather than for another purpose such as navigation
+
+#siteinfo (i)
+Used for various site related information
+
+The problem that I am facing if I want to use e.g. the nav container for all nav elements is to still have the same style.
+The style depends on overall (IMO style specific) style-divs that are just for web-design reason.
+That would denegate a single skeleton for css-contracts like css-garden.
+One could introduce a raster approach but that would be more or less the top-main-footer approach.
+
+Breaking down the problem again to #id basis. The pathing of them makes the final style.
Added: forrest/trunk/src/core/context/skins/leather-dev/contracts.inicial.txt
==============================================================================
--- (empty file)
+++ forrest/trunk/src/core/context/skins/leather-dev/contracts.inicial.txt Tue Sep 14 17:18:37 2004
@@ -0,0 +1,103 @@
+#container
+ Page container makes it possible to have an overall sourrounding box in the pages. e.g. [1]&[2] have a black sourrounding box.
+
+#branding
+Container used for a header and banner to brand the site. That is the former "top".
+
+#branding-logo
+Contains all logos to brand the site.
+
+#branding-logo-group
+Used for the grouplogo.
+
+#branding-logo-group-ax
+Used for the grouplogo in alternativ location. x stands for a variable that represents the number of the alternativ.
+
+#branding-logo-project
+Used for the projectlogo.
+
+#branding-logo-project-ax
+Used for the projectlogo in alternativ location. x stands for a variable that represents the number of the alternativ.
+
+#branding-tagline
+Used for a strapline or tagline to define the site's purpose. Can be as well used for site slogans.
+
+#branding-trail
+Used for a trail or tagline to define the site's purpose
+
+#branding-published
+Used for the last published note of the site.
+
+#branding-published-ax
+Used for the last published note of the site in alternativ location. x stands for a variable that represents the number of the alternativ.
+
+#search
+Related to search interface and search results
+
+#search-input
+Search form container
+
+#search-input-ax
+Search form container in alternativ location. x stands for a variable that represents the number of the alternativ.
+
+#search-output
+Search results which could include a <div> or other markup
+including definition lists
+
+#nav or #navigation
+Used to contain the navigation devices
+
+#nav-main
+Main or primary navigation AKA tabs.
+
+#nav-main-current
+Main or primary navigation that is currently selected.
+
+#nav-main-sub
+Secondary navigation AKA level2.
+
+#nav-section
+Navigation to pages within the current site section AKA menu.
+
+#nav-section-current
+Navigation to page within the current site section that is currently selected.
+
+#nav-supplementary or #nav-supp
+A supplementary list of links, perhaps in a footer. This can
+replace the common, but presentational #footer
+
+#nav-supp-feedback
+A feedback link like mentioned in http://issues.apache.org/eyebrowse/ReadMsg?listName=forrest-user@xml.apache.org&msgNo=71.
+
+#content
+Used for content rather than for another purpose such as navigation
+
+#content-main
+The main content area
+
+#content-pdf
+The pdf link for the content
+
+#content-xml
+The xml link for the content
+
+#content-fixme
+Fixme related content
+
+#content-warning
+Warning related content
+
+#content-note
+Note related content
+
+#content-code
+Code related content
+
+#siteinfo
+Used for various site related information
+
+#siteinfo-legal
+Copyright information etc.
+
+#siteinfo-credits
+Designer or other credits
Modified: forrest/trunk/src/core/context/skins/leather-dev/css/branding.css
==============================================================================
--- forrest/trunk/src/core/context/skins/leather-dev/css/branding.css (original)
+++ forrest/trunk/src/core/context/skins/leather-dev/css/branding.css Tue Sep 14 17:18:37 2004
@@ -40,7 +40,7 @@
/*Used for the projectlogo.
*/
padding: 7px 0 10px 10px;
-float: left;
+float: right;
width: 33%;
text-align: right;
}
@@ -95,4 +95,4 @@
background-color: #4C6C8F;
border-left: solid 1px black;
border-right: solid 1px black;
-}
\ No newline at end of file
+}
Modified: forrest/trunk/src/core/context/skins/leather-dev/note.txt
==============================================================================
--- forrest/trunk/src/core/context/skins/leather-dev/note.txt (original)
+++ forrest/trunk/src/core/context/skins/leather-dev/note.txt Tue Sep 14 17:18:37 2004
@@ -7,44 +7,3 @@
done -> enhancement bug
--Issues-------------------
-- the corner images should be rendered through svg with the header color.
--> DONE
--> ToDo: get rid of the images and use only divs!
-
-- the menu points should be displayed "better".
--> DONE
--- Use the krysalis-site menu approach for the overall menu display.
--> DONE
--- Use the old lenya innermenu approch to further enhance the menu .
--> DONE
-
-- the content area needs some attention.
--> DONE
--- introduce the heading scheme from krysalis (<headings type="clean|box|underlined"/>)
--> DONE
--> ToDo: make box with round corners
--> done: make underlined with variable border height
--> ToDo: make underline with bottom round corner
--- introduce the toc for each html-page
--> DONE
--- introduce the external-link-images.
--> DONE
-
-- the publish note should be where now only a border is.
-Like <div id="published"/>
--> DONE
-, but make it configurable.
--> DONE
-- footer needs some attention
--> DONE
--- the footer do not have the color profile! Enable it!
--> DONE
--- the footer should as well contain a feedback link.
-See http://issues.apache.org/eyebrowse/ReadMsg?listName=forrest-user@xml.apache.org&msgNo=71
--> DONE
-
-- introduce credits alternativ location
--> DONE
-
-- border for published / breadtrail / menu /tab divs
--> ToDo
\ No newline at end of file
Modified: forrest/trunk/src/core/context/skins/leather-dev/xslt/html/site2xhtml.xsl
==============================================================================
--- forrest/trunk/src/core/context/skins/leather-dev/xslt/html/site2xhtml.xsl (original)
+++ forrest/trunk/src/core/context/skins/leather-dev/xslt/html/site2xhtml.xsl Tue Sep 14 17:18:37 2004
@@ -200,17 +200,19 @@
|end search
+</xsl:comment>
</xsl:if>
+ </div>
+<div id="nav">
<xsl:comment>+
|start Tabs
+</xsl:comment>
<ul id="nav-main">
<xsl:apply-templates select="ul[@id='tabs']/*"/>
</ul>
-
+ <xsl:apply-templates select="div[@id='level2tabs']"/>
<xsl:comment>+
|end Tabs
+</xsl:comment>
- </div>
+</div>
<div id="branding-published">
<script language="JavaScript" type="text/javascript"><![CDATA[<!--
document.write("Published: " + document.lastModified);
Modified: forrest/trunk/src/core/context/skins/leather-dev/xslt/html/tab2menu.xsl
==============================================================================
--- forrest/trunk/src/core/context/skins/leather-dev/xslt/html/tab2menu.xsl (original)
+++ forrest/trunk/src/core/context/skins/leather-dev/xslt/html/tab2menu.xsl Tue Sep 14 17:18:37 2004
@@ -14,9 +14,28 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
+
<!--
-This stylesheet generates 'tabs' at the top left of the screen.
-See the imported tab2menu.xsl for details.
+This stylesheet generates 'tabs' at the top left of the screen. Tabs are
+visual indicators that a certain subsection of the URI space is being browsed.
+For example, if we had tabs with paths:
+
+Tab1: ''
+Tab2: 'community'
+Tab3: 'community/howto'
+Tab4: 'community/howto/xmlform/index.html'
+
+Then if the current path was 'community/howto/foo', Tab3 would be highlighted.
+The rule is: the tab with the longest path that forms a prefix of the current
+path is enabled.
+
+The output of this stylesheet is HTML of the form:
+ <div class="tab">
+ ...
+ </div>
+
+which is then merged by site2xhtml.xsl
+
-->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
@@ -27,6 +46,11 @@
<ul id="tabs">
<xsl:call-template name="base-tabs"/>
</ul>
+ <xsl:if test="tab[@dir=$longest-dir]/tab">
+ <div id="level2tabs">
+ <xsl:call-template name="level2tabs"/>
+ </div>
+ </xsl:if>
</xsl:template>
<xsl:template name="pre-separator">
@@ -45,5 +69,12 @@
<xsl:template name="not-selected">
<li><xsl:call-template name="base-not-selected"/></li>
</xsl:template>
+
+ <xsl:template name="level2-not-selected">
+ <xsl:call-template name="base-not-selected"/>
+ </xsl:template>
+ <xsl:template name="level2-selected">
+ <xsl:call-template name="base-selected"/>
+ </xsl:template>
</xsl:stylesheet>