-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #64 from acdh-oeaw/limit-col-width
Limit col width
- Loading branch information
Showing
8 changed files
with
167 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
.show-more:checked + .content .more-content { | ||
display: inline; | ||
} | ||
.show-more:checked + .content .preview { | ||
display: none; | ||
} | ||
.show-more:checked + .content .more-link { | ||
display: none; | ||
} | ||
.show-more:checked + .content .less-link { | ||
display: inline; | ||
} | ||
.show-more, .less-link, .more-content { | ||
display: none; | ||
} | ||
|
||
.linkish { | ||
color: #007BFF; | ||
cursor: pointer; | ||
text-decoration: none; | ||
} | ||
|
||
.linkish:hover { | ||
color: #0056b3; | ||
text-decoration: underline; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
apis_ontology/templates/apis_core/apis_entities/abstractentity.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{% extends "apis_core/apis_entities/abstractentity.html" %} | ||
|
||
{% block scriptHeader %} | ||
{{ block.super }} | ||
<link rel="stylesheet" href="/static/styles/tibschol.css"> | ||
{% endblock %} |
43 changes: 0 additions & 43 deletions
43
apis_ontology/templates/apis_core/apis_entities/abstractentity_detail.html
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{% if preview_value != field_value %} | ||
<input type="checkbox" id="show-more-{{ record.id }}-{{ field_name }}" class="show-more"> | ||
{% endif %} | ||
<div class="content" id="content-{{ record.id }}-{{ field_name }}"> | ||
<span class="preview"> | ||
{{preview_value }} | ||
</span> | ||
<span class="more-content"> | ||
{{ field_value }} | ||
</span> | ||
{% if preview_value != field_value %} | ||
<label for="show-more-{{ record.id }}-{{ field_name }}" class="more-link linkish"> | ||
more | ||
</label> | ||
<label for="show-more-{{ record.id }}-{{ field_name }}" class="less-link linkish"> | ||
less | ||
</label> | ||
{% endif %} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.