diff options
Diffstat (limited to 'public/stylesheets/admin.css')
| -rw-r--r-- | public/stylesheets/admin.css | 80 |
1 files changed, 39 insertions, 41 deletions
diff --git a/public/stylesheets/admin.css b/public/stylesheets/admin.css index ef6cb11..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 | ||
| @@ -1124,25 +1141,6 @@ div#draft_list table td.actions a { | |||
| 1124 | font-size: 0.9em; | 1141 | font-size: 0.9em; |
| 1125 | } | 1142 | } |
| 1126 | 1143 | ||
| 1127 | #recent_changes_full_list { | ||
| 1128 | list-style: none; | ||
| 1129 | padding: 0; | ||
| 1130 | margin: 0; | ||
| 1131 | } | ||
| 1132 | |||
| 1133 | #recent_changes_full_list li { | ||
| 1134 | padding: 0.75rem 0; | ||
| 1135 | border-bottom: 1px solid #eee; | ||
| 1136 | } | ||
| 1137 | |||
| 1138 | #recent_changes_full_list li:last-child { | ||
| 1139 | border-bottom: none; | ||
| 1140 | } | ||
| 1141 | |||
| 1142 | #recent_changes_full_list li > div { | ||
| 1143 | margin-bottom: 0.25rem; | ||
| 1144 | } | ||
| 1145 | |||
| 1146 | /* ============================================================ | 1144 | /* ============================================================ |
| 1147 | Search widgets | 1145 | Search widgets |
| 1148 | ============================================================ */ | 1146 | ============================================================ */ |
