diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-07-24 18:04:56 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-07-24 18:04:56 +0200 |
| commit | 50ca5e40f461290a2db7452b95f80dd3188dba1d (patch) | |
| tree | 2d94b44463afa35ef6cab73b8aac70c38c4cc0bf /public | |
| parent | d5883869e97244335370d54e21ef46b3f1885899 (diff) | |
Rename layout classes to what they actually do
Diffstat (limited to 'public')
| -rw-r--r-- | public/javascripts/admin_interface.js | 8 | ||||
| -rw-r--r-- | public/stylesheets/admin.css | 70 |
2 files changed, 39 insertions, 39 deletions
diff --git a/public/javascripts/admin_interface.js b/public/javascripts/admin_interface.js index 7ff10ade..984eec05 100644 --- a/public/javascripts/admin_interface.js +++ b/public/javascripts/admin_interface.js | |||
| @@ -211,7 +211,7 @@ cccms = { | |||
| 211 | error: function(xhr) { | 211 | error: function(xhr) { |
| 212 | if (xhr.status === 423) { | 212 | if (xhr.status === 423) { |
| 213 | clearInterval(cccms.autosave_timer); | 213 | clearInterval(cccms.autosave_timer); |
| 214 | cccms.report_lock_lost($("#page_editor > form").attr("data-show-url")); | 214 | cccms.report_lock_lost($("#admin_layout > form").attr("data-show-url")); |
| 215 | } | 215 | } |
| 216 | // any other failure: quietly retried on the next tick | 216 | // any other failure: quietly retried on the next tick |
| 217 | } | 217 | } |
| @@ -221,7 +221,7 @@ cccms = { | |||
| 221 | }; | 221 | }; |
| 222 | 222 | ||
| 223 | cccms.autosave_timer = setInterval(function() { | 223 | cccms.autosave_timer = setInterval(function() { |
| 224 | $("#page_editor > form").submitWithAjax(); | 224 | $("#admin_layout > form").submitWithAjax(); |
| 225 | }, 7000); | 225 | }, 7000); |
| 226 | }, | 226 | }, |
| 227 | 227 | ||
| @@ -257,7 +257,7 @@ cccms = { | |||
| 257 | }); | 257 | }); |
| 258 | 258 | ||
| 259 | $force.on('click', function() { | 259 | $force.on('click', function() { |
| 260 | $("#page_editor > form").submitWithAjax({ force: true }); | 260 | $("#admin_layout > form").submitWithAjax({ force: true }); |
| 261 | }); | 261 | }); |
| 262 | }, | 262 | }, |
| 263 | 263 | ||
| @@ -309,7 +309,7 @@ cccms = { | |||
| 309 | cccms.inline_images.ensure_overlay(); | 309 | cccms.inline_images.ensure_overlay(); |
| 310 | cccms.inline_images.editor = editor; | 310 | cccms.inline_images.editor = editor; |
| 311 | 311 | ||
| 312 | var showUrl = $("#page_editor > form").attr("data-show-url") || ""; | 312 | var showUrl = $("#admin_layout > form").attr("data-show-url") || ""; |
| 313 | var match = showUrl.match(/(\d+)$/); | 313 | var match = showUrl.match(/(\d+)$/); |
| 314 | cccms.inline_images.node_id = match ? match[1] : ""; | 314 | cccms.inline_images.node_id = match ? match[1] : ""; |
| 315 | 315 | ||
diff --git a/public/stylesheets/admin.css b/public/stylesheets/admin.css index 23a9a581..2d2873ad 100644 --- a/public/stylesheets/admin.css +++ b/public/stylesheets/admin.css | |||
| @@ -672,7 +672,7 @@ table.user_table td.user_login { | |||
| 672 | ============================================================ */ | 672 | ============================================================ */ |
| 673 | 673 | ||
| 674 | @media(min-width:1016px) { | 674 | @media(min-width:1016px) { |
| 675 | div.node_description { | 675 | div.layout_row_label { |
| 676 | float: left; | 676 | float: left; |
| 677 | width: 110px; | 677 | width: 110px; |
| 678 | min-height: 2rem; | 678 | min-height: 2rem; |
| @@ -681,7 +681,7 @@ table.user_table td.user_login { | |||
| 681 | vertical-align: top; | 681 | vertical-align: top; |
| 682 | } | 682 | } |
| 683 | 683 | ||
| 684 | div.node_content { | 684 | div.layout_row_content { |
| 685 | margin-left: 120px; | 685 | margin-left: 120px; |
| 686 | min-height: 2rem; | 686 | min-height: 2rem; |
| 687 | display: block; | 687 | display: block; |
| @@ -693,26 +693,26 @@ table.user_table td.user_login { | |||
| 693 | } | 693 | } |
| 694 | } | 694 | } |
| 695 | @media(max-width:1015px) { | 695 | @media(max-width:1015px) { |
| 696 | div.node_description { | 696 | div.layout_row_label { |
| 697 | min-height: 2rem; | 697 | min-height: 2rem; |
| 698 | width: 30em; | 698 | width: 30em; |
| 699 | text-transform: lowercase; | 699 | text-transform: lowercase; |
| 700 | vertical-align: top; | 700 | vertical-align: top; |
| 701 | } | 701 | } |
| 702 | 702 | ||
| 703 | div.node_content { | 703 | div.layout_row_content { |
| 704 | min-height: 2rem; | 704 | min-height: 2rem; |
| 705 | margin-bottom: 1rem; | 705 | margin-bottom: 1rem; |
| 706 | } | 706 | } |
| 707 | } | 707 | } |
| 708 | 708 | ||
| 709 | .node_content.node_info_group { | 709 | .layout_row_content.info_group { |
| 710 | border: 1px solid #e8e8e8; | 710 | border: 1px solid #e8e8e8; |
| 711 | border-radius: 6px; | 711 | border-radius: 6px; |
| 712 | padding: 0.5rem 0.75rem; | 712 | padding: 0.5rem 0.75rem; |
| 713 | } | 713 | } |
| 714 | 714 | ||
| 715 | .node_info_group .disabled_action { | 715 | .info_group .disabled_action { |
| 716 | display: inline-block; | 716 | display: inline-block; |
| 717 | border: 1px solid #c0c0c0; | 717 | border: 1px solid #c0c0c0; |
| 718 | border-radius: 2px; | 718 | border-radius: 2px; |
| @@ -722,17 +722,17 @@ table.user_table td.user_login { | |||
| 722 | cursor: not-allowed; | 722 | cursor: not-allowed; |
| 723 | } | 723 | } |
| 724 | 724 | ||
| 725 | .node_info_group_items { | 725 | .info_group_items { |
| 726 | display: flex; | 726 | display: flex; |
| 727 | flex-wrap: wrap; | 727 | flex-wrap: wrap; |
| 728 | gap: 0.5rem 2rem; | 728 | gap: 0.5rem 2rem; |
| 729 | } | 729 | } |
| 730 | 730 | ||
| 731 | .node_info_item { | 731 | .info_item { |
| 732 | min-width: 140px; | 732 | min-width: 140px; |
| 733 | } | 733 | } |
| 734 | 734 | ||
| 735 | .node_info_label { | 735 | .info_label { |
| 736 | display: block; | 736 | display: block; |
| 737 | font-weight: normal; | 737 | font-weight: normal; |
| 738 | color: #969696; | 738 | color: #969696; |
| @@ -740,25 +740,25 @@ table.user_table td.user_login { | |||
| 740 | text-transform: lowercase; | 740 | text-transform: lowercase; |
| 741 | } | 741 | } |
| 742 | 742 | ||
| 743 | .node_info_group ul { | 743 | .info_group ul { |
| 744 | margin: 0; | 744 | margin: 0; |
| 745 | padding-left: 1.25rem; | 745 | padding-left: 1.25rem; |
| 746 | } | 746 | } |
| 747 | 747 | ||
| 748 | .node_info_group li { | 748 | .info_group li { |
| 749 | margin-bottom: 0.25rem; | 749 | margin-bottom: 0.25rem; |
| 750 | } | 750 | } |
| 751 | 751 | ||
| 752 | .node_content.node_status { | 752 | .layout_row_content.node_status { |
| 753 | border: 2px solid #000000; | 753 | border: 2px solid #000000; |
| 754 | background-color: #fafafa; | 754 | background-color: #fafafa; |
| 755 | } | 755 | } |
| 756 | 756 | ||
| 757 | .node_status .node_info_group_items:first-child { | 757 | .node_status .info_group_items:first-child { |
| 758 | margin-bottom: 0.75rem; | 758 | margin-bottom: 0.75rem; |
| 759 | } | 759 | } |
| 760 | 760 | ||
| 761 | .node_status .node_info_group_items + .node_info_group_items { | 761 | .node_status .info_group_items + .info_group_items { |
| 762 | margin-top: 0.5rem; | 762 | margin-top: 0.5rem; |
| 763 | margin-bottom: 0.5rem; | 763 | margin-bottom: 0.5rem; |
| 764 | } | 764 | } |
| @@ -768,8 +768,8 @@ table.user_table td.user_login { | |||
| 768 | display: block; | 768 | display: block; |
| 769 | } | 769 | } |
| 770 | 770 | ||
| 771 | .node_content .inline-image--full, | 771 | .layout_row_content .inline-image--full, |
| 772 | .node_content .inline-image--half { | 772 | .layout_row_content .inline-image--half { |
| 773 | max-width: 300px; | 773 | max-width: 300px; |
| 774 | width: auto; | 774 | width: auto; |
| 775 | float: none; | 775 | float: none; |
| @@ -905,7 +905,7 @@ form.button_to button[type="submit"] { | |||
| 905 | } | 905 | } |
| 906 | #main_fields { grid-area: main; } | 906 | #main_fields { grid-area: main; } |
| 907 | #metadata_details { grid-area: meta; } | 907 | #metadata_details { grid-area: meta; } |
| 908 | #page_editor #content { grid-area: body; } | 908 | #admin_layout #content { grid-area: body; } |
| 909 | 909 | ||
| 910 | /* Details is force-opened by JS on desktop; hide the summary only | 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. */ | 911 | once open, so a JS failure still leaves a working toggle. */ |
| @@ -930,12 +930,12 @@ input#move_to_search_term { | |||
| 930 | padding: 5px; | 930 | padding: 5px; |
| 931 | } | 931 | } |
| 932 | 932 | ||
| 933 | div#page_editor { | 933 | div#admin_layout { |
| 934 | margin-top: 0px; | 934 | margin-top: 0px; |
| 935 | margin-left: 10px; | 935 | margin-left: 10px; |
| 936 | } | 936 | } |
| 937 | 937 | ||
| 938 | #page_editor a.action_button, | 938 | #admin_layout a.action_button, |
| 939 | .action_button { | 939 | .action_button { |
| 940 | display: inline-flex; | 940 | display: inline-flex; |
| 941 | align-items: center; | 941 | align-items: center; |
| @@ -954,15 +954,15 @@ div#page_editor { | |||
| 954 | font: inherit; | 954 | font: inherit; |
| 955 | } | 955 | } |
| 956 | 956 | ||
| 957 | #page_editor a.action_button:hover, | 957 | #admin_layout a.action_button:hover, |
| 958 | .action_button:hover { | 958 | .action_button:hover { |
| 959 | color: #ffffff; | 959 | color: #ffffff; |
| 960 | background-color: #000000; | 960 | background-color: #000000; |
| 961 | } | 961 | } |
| 962 | 962 | ||
| 963 | #page_editor input[type=text], | 963 | #admin_layout input[type=text], |
| 964 | #page_editor input[type=password], | 964 | #admin_layout input[type=password], |
| 965 | #page_editor textarea { | 965 | #admin_layout textarea { |
| 966 | padding: 5px; | 966 | padding: 5px; |
| 967 | } | 967 | } |
| 968 | 968 | ||
| @@ -996,7 +996,7 @@ input#tag_list { | |||
| 996 | padding: 5px; | 996 | padding: 5px; |
| 997 | } | 997 | } |
| 998 | 998 | ||
| 999 | #page_editor textarea#page_body { | 999 | #admin_layout textarea#page_body { |
| 1000 | width: 100%; | 1000 | width: 100%; |
| 1001 | box-sizing: border-box; | 1001 | box-sizing: border-box; |
| 1002 | height: 600px; | 1002 | height: 600px; |
| @@ -1006,9 +1006,9 @@ input#tag_list { | |||
| 1006 | margin-left: -125px; | 1006 | margin-left: -125px; |
| 1007 | } | 1007 | } |
| 1008 | 1008 | ||
| 1009 | #page_editor input[type=text], | 1009 | #admin_layout input[type=text], |
| 1010 | #page_editor input[type=password], | 1010 | #admin_layout input[type=password], |
| 1011 | #page_editor textarea { | 1011 | #admin_layout textarea { |
| 1012 | width: 100%; | 1012 | width: 100%; |
| 1013 | box-sizing: border-box; | 1013 | box-sizing: border-box; |
| 1014 | } | 1014 | } |
| @@ -1022,19 +1022,19 @@ input#tag_list { | |||
| 1022 | width: 100%; | 1022 | width: 100%; |
| 1023 | } | 1023 | } |
| 1024 | 1024 | ||
| 1025 | #page_editor #content, | 1025 | #admin_layout #content, |
| 1026 | #page_editor #metadata, | 1026 | #admin_layout #metadata, |
| 1027 | #page_editor #main_fields { | 1027 | #admin_layout #main_fields { |
| 1028 | padding-right: 5px; | 1028 | padding-right: 5px; |
| 1029 | } | 1029 | } |
| 1030 | 1030 | ||
| 1031 | #page_editor textarea#page_body { | 1031 | #admin_layout textarea#page_body { |
| 1032 | box-sizing: border-box; | 1032 | box-sizing: border-box; |
| 1033 | width: 100%; | 1033 | width: 100%; |
| 1034 | height: 50rem; | 1034 | height: 50rem; |
| 1035 | } | 1035 | } |
| 1036 | 1036 | ||
| 1037 | #page_editor textarea#page_abstract { | 1037 | #admin_layout textarea#page_abstract { |
| 1038 | box-sizing: border-box; | 1038 | box-sizing: border-box; |
| 1039 | height: 8rem; | 1039 | height: 8rem; |
| 1040 | width: 100%; | 1040 | width: 100%; |
| @@ -1050,9 +1050,9 @@ input#tag_list { | |||
| 1050 | font-weight: bold; | 1050 | font-weight: bold; |
| 1051 | } | 1051 | } |
| 1052 | 1052 | ||
| 1053 | #page_editor input[type=text], | 1053 | #admin_layout input[type=text], |
| 1054 | #page_editor input[type=password], | 1054 | #admin_layout input[type=password], |
| 1055 | #page_editor textarea { | 1055 | #admin_layout textarea { |
| 1056 | box-sizing: border-box; | 1056 | box-sizing: border-box; |
| 1057 | width: 100%; | 1057 | width: 100%; |
| 1058 | } | 1058 | } |
