use CSS class for rendering of description fields, adjust setting for this: no italics, slightly bigger font

This commit is contained in:
Helmut Merz 2013-10-16 11:27:18 +02:00
parent f9801e184b
commit ad144f7f69
7 changed files with 36 additions and 18 deletions

View file

@ -64,10 +64,12 @@
</h1> </h1>
<metal:block use-macro="view/concept_macros/filter_input" /> <metal:block use-macro="view/concept_macros/filter_input" />
</metal:title> </metal:title>
<p metal:define-macro="conceptdescription" <metal:desc define-macro="conceptdescription"
tal:define="description description|item/renderedDescription" tal:define="description description|item/renderedDescription"
tal:condition="description"> tal:condition="description">
<i tal:content="structure description">Description</i></p> <div class="description"
tal:content="structure description">Description</div>
</metal:desc>
</metal:title> </metal:title>

View file

@ -72,7 +72,8 @@
</tal:image> </tal:image>
<div tal:condition="cell/renderedTextDescription" <div tal:condition="cell/renderedTextDescription"
tal:attributes="class python:part.cssClass[1]"> tal:attributes="class python:part.cssClass[1]">
<span tal:content="structure cell/renderedTextDescription" /> <span class="description"
tal:content="structure cell/renderedTextDescription" />
</div> </div>
<tal:break condition="python:part.showImage and cell.img"> <tal:break condition="python:part.showImage and cell.img">
<br style="clear: both" />&nbsp;</tal:break> <br style="clear: both" />&nbsp;</tal:break>

View file

@ -12,9 +12,11 @@
<h1><a tal:omit-tag="python: level > 1" <h1><a tal:omit-tag="python: level > 1"
tal:attributes="href request/URL" tal:attributes="href request/URL"
tal:content="item/title">Title</a></h1> tal:content="item/title">Title</a></h1>
<p tal:define="description description|item/renderedDescription" <tal:desc define="description description|item/renderedDescription"
tal:condition="description"> condition="description">
<i tal:content="structure description">Description</i></p> <div class="description"
tal:content="structure description">Description</div>
</tal:desc>
<metal:fields define-slot="fields" /> <metal:fields define-slot="fields" />
<div class="content-1" id="1.body" <div class="content-1" id="1.body"
tal:attributes="id id;" tal:attributes="id id;"
@ -53,7 +55,8 @@
tal:content="item/title">Title</a></h1><br /> tal:content="item/title">Title</a></h1><br />
<img tal:attributes="src <img tal:attributes="src
string:${view/url}/.${view/targetId}/view?version=this" /> string:${view/url}/.${view/targetId}/view?version=this" />
<p><i tal:content="structure item/renderedDescription">Description</i></p> <div class="description"
tal:content="structure item/renderedDescription">Description</div>
<metal:fields use-macro="view/comment_macros/comments" /> <metal:fields use-macro="view/comment_macros/comments" />
</div> </div>
</metal:block> </metal:block>
@ -63,8 +66,10 @@
<div tal:attributes="ondblclick python: item.openEditWindow('edit.html')"> <div tal:attributes="ondblclick python: item.openEditWindow('edit.html')">
<div metal:use-macro="views/node_macros/object_actions" /> <div metal:use-macro="views/node_macros/object_actions" />
<h1 tal:content="item/title">Title</h1> <h1 tal:content="item/title">Title</h1>
<p><i tal:content="structure item/renderedDescription">Description</i>&nbsp;</p> <div class="description"
<p> tal:content="structure item/renderedDescription">Description</div>
<br />
<div>
<span class="button"> <span class="button">
<a i18n:translate="" <a i18n:translate=""
tal:attributes="href tal:attributes="href
@ -90,7 +95,7 @@
Open for editing Open for editing
</a> </a>
</span> </span>
</p> </div>
<metal:fields use-macro="view/comment_macros/comments" /> <metal:fields use-macro="view/comment_macros/comments" />
</div> </div>
</metal:block> </metal:block>

View file

@ -22,10 +22,6 @@ body {
margin-top: 1em; margin-top: 1em;
} }
.head-description, .legend {
font-style: italic;
}
ul.view-modes { ul.view-modes {
padding: 0 0 0 2em; padding: 0 0 0 2em;
margin: 0.7em 0 0 0; margin: 0.7em 0 0 0;
@ -118,12 +114,23 @@ thead th {
padding-left: 0; padding-left: 0;
} }
.head-description{
/* font-style: italic; */
font-size: 110%;
}
.description { .description {
font-style: italic; /* font-style: italic; */
/* margin-top: 0.5em;*/ /* margin-top: 0.5em;*/
font-size: 110%;
margin-bottom: 0.3em; margin-bottom: 0.3em;
} }
.legend {
/* font-style: italic; */
font-size: 95%;
}
.infotext { .infotext {
font-size: 90%; font-size: 90%;
} }

View file

@ -13,7 +13,8 @@
<h3><a tal:attributes="href python:view.getUrlForTarget(related)" <h3><a tal:attributes="href python:view.getUrlForTarget(related)"
tal:content="related/title" /> tal:content="related/title" />
</h3> </h3>
<div tal:content="structure related/renderedDescription" /> <div class="description"
tal:content="structure related/renderedDescription" />
<tal:nested condition="python:related.getOptions('show_nested_children')"> <tal:nested condition="python:related.getOptions('show_nested_children')">
<metal:children use-macro="item/book_macros/nested_children" /> <metal:children use-macro="item/book_macros/nested_children" />
</tal:nested> </tal:nested>

View file

@ -11,7 +11,8 @@
tal:attributes="src tal:attributes="src
string:${url}/@@mediaasset.html?version=this&v=medium" /></a> string:${url}/@@mediaasset.html?version=this&v=medium" /></a>
</p> </p>
<p><i tal:content="structure item/renderedDescription">Description</i></p> <div class="description"
tal:content="structure item/renderedDescription">Description</div>
<metal:fields use-macro="view/comment_macros/comments" /> <metal:fields use-macro="view/comment_macros/comments" />
</div> </div>
</metal:block> </metal:block>

View file

@ -11,7 +11,8 @@
<li><a tal:attributes="href row/url" <li><a tal:attributes="href row/url"
tal:content="row/title">My Site</a> tal:content="row/title">My Site</a>
<tal:description condition="row/description"><br /> <tal:description condition="row/description"><br />
<i tal:content="structure row/renderedDescription" /> <div class="description"
tal:content="structure row/renderedDescription" />
</tal:description> </tal:description>
</li> </li>
</tal:site> </tal:site>