use CSS class for rendering of description fields, adjust setting for this: no italics, slightly bigger font
This commit is contained in:
parent
f9801e184b
commit
ad144f7f69
7 changed files with 36 additions and 18 deletions
|
@ -64,10 +64,12 @@
|
|||
</h1>
|
||||
<metal:block use-macro="view/concept_macros/filter_input" />
|
||||
</metal:title>
|
||||
<p metal:define-macro="conceptdescription"
|
||||
<metal:desc define-macro="conceptdescription"
|
||||
tal:define="description description|item/renderedDescription"
|
||||
tal:condition="description">
|
||||
<i tal:content="structure description">Description</i></p>
|
||||
<div class="description"
|
||||
tal:content="structure description">Description</div>
|
||||
</metal:desc>
|
||||
</metal:title>
|
||||
|
||||
|
||||
|
|
|
@ -72,7 +72,8 @@
|
|||
</tal:image>
|
||||
<div tal:condition="cell/renderedTextDescription"
|
||||
tal:attributes="class python:part.cssClass[1]">
|
||||
<span tal:content="structure cell/renderedTextDescription" />
|
||||
<span class="description"
|
||||
tal:content="structure cell/renderedTextDescription" />
|
||||
</div>
|
||||
<tal:break condition="python:part.showImage and cell.img">
|
||||
<br style="clear: both" /> </tal:break>
|
||||
|
|
|
@ -12,9 +12,11 @@
|
|||
<h1><a tal:omit-tag="python: level > 1"
|
||||
tal:attributes="href request/URL"
|
||||
tal:content="item/title">Title</a></h1>
|
||||
<p tal:define="description description|item/renderedDescription"
|
||||
tal:condition="description">
|
||||
<i tal:content="structure description">Description</i></p>
|
||||
<tal:desc define="description description|item/renderedDescription"
|
||||
condition="description">
|
||||
<div class="description"
|
||||
tal:content="structure description">Description</div>
|
||||
</tal:desc>
|
||||
<metal:fields define-slot="fields" />
|
||||
<div class="content-1" id="1.body"
|
||||
tal:attributes="id id;"
|
||||
|
@ -53,7 +55,8 @@
|
|||
tal:content="item/title">Title</a></h1><br />
|
||||
<img tal:attributes="src
|
||||
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" />
|
||||
</div>
|
||||
</metal:block>
|
||||
|
@ -63,8 +66,10 @@
|
|||
<div tal:attributes="ondblclick python: item.openEditWindow('edit.html')">
|
||||
<div metal:use-macro="views/node_macros/object_actions" />
|
||||
<h1 tal:content="item/title">Title</h1>
|
||||
<p><i tal:content="structure item/renderedDescription">Description</i> </p>
|
||||
<p>
|
||||
<div class="description"
|
||||
tal:content="structure item/renderedDescription">Description</div>
|
||||
<br />
|
||||
<div>
|
||||
<span class="button">
|
||||
<a i18n:translate=""
|
||||
tal:attributes="href
|
||||
|
@ -90,7 +95,7 @@
|
|||
Open for editing
|
||||
</a>
|
||||
</span>
|
||||
</p>
|
||||
</div>
|
||||
<metal:fields use-macro="view/comment_macros/comments" />
|
||||
</div>
|
||||
</metal:block>
|
||||
|
|
|
@ -22,10 +22,6 @@ body {
|
|||
margin-top: 1em;
|
||||
}
|
||||
|
||||
.head-description, .legend {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
ul.view-modes {
|
||||
padding: 0 0 0 2em;
|
||||
margin: 0.7em 0 0 0;
|
||||
|
@ -118,12 +114,23 @@ thead th {
|
|||
padding-left: 0;
|
||||
}
|
||||
|
||||
.head-description{
|
||||
/* font-style: italic; */
|
||||
font-size: 110%;
|
||||
}
|
||||
|
||||
.description {
|
||||
font-style: italic;
|
||||
/* font-style: italic; */
|
||||
/* margin-top: 0.5em;*/
|
||||
font-size: 110%;
|
||||
margin-bottom: 0.3em;
|
||||
}
|
||||
|
||||
.legend {
|
||||
/* font-style: italic; */
|
||||
font-size: 95%;
|
||||
}
|
||||
|
||||
.infotext {
|
||||
font-size: 90%;
|
||||
}
|
||||
|
|
|
@ -13,7 +13,8 @@
|
|||
<h3><a tal:attributes="href python:view.getUrlForTarget(related)"
|
||||
tal:content="related/title" />
|
||||
</h3>
|
||||
<div tal:content="structure related/renderedDescription" />
|
||||
<div class="description"
|
||||
tal:content="structure related/renderedDescription" />
|
||||
<tal:nested condition="python:related.getOptions('show_nested_children')">
|
||||
<metal:children use-macro="item/book_macros/nested_children" />
|
||||
</tal:nested>
|
||||
|
|
|
@ -11,7 +11,8 @@
|
|||
tal:attributes="src
|
||||
string:${url}/@@mediaasset.html?version=this&v=medium" /></a>
|
||||
</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" />
|
||||
</div>
|
||||
</metal:block>
|
||||
|
|
|
@ -11,7 +11,8 @@
|
|||
<li><a tal:attributes="href row/url"
|
||||
tal:content="row/title">My Site</a>
|
||||
<tal:description condition="row/description"><br />
|
||||
<i tal:content="structure row/renderedDescription" />
|
||||
<div class="description"
|
||||
tal:content="structure row/renderedDescription" />
|
||||
</tal:description>
|
||||
</li>
|
||||
</tal:site>
|
||||
|
|
Loading…
Add table
Reference in a new issue