summaryrefslogtreecommitdiff
path: root/public/stylesheets
diff options
context:
space:
mode:
Diffstat (limited to 'public/stylesheets')
-rw-r--r--public/stylesheets/admin.css200
-rw-r--r--public/stylesheets/ccc.css38
2 files changed, 237 insertions, 1 deletions
diff --git a/public/stylesheets/admin.css b/public/stylesheets/admin.css
index 5f7723b..0e11747 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 {
@@ -764,6 +767,15 @@ table.user_table td.user_login {
764 display: block; 767 display: block;
765} 768}
766 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
767.action_button, 779.action_button,
768form.button_to input[type="submit"], 780form.button_to input[type="submit"],
769form.button_to button[type="submit"] { 781form.button_to button[type="submit"] {
@@ -872,6 +884,10 @@ form.button_to button[type="submit"] {
872 margin-top: -5px; 884 margin-top: -5px;
873} 885}
874 886
887.aligned_action_row .action_button.action_button_no_margin_top {
888 margin-top: 0;
889}
890
875/* ============================================================ 891/* ============================================================
876 Page editor / metadata forms 892 Page editor / metadata forms
877 ============================================================ */ 893 ============================================================ */
@@ -1112,6 +1128,25 @@ div#draft_list table td.actions a {
1112 font-size: 0.9em; 1128 font-size: 0.9em;
1113} 1129}
1114 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
1115/* ============================================================ 1150/* ============================================================
1116 Search widgets 1151 Search widgets
1117 ============================================================ */ 1152 ============================================================ */
@@ -1292,6 +1327,15 @@ div#image_browser ul li {
1292 height: 1rem; 1327 height: 1rem;
1293} 1328}
1294 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
1295.related_asset_remove { 1339.related_asset_remove {
1296 display: flex; 1340 display: flex;
1297 align-items: center; 1341 align-items: center;
@@ -1392,3 +1436,157 @@ div#image_browser ul li {
1392 border-color: #a9c6e8; 1436 border-color: #a9c6e8;
1393 color: #1a4d8f; 1437 color: #1a4d8f;
1394} 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#node_action_list td.node_action_time {
1514 white-space: nowrap;
1515 vertical-align: top;
1516 font-size: 0.8em;
1517 color: #777;
1518 padding-right: 1em;
1519}
1520
1521#node_action_list .node_action_date {
1522 display: block;
1523}
1524
1525#node_action_list .node_action_clock {
1526 float: right;
1527 margin-top: 0.2rem;
1528}
1529
1530#node_action_list td.node_action_body {
1531 vertical-align: top;
1532}
1533
1534.node_action_inferred {
1535 opacity: 0.5;
1536 font-size: smaller;
1537 margin-left: 0.5em;
1538}
1539
1540.node_action_zoom {
1541 font-size: smaller;
1542 margin-left: 0.5em;
1543}
1544
1545.node_action_details summary {
1546 margin-top: 0.2rem;
1547 cursor: pointer;
1548 font-size: smaller;
1549 color: #777;
1550}
1551
1552.node_action_icon {
1553 color: #777;
1554 margin-right: 0.35em;
1555 vertical-align: text-top;
1556}
1557
1558.revision_lifecycle {
1559 font-size: 0.85rem;
1560 color: #777;
1561}
1562
1563/* ============================================================
1564 Trash section
1565 ============================================================ */
1566
1567.restore_form {
1568 display: flex;
1569 align-items: center;
1570 gap: 8px;
1571}
1572
1573.restore_picker {
1574 position: relative;
1575}
1576
1577.restore_picker input[type=text] {
1578 width: 22em;
1579}
1580
1581.restore_picker .search_results {
1582 position: absolute;
1583 top: 100%;
1584 left: 0;
1585 right: 0;
1586 z-index: 10;
1587 background: #fff;
1588 border: 1px solid #989898;
1589 border-top: none;
1590 max-height: 20em;
1591 overflow-y: auto;
1592}
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}