#content ul, #content ol {
padding: 5px;
padding-left: 15px;
+ font-size: 0.9em;
}
#content li {
padding: 3px;
table.listing tbody tr.odd { background-color: #f7f7f7 }
table.listing tbody tr:hover { background: #f7f8fa !important }
-/*
+
#content {
position: relative;
+ margin-bottom: 2em;
}
-*/
+
/* Forms */
input, textarea, select { margin: 2px }
input, select { vertical-align: middle }
/* HTML dublin core display */
table.dublincore { width: auto; }
-table.dublincore caption {
+h4.dublincore {
text-align: left;
padding: 5px 0 10px;
font-weight: bold;
height: 0;
margin-bottom: -5px;
}
-dl.listing {
+dl {
position: relative;
margin: 0;
margin-bottom: .5em;
/* ie5 mac \*/
dt { clear: both; }
/* end hack */
-dl.listing dt, dl.listing dd {
+dl dt, dl dd {
position: relative;
float: left;
margin: 0;
width: 70%;
font-weight: bold;
}
+dl.dublincore dt {
+ margin-right: .8em;
+ width: 28em !important;
+ font-style: italic;
+}
+dl.dublincore dd {
+ width: 50em;
+ font-weight: bold;
+}
+dl.dublincore dt span {
+ width: 18em;
+ display: block;
+ float: left;
+ font-style: normal;
+ background-color: #f9f9f9;
+ border: 1px solid #eee;
+ border-right: 3px solid #ddd;
+ padding-left: .3em;
+ margin-right: 1.2em;
+ color: #444;
+}
+dl.dublincore .caption {
+ background-color: #B8B7C1;
+ margin: .5em 0;
+ border-bottom: 1px dotted #666;
+ padding-top: .4em;
+ padding-bottom: .4em;
+ padding-left: .3em;
+ color: #fff;
+ font-weight: bold;
+ border-right: 1px solid #fff;
+}
+dl.dublincore dt.caption span {
+ background-color: #B8B7C1;
+ border: none;
+ border-right: 1px solid #fff;
+ color: #fff;
+}
+dl.dublincore dd.caption {
+ padding-bottom: .4em;
+ padding-left: .4em;
+}
.extraInfos h4 {
/*background: #B8B7C1 url(extra_bg.gif) no-repeat right top;*/
background-color: #B8B7C1;
dl.listing {
width: 68em;
+ clear: both;
+ margin-top: .4em;
}
dl.listing dd {
width: 50em;
+ margin-top: .2em;
}
\ No newline at end of file
<div id="content">
{% block content %}{% endblock %}
+<div class="nett"></div>
</div>
<div id="footer">
{% endblock %}
{% block content %}
-
- <table class="dublincore listing">
- <caption>Dublin Core Expression</caption>
- <thead>
- <tr><th>Element</th><th>Refinement</th><th>Value</th></tr>
- </thead>
- <tbody>
+ <h4 class="dublincore">Dublin Core Expression</h4>
+ <dl class="dublincore">
+ <dt class="caption"><span>Element</span>Refinement</dt><dd class="caption">Value</dd>
{% for element in object.to_dublincore.elements %}
- {% if element.value %}
- <tr><th>{{ element.name }}</th>
- <td>{{ element.refinement|default:" " }}</td>
- <td>{{ element.value }}</td></tr>
- {% endif %}
+ {% if element.value %}
+ <dt><span>{{ element.name }}</span>{{ element.refinement|default:" " }}</dt><dd>{% ifequal element.field "collection" %}<a href="{% url telemeta-collection-dublincore item.collection.id|urlencode %}">{{ element.value }}</a>{% else %}{{ element.value }}{% endifequal %}</dd>
+ {% endif %}
{% endfor %}
- {% for item in object.ordered_items %}
- <tr><th>relation</th><td>hasPart</td><td>
- <a href="{% url telemeta-item-dublincore item.id|urlencode %}">
- {{ item.id }}</a>
- </td></tr>
- {% endfor %}
- </tbody>
- </table>
+ </dl>
{% endblock %}
{% else %}
<p>No such collection</p>
{% extends "base.html" %}
{% load telemeta_utils %}
+{% if item %}
{% block submenu %}
- <a href="{% url telemeta-item-detail item.id|urlencode %}">
- Normal View</a>
+ <h3>Item: {{ item.title }}</h3>
+ <div><a href="{% url telemeta-item-detail item.id|urlencode %}">Normal View</a></div>
{% endblock %}
{% block content %}
-{% if item %}
- <h3>Item: {{ item.title }}</h3>
- <table class="dublincore listing">
- <caption>Dublin Core Expression</caption>
- <thead>
- <tr><th>Element</th><th>Refinement</th><th>Value</th></tr>
- </thead>
- <tbody>
+ <h4 class="dublincore">Dublin Core Expression</h4>
+ <dl class="dublincore">
+ <dt class="caption"><span>Element</span>Refinement</dt><dd class="caption">Value</dd>
{% for element in item.to_dublincore.elements %}
- {% if element.value %}
- <tr><th>{{ element.name }}</th>
- <td>{{ element.refinement|default:" " }}</td>
- <td>
- {% ifequal element.field "collection" %}
- <a href="{% url telemeta-collection-dublincore item.collection.id|urlencode %}">
- {{ element.value }}</a>
- {% else %}
- {{ element.value }}
- {% endifequal %}
- </td>
- </tr>
- {% endif %}
+ {% if element.value %}
+ <dt><span>{{ element.name }}</span>{{ element.refinement|default:" " }}</dt><dd>{% ifequal element.field "collection" %}<a href="{% url telemeta-collection-dublincore item.collection.id|urlencode %}">{{ element.value }}</a>{% else %}{{ element.value }}{% endifequal %}</dd>
+ {% endif %}
{% endfor %}
- </tbody>
- </table>
+ </dl>
+{% endblock %}
{% else %}
<p>No such item</p>
{% endif %}
-{% endblock %}
+