diff options
Diffstat (limited to 'public/stylesheets')
| -rw-r--r-- | public/stylesheets/admin.css | 172 | ||||
| -rw-r--r-- | public/stylesheets/ccc.css | 91 |
2 files changed, 181 insertions, 82 deletions
diff --git a/public/stylesheets/admin.css b/public/stylesheets/admin.css index 0e11747..9f73775 100644 --- a/public/stylesheets/admin.css +++ b/public/stylesheets/admin.css | |||
| @@ -97,7 +97,8 @@ input[type=radio] { | |||
| 97 | } | 97 | } |
| 98 | 98 | ||
| 99 | #metadata, | 99 | #metadata, |
| 100 | #content { | 100 | #content, |
| 101 | #main_fields { | ||
| 101 | margin-left: 5px; | 102 | margin-left: 5px; |
| 102 | } | 103 | } |
| 103 | 104 | ||
| @@ -830,12 +831,11 @@ form.button_to button[type="submit"] { | |||
| 830 | 831 | ||
| 831 | /* Layout only -- the at-rest visibility (wavy underline) for these | 832 | /* Layout only -- the at-rest visibility (wavy underline) for these |
| 832 | links comes from the scoped rule in Base elements above. */ | 833 | links comes from the scoped rule in Base elements above. */ |
| 834 | .add_events, | ||
| 835 | .add_attachments, | ||
| 833 | .add_child_links { | 836 | .add_child_links { |
| 834 | margin-top: 0.5rem; | 837 | margin-top: 0.5rem; |
| 835 | } | 838 | margin-bottom: 0; |
| 836 | |||
| 837 | .add_child_links a { | ||
| 838 | white-space: nowrap; | ||
| 839 | } | 839 | } |
| 840 | 840 | ||
| 841 | .sitemap_node { | 841 | .sitemap_node { |
| @@ -892,6 +892,26 @@ form.button_to button[type="submit"] { | |||
| 892 | Page editor / metadata forms | 892 | Page editor / metadata forms |
| 893 | ============================================================ */ | 893 | ============================================================ */ |
| 894 | 894 | ||
| 895 | @media(min-width:1016px) { | ||
| 896 | #edit_grid { | ||
| 897 | display: grid; | ||
| 898 | grid-template-columns: 1fr 1fr; | ||
| 899 | grid-template-areas: | ||
| 900 | "main meta" | ||
| 901 | "body body"; | ||
| 902 | column-gap: 2rem; | ||
| 903 | align-items: start; | ||
| 904 | margin-left: -125px; | ||
| 905 | } | ||
| 906 | #main_fields { grid-area: main; } | ||
| 907 | #metadata_details { grid-area: meta; } | ||
| 908 | #page_editor #content { grid-area: body; } | ||
| 909 | |||
| 910 | /* Details is force-opened by JS on desktop; hide the summary only | ||
| 911 | once open, so a JS failure still leaves a working toggle. */ | ||
| 912 | #metadata_details[open] > summary { display: none; } | ||
| 913 | } | ||
| 914 | |||
| 895 | #new_node { | 915 | #new_node { |
| 896 | margin-left: -118px; | 916 | margin-left: -118px; |
| 897 | } | 917 | } |
| @@ -947,18 +967,16 @@ div#page_editor { | |||
| 947 | } | 967 | } |
| 948 | 968 | ||
| 949 | @media(min-width:1016px) { | 969 | @media(min-width:1016px) { |
| 950 | input#tag_list, | ||
| 951 | input#menu_search_term, | 970 | input#menu_search_term, |
| 952 | input#menu_item_node_id, | 971 | input#menu_item_node_id, |
| 953 | input#menu_item_path, | 972 | input#menu_item_path, |
| 954 | input#menu_item_title, | 973 | input#menu_item_title { |
| 955 | input#node_staged_slug, | ||
| 956 | input#move_to_search_term { | ||
| 957 | width: 690px; | 974 | width: 690px; |
| 958 | } | 975 | } |
| 959 | 976 | ||
| 960 | input[type=text]#page_title { | 977 | input[type=text]#page_title { |
| 961 | width: 690px; | 978 | width: 100%; |
| 979 | box-sizing: border-box; | ||
| 962 | font-size: 1rem; | 980 | font-size: 1rem; |
| 963 | padding-top: 6px; | 981 | padding-top: 6px; |
| 964 | padding-bottom: 4px; | 982 | padding-bottom: 4px; |
| @@ -968,24 +986,27 @@ div#page_editor { | |||
| 968 | } | 986 | } |
| 969 | 987 | ||
| 970 | textarea#page_abstract { | 988 | textarea#page_abstract { |
| 971 | width: 690px; | 989 | width: 100%; |
| 972 | height: 150px; | 990 | box-sizing: border-box; |
| 991 | height: 250px; | ||
| 973 | padding: 5px; | 992 | padding: 5px; |
| 974 | } | 993 | } |
| 975 | 994 | ||
| 976 | #page_editor textarea#page_body { | 995 | #page_editor textarea#page_body { |
| 977 | width: 700px; | 996 | width: 100%; |
| 997 | box-sizing: border-box; | ||
| 978 | height: 600px; | 998 | height: 600px; |
| 979 | } | 999 | } |
| 980 | 1000 | ||
| 981 | #page_editor #metadata, #page_editor #content, #admin_overview { | 1001 | #admin_overview { |
| 982 | margin-left: -125px; | 1002 | margin-left: -125px; |
| 983 | } | 1003 | } |
| 984 | 1004 | ||
| 985 | #page_editor input[type=text], | 1005 | #page_editor input[type=text], |
| 986 | #page_editor input[type=password], | 1006 | #page_editor input[type=password], |
| 987 | #page_editor textarea { | 1007 | #page_editor textarea { |
| 988 | width: 690px; | 1008 | width: 100%; |
| 1009 | box-sizing: border-box; | ||
| 989 | } | 1010 | } |
| 990 | } | 1011 | } |
| 991 | 1012 | ||
| @@ -998,18 +1019,14 @@ div#page_editor { | |||
| 998 | } | 1019 | } |
| 999 | 1020 | ||
| 1000 | #page_editor #content, | 1021 | #page_editor #content, |
| 1001 | #page_editor #metadata { | 1022 | #page_editor #metadata, |
| 1023 | #page_editor #main_fields { | ||
| 1002 | padding-right: 5px; | 1024 | padding-right: 5px; |
| 1003 | } | 1025 | } |
| 1004 | 1026 | ||
| 1005 | /* Fixed 800px width will overflow narrow viewports despite | ||
| 1006 | border-box -- every sibling rule in this block uses 100% instead. | ||
| 1007 | Worth checking on an actual phone; looks unfinished rather than | ||
| 1008 | intentional. Not changed here since it wasn't part of what you | ||
| 1009 | asked to fix. */ | ||
| 1010 | #page_editor textarea#page_body { | 1027 | #page_editor textarea#page_body { |
| 1011 | box-sizing: border-box; | 1028 | box-sizing: border-box; |
| 1012 | width: 800px; | 1029 | width: 100%; |
| 1013 | height: 50rem; | 1030 | height: 50rem; |
| 1014 | } | 1031 | } |
| 1015 | 1032 | ||
| @@ -1042,10 +1059,6 @@ div#page_editor { | |||
| 1042 | select { | 1059 | select { |
| 1043 | font-size: 1.5rem; | 1060 | font-size: 1.5rem; |
| 1044 | } | 1061 | } |
| 1045 | |||
| 1046 | #metadata ul#image_box { | ||
| 1047 | width: 100% !important; | ||
| 1048 | } | ||
| 1049 | } | 1062 | } |
| 1050 | 1063 | ||
| 1051 | /* ============================================================ | 1064 | /* ============================================================ |
| @@ -1128,25 +1141,6 @@ div#draft_list table td.actions a { | |||
| 1128 | font-size: 0.9em; | 1141 | font-size: 0.9em; |
| 1129 | } | 1142 | } |
| 1130 | 1143 | ||
| 1131 | #recent_changes_full_list { | ||
| 1132 | list-style: none; | ||
| 1133 | padding: 0; | ||
| 1134 | margin: 0; | ||
| 1135 | } | ||
| 1136 | |||
| 1137 | #recent_changes_full_list li { | ||
| 1138 | padding: 0.75rem 0; | ||
| 1139 | border-bottom: 1px solid #eee; | ||
| 1140 | } | ||
| 1141 | |||
| 1142 | #recent_changes_full_list li:last-child { | ||
| 1143 | border-bottom: none; | ||
| 1144 | } | ||
| 1145 | |||
| 1146 | #recent_changes_full_list li > div { | ||
| 1147 | margin-bottom: 0.25rem; | ||
| 1148 | } | ||
| 1149 | |||
| 1150 | /* ============================================================ | 1144 | /* ============================================================ |
| 1151 | Search widgets | 1145 | Search widgets |
| 1152 | ============================================================ */ | 1146 | ============================================================ */ |
| @@ -1264,31 +1258,6 @@ div#draft_list table td.actions a { | |||
| 1264 | Image box / browser | 1258 | Image box / browser |
| 1265 | ============================================================ */ | 1259 | ============================================================ */ |
| 1266 | 1260 | ||
| 1267 | #metadata ul#image_box { | ||
| 1268 | box-sizing: border-box; | ||
| 1269 | margin: 0; | ||
| 1270 | padding: 10px 5px 10px 5px; | ||
| 1271 | height: 100px; | ||
| 1272 | width: 702px; | ||
| 1273 | border: 1px solid #989898; | ||
| 1274 | } | ||
| 1275 | |||
| 1276 | #metadata ul#image_box li { | ||
| 1277 | float: left; | ||
| 1278 | list-style-type: none; | ||
| 1279 | margin: 5px; | ||
| 1280 | } | ||
| 1281 | |||
| 1282 | div#image_browser { | ||
| 1283 | position: absolute; | ||
| 1284 | top: 40px; | ||
| 1285 | left: 800px; | ||
| 1286 | } | ||
| 1287 | |||
| 1288 | div#image_browser ul li { | ||
| 1289 | list-style-type: none; | ||
| 1290 | } | ||
| 1291 | |||
| 1292 | .thumbnail_list { | 1261 | .thumbnail_list { |
| 1293 | display: flex; | 1262 | display: flex; |
| 1294 | flex-wrap: wrap; | 1263 | flex-wrap: wrap; |
| @@ -1316,6 +1285,30 @@ div#image_browser ul li { | |||
| 1316 | border-radius: 4px; | 1285 | border-radius: 4px; |
| 1317 | } | 1286 | } |
| 1318 | 1287 | ||
| 1288 | .thumbnail_list li { | ||
| 1289 | position: relative; | ||
| 1290 | } | ||
| 1291 | |||
| 1292 | .thumbnail_list li .headline_indicator { | ||
| 1293 | position: absolute; | ||
| 1294 | top: 4px; | ||
| 1295 | right: 4px; | ||
| 1296 | width: 1.4rem; | ||
| 1297 | height: 1.4rem; | ||
| 1298 | display: flex; | ||
| 1299 | align-items: center; | ||
| 1300 | justify-content: center; | ||
| 1301 | border-radius: 50%; | ||
| 1302 | background: rgba(255, 255, 255, 0.85); | ||
| 1303 | color: #f5b400; | ||
| 1304 | } | ||
| 1305 | |||
| 1306 | .thumbnail_list li .headline_indicator svg { | ||
| 1307 | width: 0.9rem; | ||
| 1308 | height: 0.9rem; | ||
| 1309 | fill: currentColor; | ||
| 1310 | } | ||
| 1311 | |||
| 1319 | .related_asset_handle { | 1312 | .related_asset_handle { |
| 1320 | display: flex; | 1313 | display: flex; |
| 1321 | color: #969696; | 1314 | color: #969696; |
| @@ -1327,15 +1320,6 @@ div#image_browser ul li { | |||
| 1327 | height: 1rem; | 1320 | height: 1rem; |
| 1328 | } | 1321 | } |
| 1329 | 1322 | ||
| 1330 | .related_asset_headline_badge { | ||
| 1331 | background: #fff3cd; | ||
| 1332 | color: #6b5900; | ||
| 1333 | border-radius: 999px; | ||
| 1334 | padding: 0.1rem 0.6rem; | ||
| 1335 | font-size: 0.75em; | ||
| 1336 | white-space: nowrap; | ||
| 1337 | } | ||
| 1338 | |||
| 1339 | .related_asset_remove { | 1323 | .related_asset_remove { |
| 1340 | display: flex; | 1324 | display: flex; |
| 1341 | align-items: center; | 1325 | align-items: center; |
| @@ -1372,6 +1356,36 @@ div#image_browser ul li { | |||
| 1372 | border-radius: 4px; | 1356 | border-radius: 4px; |
| 1373 | } | 1357 | } |
| 1374 | 1358 | ||
| 1359 | .related_asset_set_headline { | ||
| 1360 | display: flex; | ||
| 1361 | align-items: center; | ||
| 1362 | justify-content: center; | ||
| 1363 | background: none; | ||
| 1364 | border: none; | ||
| 1365 | padding: 2px; | ||
| 1366 | cursor: pointer; | ||
| 1367 | color: #969696; | ||
| 1368 | } | ||
| 1369 | |||
| 1370 | .related_asset_set_headline svg { | ||
| 1371 | width: 0.9rem; | ||
| 1372 | height: 0.9rem; | ||
| 1373 | } | ||
| 1374 | |||
| 1375 | .related_asset_set_headline:hover, | ||
| 1376 | .related_asset_set_headline[aria-pressed="true"] { | ||
| 1377 | color: #f5b400; | ||
| 1378 | } | ||
| 1379 | |||
| 1380 | .related_asset_set_headline[aria-pressed="true"] svg { | ||
| 1381 | fill: currentColor; | ||
| 1382 | } | ||
| 1383 | |||
| 1384 | .thumbnail_list li.is_headline { | ||
| 1385 | border-color: #fff3cd; | ||
| 1386 | background-color: #fffdf5; | ||
| 1387 | } | ||
| 1388 | |||
| 1375 | /* ============================================================ | 1389 | /* ============================================================ |
| 1376 | Live edit preview | 1390 | Live edit preview |
| 1377 | ============================================================ */ | 1391 | ============================================================ */ |
diff --git a/public/stylesheets/ccc.css b/public/stylesheets/ccc.css index 3474207..91f7a06 100644 --- a/public/stylesheets/ccc.css +++ b/public/stylesheets/ccc.css | |||
| @@ -96,8 +96,8 @@ dd { | |||
| 96 | margin-bottom: .5rem; | 96 | margin-bottom: .5rem; |
| 97 | } | 97 | } |
| 98 | 98 | ||
| 99 | /* ODDITY, kept: utility class — grep callers before it survives the next | 99 | + /* Single caller: _headline_image.html.erb's image-count caption |
| 100 | demolition round */ | 100 | + ("N Bilder"), shown only when a gallery has more than one image. */ |
| 101 | .right { | 101 | .right { |
| 102 | text-align: right; | 102 | text-align: right; |
| 103 | } | 103 | } |
| @@ -727,7 +727,6 @@ div.teaser_ruler { | |||
| 727 | min-width: 0; | 727 | min-width: 0; |
| 728 | } | 728 | } |
| 729 | 729 | ||
| 730 | |||
| 731 | .inline-image--full { | 730 | .inline-image--full { |
| 732 | width: 100%; | 731 | width: 100%; |
| 733 | margin: 1rem 0; | 732 | margin: 1rem 0; |
| @@ -747,3 +746,89 @@ div.teaser_ruler { | |||
| 747 | float: right; | 746 | float: right; |
| 748 | margin-left: 1rem; | 747 | margin-left: 1rem; |
| 749 | } | 748 | } |
| 749 | |||
| 750 | #asset_credits .asset_credit_block { | ||
| 751 | display: none; | ||
| 752 | } | ||
| 753 | |||
| 754 | #asset_credits .asset_credit_block.headline_credit { | ||
| 755 | display: block; | ||
| 756 | } | ||
| 757 | |||
| 758 | #asset_credits { | ||
| 759 | border-top: dotted 1px silver; | ||
| 760 | } | ||
| 761 | |||
| 762 | #asset_credits, | ||
| 763 | .right { | ||
| 764 | font-style: italic; | ||
| 765 | font-family: Georgia; | ||
| 766 | font-size: 0.9rem; | ||
| 767 | color: color-mix(in srgb, CanvasText, #808080); | ||
| 768 | } | ||
| 769 | |||
| 770 | .glightbox-clean .gslide-description { | ||
| 771 | background: Canvas !important; | ||
| 772 | } | ||
| 773 | |||
| 774 | .glightbox-clean .gslide-title, | ||
| 775 | .glightbox-clean .gslide-desc { | ||
| 776 | color: CanvasText !important; | ||
| 777 | } | ||
| 778 | |||
| 779 | .headline_document_card { | ||
| 780 | display: flex; | ||
| 781 | gap: 1rem; | ||
| 782 | align-items: flex-start; | ||
| 783 | border: 1px solid color-mix(in srgb, CanvasText, #808080 25%); | ||
| 784 | border-radius: 6px; | ||
| 785 | padding: 1rem; | ||
| 786 | text-decoration: none; | ||
| 787 | color: inherit; | ||
| 788 | } | ||
| 789 | |||
| 790 | .headline_document_card:hover { | ||
| 791 | border-color: CanvasText; | ||
| 792 | } | ||
| 793 | |||
| 794 | .headline_document_card_thumb { | ||
| 795 | max-width: 120px; | ||
| 796 | max-height: 160px; | ||
| 797 | border: 1px solid color-mix(in srgb, CanvasText, #808080 25%); | ||
| 798 | flex-shrink: 0; | ||
| 799 | } | ||
| 800 | |||
| 801 | .headline_document_card_info { | ||
| 802 | display: flex; | ||
| 803 | align-items: center; | ||
| 804 | gap: 0.5rem; | ||
| 805 | } | ||
| 806 | |||
| 807 | .headline_document_card_title { | ||
| 808 | font-weight: bold; | ||
| 809 | } | ||
| 810 | |||
| 811 | .related_documents { | ||
| 812 | margin-top: 1rem; | ||
| 813 | } | ||
| 814 | |||
| 815 | .related_documents_label { | ||
| 816 | font-style: italic; | ||
| 817 | font-family: Georgia; | ||
| 818 | font-size: 0.9rem; | ||
| 819 | color: color-mix(in srgb, CanvasText, #808080); | ||
| 820 | margin-bottom: 0.3rem; | ||
| 821 | } | ||
| 822 | |||
| 823 | .related_documents_list { | ||
| 824 | list-style: none; | ||
| 825 | padding: 0; | ||
| 826 | margin: 0; | ||
| 827 | } | ||
| 828 | |||
| 829 | .related_document_link { | ||
| 830 | display: inline-flex; | ||
| 831 | align-items: center; | ||
| 832 | gap: 0.4rem; | ||
| 833 | text-decoration: none; | ||
| 834 | } | ||
