diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-07-23 20:45:22 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-07-23 20:45:22 +0200 |
| commit | 87f3403dfcfa008070f69fe588e1e108c001fe27 (patch) | |
| tree | 2a1af10cc692a72de21dc6c3108e2be5b0067e23 /public | |
| parent | f0745de7f661a27b4d20d2ba317d1b31bf9a6c4b (diff) | |
Restyle pdf headline cards
Diffstat (limited to 'public')
| -rw-r--r-- | public/javascripts/admin_interface.js | 2 | ||||
| -rw-r--r-- | public/stylesheets/ccc.css | 35 |
2 files changed, 20 insertions, 17 deletions
diff --git a/public/javascripts/admin_interface.js b/public/javascripts/admin_interface.js index 284d2b72..7ff10ade 100644 --- a/public/javascripts/admin_interface.js +++ b/public/javascripts/admin_interface.js | |||
| @@ -117,7 +117,7 @@ $(document).ready(function () { | |||
| 117 | input.addEventListener('change', function() { | 117 | input.addEventListener('change', function() { |
| 118 | var name_field = document.getElementById('asset_name'); | 118 | var name_field = document.getElementById('asset_name'); |
| 119 | if (input.files.length && name_field && name_field.value === '') { | 119 | if (input.files.length && name_field && name_field.value === '') { |
| 120 | name_field.value = input.files[0].name.replace(/\.[^.]+$/, ''); | 120 | name_field.value = input.files[0].name.replace(/\.[^.]+$/, '').replace(/[_-]+/g, ' '); |
| 121 | } | 121 | } |
| 122 | }); | 122 | }); |
| 123 | } | 123 | } |
diff --git a/public/stylesheets/ccc.css b/public/stylesheets/ccc.css index 91f7a06a..5046baac 100644 --- a/public/stylesheets/ccc.css +++ b/public/stylesheets/ccc.css | |||
| @@ -778,36 +778,39 @@ div.teaser_ruler { | |||
| 778 | 778 | ||
| 779 | .headline_document_card { | 779 | .headline_document_card { |
| 780 | display: flex; | 780 | display: flex; |
| 781 | gap: 1rem; | ||
| 782 | align-items: flex-start; | 781 | align-items: flex-start; |
| 783 | border: 1px solid color-mix(in srgb, CanvasText, #808080 25%); | 782 | gap: 1.5em; |
| 784 | border-radius: 6px; | 783 | margin: 1.5em 0; |
| 785 | padding: 1rem; | ||
| 786 | text-decoration: none; | 784 | text-decoration: none; |
| 787 | color: inherit; | ||
| 788 | } | ||
| 789 | |||
| 790 | .headline_document_card:hover { | ||
| 791 | border-color: CanvasText; | ||
| 792 | } | 785 | } |
| 793 | 786 | ||
| 794 | .headline_document_card_thumb { | 787 | .headline_document_card_thumb { |
| 795 | max-width: 120px; | 788 | border: 1px solid rgba(128, 128, 128, 0.4); |
| 796 | max-height: 160px; | 789 | box-shadow: 2px 3px 8px rgba(0, 0, 0, 0.25); |
| 797 | border: 1px solid color-mix(in srgb, CanvasText, #808080 25%); | 790 | max-width: 180px; |
| 798 | flex-shrink: 0; | 791 | height: auto; |
| 799 | } | 792 | } |
| 800 | 793 | ||
| 801 | .headline_document_card_info { | 794 | .headline_document_card_info { |
| 802 | display: flex; | 795 | display: flex; |
| 803 | align-items: center; | 796 | flex-direction: column; |
| 804 | gap: 0.5rem; | 797 | gap: 0.3em; |
| 798 | padding-top: 0.5em; | ||
| 805 | } | 799 | } |
| 806 | 800 | ||
| 807 | .headline_document_card_title { | 801 | .headline_document_card_titlerow { |
| 802 | display: flex; | ||
| 803 | align-items: center; | ||
| 804 | gap: 0.4em; | ||
| 808 | font-weight: bold; | 805 | font-weight: bold; |
| 809 | } | 806 | } |
| 810 | 807 | ||
| 808 | .headline_document_card_meta { | ||
| 809 | font-size: 0.85em; | ||
| 810 | font-weight: normal; | ||
| 811 | color: rgba(128, 128, 128, 0.95); | ||
| 812 | } | ||
| 813 | |||
| 811 | .related_documents { | 814 | .related_documents { |
| 812 | margin-top: 1rem; | 815 | margin-top: 1rem; |
| 813 | } | 816 | } |
