[Checkins] SVN: Grokstar/trunk/src/grokstar/ Some restructurings
and css changes.
Robert Marianski
rmarianski at openplans.org
Mon Feb 18 01:02:34 EST 2008
Log message for revision 84004:
Some restructurings and css changes.
* Added blogtitle section and styling on index page.
* Re-use snippet view on entry index page.
* Header stylings.
Changed:
U Grokstar/trunk/src/grokstar/blog_templates/blogindex.pt
U Grokstar/trunk/src/grokstar/entry_templates/index.pt
U Grokstar/trunk/src/grokstar/static/grokstar.css
-=-
Modified: Grokstar/trunk/src/grokstar/blog_templates/blogindex.pt
===================================================================
--- Grokstar/trunk/src/grokstar/blog_templates/blogindex.pt 2008-02-18 02:36:55 UTC (rev 84003)
+++ Grokstar/trunk/src/grokstar/blog_templates/blogindex.pt 2008-02-18 06:02:33 UTC (rev 84004)
@@ -4,16 +4,14 @@
<title metal:fill-slot="title" tal:content="context/title"/>
</head>
<body>
- <div metal:fill-slot="main-content"
- tal:define="title context/title;
- tagline context/tagline"
- >
- <h1 tal:content="python:title and title or default">Untitled</h1>
- <h2 tal:content="python:tagline and tagline or default">No tagline</h2>
- <p>
+ <div metal:fill-slot="main-content">
+ <div id="blogtitle"
+ tal:define="title context/title;
+ tagline context/tagline">
+ <h1 tal:content="python:title and title or default">Untitled</h1>
+ <h2 tal:content="python:tagline and tagline or default">No tagline</h2>
<a href="edit" tal:attributes="href python:view.url('edit')">Edit</a>
- blog title/tagline
- </p>
+ </div>
<ol>
<li tal:repeat="entry view/entries"
tal:content="structure entry/@@item" />
Modified: Grokstar/trunk/src/grokstar/entry_templates/index.pt
===================================================================
--- Grokstar/trunk/src/grokstar/entry_templates/index.pt 2008-02-18 02:36:55 UTC (rev 84003)
+++ Grokstar/trunk/src/grokstar/entry_templates/index.pt 2008-02-18 06:02:33 UTC (rev 84004)
@@ -5,12 +5,8 @@
</head>
<body>
<div metal:fill-slot="main-content">
+ <tal:entry replace="structure context/@@item" />
<a tal:attributes="href python:view.url('edit')">edit</a>
- <p>
- <tal:block content="context/title"/>
- (<span class="published" tal:content="context/published"/>)
- </p>
- <tal:block content="structure context/@@renderedcontent" />
</div>
</body>
</html>
Modified: Grokstar/trunk/src/grokstar/static/grokstar.css
===================================================================
--- Grokstar/trunk/src/grokstar/static/grokstar.css 2008-02-18 02:36:55 UTC (rev 84003)
+++ Grokstar/trunk/src/grokstar/static/grokstar.css 2008-02-18 06:02:33 UTC (rev 84004)
@@ -18,7 +18,11 @@
font-size: 108%;
}
-h1,h2,h3,h4,strong {
+h1,h2,h3 {
+ margin: 1em 0;
+}
+
+h1,h2,h3,strong {
font-weight: bold;
}
@@ -40,13 +44,14 @@
}
#appname {
- font-size: 153.9%;
+ font-size: 197%;
font-weight: bold;
}
#menu li, #ft li {
display: inline;
line-height: 250%;
+ margin: 0 .25em;
}
#menu li a, #ft li a {
@@ -56,3 +61,25 @@
#menu li a:hover, #ft li a:hover {
text-decoration: underline;
}
+
+#menu li {
+ font-size: 116%;
+}
+
+#blogtitle {
+ margin-bottom: 1em;
+ text-align: center;
+}
+
+#blogtitle p {
+ margin-bottom: 0;
+}
+
+#blogtitle h1,h2 {
+ margin: 0 0;
+}
+
+#blogtitle h2 {
+ font-weight: normal;
+ font-size: 108%;
+}
More information about the Checkins
mailing list