summaryrefslogtreecommitdiff
path: root/public/stylesheets
diff options
context:
space:
mode:
Diffstat (limited to 'public/stylesheets')
-rw-r--r--public/stylesheets/admin.css263
-rw-r--r--public/stylesheets/ccc.css38
2 files changed, 300 insertions, 1 deletions
diff --git a/public/stylesheets/admin.css b/public/stylesheets/admin.css
index 93cc3f5..05e47e7 100644
--- a/public/stylesheets/admin.css
+++ b/public/stylesheets/admin.css
@@ -37,10 +37,13 @@ td {
37 depend on this rule for vertical padding. table.node_table td resets 37 depend on this rule for vertical padding. table.node_table td resets
38 padding-top/bottom to 0 explicitly and does not depend on it. */ 38 padding-top/bottom to 0 explicitly and does not depend on it. */
39 39
40input[type=text], textarea { 40input[type=text],
41input[type=password],
42textarea {
41 font-size: 1rem; 43 font-size: 1rem;
42 font-family: Helvetica; 44 font-family: Helvetica;
43 border: 1px solid #989898; 45 border: 1px solid #989898;
46 border-radius: 2px;
44} 47}
45 48
46select { 49select {
@@ -683,6 +686,10 @@ table.user_table td.user_login {
683 display: block; 686 display: block;
684 margin-bottom: 1rem; 687 margin-bottom: 1rem;
685 } 688 }
689
690 .body_toolbar_row {
691 margin-left: 120px;
692 }
686} 693}
687@media(max-width:1015px) { 694@media(max-width:1015px) {
688 div.node_description { 695 div.node_description {
@@ -760,6 +767,15 @@ table.user_table td.user_login {
760 display: block; 767 display: block;
761} 768}
762 769
770.node_content .inline-image--full,
771.node_content .inline-image--half {
772 max-width: 300px;
773 width: auto;
774 float: none;
775 display: block;
776 margin: 0.5rem 0;
777}
778
763.action_button, 779.action_button,
764form.button_to input[type="submit"], 780form.button_to input[type="submit"],
765form.button_to button[type="submit"] { 781form.button_to button[type="submit"] {
@@ -868,6 +884,10 @@ form.button_to button[type="submit"] {
868 margin-top: -5px; 884 margin-top: -5px;
869} 885}
870 886
887.aligned_action_row .action_button.action_button_no_margin_top {
888 margin-top: 0;
889}
890
871/* ============================================================ 891/* ============================================================
872 Page editor / metadata forms 892 Page editor / metadata forms
873 ============================================================ */ 893 ============================================================ */
@@ -1108,6 +1128,25 @@ div#draft_list table td.actions a {
1108 font-size: 0.9em; 1128 font-size: 0.9em;
1109} 1129}
1110 1130
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
1111/* ============================================================ 1150/* ============================================================
1112 Search widgets 1151 Search widgets
1113 ============================================================ */ 1152 ============================================================ */
@@ -1288,6 +1327,15 @@ div#image_browser ul li {
1288 height: 1rem; 1327 height: 1rem;
1289} 1328}
1290 1329
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
1291.related_asset_remove { 1339.related_asset_remove {
1292 display: flex; 1340 display: flex;
1293 align-items: center; 1341 align-items: center;
@@ -1324,3 +1372,216 @@ div#image_browser ul li {
1324 border-radius: 4px; 1372 border-radius: 4px;
1325} 1373}
1326 1374
1375/* ============================================================
1376 Live edit preview
1377 ============================================================ */
1378
1379#editor_and_preview {
1380 display: flex;
1381 flex-direction: column;
1382 gap: 1.5rem;
1383}
1384
1385@media (min-width: 1016px) {
1386 #editor_and_preview {
1387 flex-direction: row;
1388 align-items: flex-start;
1389 }
1390
1391 #editor_and_preview .preview_content {
1392 flex: 1;
1393 min-width: 0;
1394 }
1395
1396 #preview_panel {
1397 flex: 1;
1398 min-width: 0;
1399 }
1400}
1401
1402#preview_panel iframe {
1403 width: 100%;
1404 height: 612px;
1405 border: 0.5px solid var(--border);
1406 border-radius: var(--radius);
1407}
1408
1409.body_toolbar_row {
1410 min-height: 2rem;
1411 margin-bottom: 1rem;
1412 display: flex;
1413 gap: 8px;
1414}
1415
1416.view_toggle {
1417 background: #f7f7f7;
1418 border: 1px solid #ddd;
1419 border-radius: 4px;
1420 padding: 4px 8px;
1421 cursor: pointer;
1422 color: #555;
1423 display: flex;
1424 align-items: center;
1425 gap: 1em;
1426}
1427
1428.view_toggle:hover {
1429 background: #ececec;
1430 border-color: #ccc;
1431 color: #222;
1432}
1433
1434.view_toggle[aria-pressed="true"] {
1435 background: #dde8f5;
1436 border-color: #a9c6e8;
1437 color: #1a4d8f;
1438}
1439
1440/* ============================================================
1441 Image picker
1442 ============================================================ */
1443
1444#inline_image_picker {
1445 position: fixed;
1446 top: 10%;
1447 left: 50%;
1448 transform: translateX(-50%);
1449 background: #fff;
1450 border: 1px solid #ddd;
1451 border-radius: 8px;
1452 padding: 1rem;
1453 max-width: 480px;
1454 max-height: 70vh;
1455 overflow-y: auto;
1456 z-index: 1000;
1457 box-shadow: 0 4px 16px rgba(0,0,0,0.2);
1458}
1459
1460#inline_image_picker_grid {
1461 display: flex;
1462 flex-wrap: wrap;
1463 gap: 8px;
1464 margin-bottom: 1rem;
1465}
1466
1467.inline_image_picker_item {
1468 position: relative;
1469}
1470
1471#inline_image_picker_grid img {
1472 width: 80px;
1473 height: 80px;
1474 object-fit: cover;
1475 border-radius: 4px;
1476 cursor: pointer;
1477 border: 2px solid transparent;
1478 display: block;
1479}
1480
1481.inline_image_picker_headline_badge {
1482 position: absolute;
1483 bottom: 2px;
1484 left: 2px;
1485 right: 2px;
1486 background: rgba(255, 243, 205, 0.95);
1487 color: #6b5900;
1488 font-size: 0.65em;
1489 text-align: center;
1490 border-radius: 3px;
1491 padding: 1px 0;
1492 pointer-events: none;
1493}
1494
1495#inline_image_picker_grid img.selected {
1496 border-color: #1a4d8f;
1497}
1498
1499#inline_image_picker_actions {
1500 display: flex;
1501 gap: 8px;
1502 flex-wrap: wrap;
1503}
1504
1505/* ============================================================
1506 Action log
1507 ============================================================ */
1508
1509#node_action_list td.node_action_body {
1510 border-bottom: 1px solid #f1f1f1;
1511}
1512
1513.dashboard_widget .node_action_time span {
1514 display: block;
1515}
1516
1517#node_action_list td.node_action_time {
1518 white-space: nowrap;
1519 vertical-align: top;
1520 font-family: monospace;
1521 font-size: 0.8em;
1522 color: #777;
1523 padding-right: 1em;
1524}
1525
1526#node_action_list td.node_action_body {
1527 vertical-align: top;
1528}
1529
1530.node_action_inferred {
1531 opacity: 0.5;
1532 font-size: smaller;
1533 margin-left: 0.5em;
1534}
1535
1536.node_action_zoom {
1537 font-size: smaller;
1538 margin-left: 0.5em;
1539}
1540
1541.node_action_details summary {
1542 cursor: pointer;
1543 font-size: smaller;
1544 color: #777;
1545}
1546
1547.node_action_icon {
1548 color: #777;
1549 margin-right: 0.35em;
1550 vertical-align: text-bottom;
1551}
1552
1553.revision_lifecycle {
1554 font-size: 0.85rem;
1555 color: #777;
1556}
1557
1558/* ============================================================
1559 Trash section
1560 ============================================================ */
1561
1562.restore_form {
1563 display: flex;
1564 align-items: center;
1565 gap: 8px;
1566}
1567
1568.restore_picker {
1569 position: relative;
1570}
1571
1572.restore_picker input[type=text] {
1573 width: 22em;
1574}
1575
1576.restore_picker .search_results {
1577 position: absolute;
1578 top: 100%;
1579 left: 0;
1580 right: 0;
1581 z-index: 10;
1582 background: #fff;
1583 border: 1px solid #989898;
1584 border-top: none;
1585 max-height: 20em;
1586 overflow-y: auto;
1587}
diff --git a/public/stylesheets/ccc.css b/public/stylesheets/ccc.css
index fe2144f..cbeea17 100644
--- a/public/stylesheets/ccc.css
+++ b/public/stylesheets/ccc.css
@@ -610,3 +610,41 @@ label[for=light-mode] {
610 } 610 }
611} 611}
612 612
613.chapter_partial_layout {
614 display: flex;
615 gap: 12px;
616 align-items: flex-start;
617}
618
619.chapter_thumbnail img {
620 width: 64px;
621 height: 64px;
622 object-fit: cover;
623 border-radius: 4px;
624 display: block;
625}
626
627.chapter_partial_content {
628 min-width: 0;
629}
630
631
632.inline-image--full {
633 width: 100%;
634 margin: 1rem 0;
635}
636
637.inline-image--half {
638 width: 48%;
639 margin-bottom: 1rem;
640}
641
642.inline-image--left {
643 float: left;
644 margin-right: 1rem;
645}
646
647.inline-image--right {
648 float: right;
649 margin-left: 1rem;
650}