summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
Diffstat (limited to 'public')
-rw-r--r--public/javascripts/admin_interface.js8
-rw-r--r--public/stylesheets/admin.css53
2 files changed, 15 insertions, 46 deletions
diff --git a/public/javascripts/admin_interface.js b/public/javascripts/admin_interface.js
index 67bfb8fc..cbfa4dc6 100644
--- a/public/javascripts/admin_interface.js
+++ b/public/javascripts/admin_interface.js
@@ -220,7 +220,7 @@ cccms = {
220 error: function(xhr) { 220 error: function(xhr) {
221 if (xhr.status === 423) { 221 if (xhr.status === 423) {
222 clearInterval(cccms.autosave_timer); 222 clearInterval(cccms.autosave_timer);
223 cccms.report_lock_lost($("#admin_layout > form").attr("data-show-url")); 223 cccms.report_lock_lost($(".admin_layout > form").attr("data-show-url"));
224 } 224 }
225 // any other failure: quietly retried on the next tick 225 // any other failure: quietly retried on the next tick
226 } 226 }
@@ -230,7 +230,7 @@ cccms = {
230 }; 230 };
231 231
232 cccms.autosave_timer = setInterval(function() { 232 cccms.autosave_timer = setInterval(function() {
233 $("#admin_layout > form").submitWithAjax(); 233 $(".admin_layout > form").submitWithAjax();
234 }, 7000); 234 }, 7000);
235 }, 235 },
236 236
@@ -264,7 +264,7 @@ cccms = {
264 }); 264 });
265 265
266 $force.on('click', function() { 266 $force.on('click', function() {
267 $("#admin_layout > form").submitWithAjax({ force: true }); 267 $(".admin_layout > form").submitWithAjax({ force: true });
268 }); 268 });
269 }, 269 },
270 270
@@ -316,7 +316,7 @@ cccms = {
316 cccms.inline_images.ensure_overlay(); 316 cccms.inline_images.ensure_overlay();
317 cccms.inline_images.editor = editor; 317 cccms.inline_images.editor = editor;
318 318
319 var showUrl = $("#admin_layout > form").attr("data-show-url") || ""; 319 var showUrl = $(".admin_layout > form").attr("data-show-url") || "";
320 var match = showUrl.match(/(\d+)$/); 320 var match = showUrl.match(/(\d+)$/);
321 cccms.inline_images.node_id = match ? match[1] : ""; 321 cccms.inline_images.node_id = match ? match[1] : "";
322 322
diff --git a/public/stylesheets/admin.css b/public/stylesheets/admin.css
index 1d504464..dbeb3dd1 100644
--- a/public/stylesheets/admin.css
+++ b/public/stylesheets/admin.css
@@ -1454,17 +1454,10 @@ form.button_to svg {
1454 #metadata_details[open] > summary { display: none; } 1454 #metadata_details[open] > summary { display: none; }
1455} 1455}
1456 1456
1457input[type=text]#tag_list, 1457.admin_layout {
1458input[type=text]#page_slug,
1459input#move_to_search_term {
1460 padding: 5px;
1461}
1462
1463div#admin_layout {
1464 margin-top: 0; 1458 margin-top: 0;
1465} 1459}
1466 1460
1467#admin_layout a.action_button,
1468.action_button { 1461.action_button {
1469 display: inline-flex; 1462 display: inline-flex;
1470 align-items: center; 1463 align-items: center;
@@ -1482,15 +1475,16 @@ div#admin_layout {
1482 font-size: inherit; 1475 font-size: inherit;
1483} 1476}
1484 1477
1485#admin_layout a.action_button:hover,
1486.action_button:hover { 1478.action_button:hover {
1487 color: var(--surface); 1479 color: var(--surface);
1488 background-color: var(--text); 1480 background-color: var(--text);
1489} 1481}
1490 1482
1491#admin_layout input[type=text], 1483.admin_layout input[type=text],
1492#admin_layout input[type=password], 1484.admin_layout input[type=password],
1493#admin_layout textarea { 1485.admin_layout textarea {
1486 box-sizing: border-box;
1487 width: 100%;
1494 padding: 5px; 1488 padding: 5px;
1495} 1489}
1496 1490
@@ -1498,50 +1492,25 @@ input#tag_list {
1498 text-transform: lowercase; 1492 text-transform: lowercase;
1499} 1493}
1500 1494
1501#admin_layout input[type=text], 1495.admin_layout input[type=text]#page_title {
1502#admin_layout input[type=password],
1503#admin_layout textarea {
1504 box-sizing: border-box;
1505 width: 100%;
1506}
1507
1508input[type=text]#page_title {
1509 box-sizing: border-box;
1510 width: 100%;
1511 padding: 6px 5px 4px; 1496 padding: 6px 5px 4px;
1512 font-weight: bold; 1497 font-weight: bold;
1513} 1498}
1514 1499
1515#admin_layout textarea#page_abstract { 1500.admin_layout textarea#page_abstract {
1516 width: 100%;
1517 box-sizing: border-box;
1518 height: 8rem; 1501 height: 8rem;
1519} 1502}
1520 1503
1521#admin_layout textarea#page_body { 1504.admin_layout textarea#page_body {
1522 box-sizing: border-box;
1523 width: 100%;
1524 height: 60vh; 1505 height: 60vh;
1525} 1506}
1526 1507
1527input#tag_list, 1508.admin_layout .menu_field {
1528input#page_slug,
1529input#move_to_search_term {
1530 box-sizing: border-box;
1531 width: 100%;
1532}
1533
1534input#menu_search_term,
1535input#menu_item_node_id,
1536input#menu_item_path,
1537input#menu_item_title {
1538 width: 100%;
1539 max-width: 44rem; 1509 max-width: 44rem;
1540} 1510}
1541 1511
1542@media(min-width:1016px) { 1512@media(min-width:1016px) {
1543 #admin_layout textarea#page_abstract { 1513 .admin_layout textarea#page_abstract {
1544 padding: 5px;
1545 height: 250px; 1514 height: 250px;
1546 } 1515 }
1547} 1516}