diff options
Diffstat (limited to 'public/stylesheets/admin.css')
| -rw-r--r-- | public/stylesheets/admin.css | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/public/stylesheets/admin.css b/public/stylesheets/admin.css index 5f7723b..b5b8707 100644 --- a/public/stylesheets/admin.css +++ b/public/stylesheets/admin.css | |||
| @@ -764,6 +764,15 @@ table.user_table td.user_login { | |||
| 764 | display: block; | 764 | display: block; |
| 765 | } | 765 | } |
| 766 | 766 | ||
| 767 | .node_content .inline-image--full, | ||
| 768 | .node_content .inline-image--half { | ||
| 769 | max-width: 300px; | ||
| 770 | width: auto; | ||
| 771 | float: none; | ||
| 772 | display: block; | ||
| 773 | margin: 0.5rem 0; | ||
| 774 | } | ||
| 775 | |||
| 767 | .action_button, | 776 | .action_button, |
| 768 | form.button_to input[type="submit"], | 777 | form.button_to input[type="submit"], |
| 769 | form.button_to button[type="submit"] { | 778 | form.button_to button[type="submit"] { |
| @@ -1292,6 +1301,15 @@ div#image_browser ul li { | |||
| 1292 | height: 1rem; | 1301 | height: 1rem; |
| 1293 | } | 1302 | } |
| 1294 | 1303 | ||
| 1304 | .related_asset_headline_badge { | ||
| 1305 | background: #fff3cd; | ||
| 1306 | color: #6b5900; | ||
| 1307 | border-radius: 999px; | ||
| 1308 | padding: 0.1rem 0.6rem; | ||
| 1309 | font-size: 0.75em; | ||
| 1310 | white-space: nowrap; | ||
| 1311 | } | ||
| 1312 | |||
| 1295 | .related_asset_remove { | 1313 | .related_asset_remove { |
| 1296 | display: flex; | 1314 | display: flex; |
| 1297 | align-items: center; | 1315 | align-items: center; |
| @@ -1392,3 +1410,68 @@ div#image_browser ul li { | |||
| 1392 | border-color: #a9c6e8; | 1410 | border-color: #a9c6e8; |
| 1393 | color: #1a4d8f; | 1411 | color: #1a4d8f; |
| 1394 | } | 1412 | } |
| 1413 | |||
| 1414 | /* ============================================================ | ||
| 1415 | Image picker | ||
| 1416 | ============================================================ */ | ||
| 1417 | |||
| 1418 | #inline_image_picker { | ||
| 1419 | position: fixed; | ||
| 1420 | top: 10%; | ||
| 1421 | left: 50%; | ||
| 1422 | transform: translateX(-50%); | ||
| 1423 | background: #fff; | ||
| 1424 | border: 1px solid #ddd; | ||
| 1425 | border-radius: 8px; | ||
| 1426 | padding: 1rem; | ||
| 1427 | max-width: 480px; | ||
| 1428 | max-height: 70vh; | ||
| 1429 | overflow-y: auto; | ||
| 1430 | z-index: 1000; | ||
| 1431 | box-shadow: 0 4px 16px rgba(0,0,0,0.2); | ||
| 1432 | } | ||
| 1433 | |||
| 1434 | #inline_image_picker_grid { | ||
| 1435 | display: flex; | ||
| 1436 | flex-wrap: wrap; | ||
| 1437 | gap: 8px; | ||
| 1438 | margin-bottom: 1rem; | ||
| 1439 | } | ||
| 1440 | |||
| 1441 | .inline_image_picker_item { | ||
| 1442 | position: relative; | ||
| 1443 | } | ||
| 1444 | |||
| 1445 | #inline_image_picker_grid img { | ||
| 1446 | width: 80px; | ||
| 1447 | height: 80px; | ||
| 1448 | object-fit: cover; | ||
| 1449 | border-radius: 4px; | ||
| 1450 | cursor: pointer; | ||
| 1451 | border: 2px solid transparent; | ||
| 1452 | display: block; | ||
| 1453 | } | ||
| 1454 | |||
| 1455 | .inline_image_picker_headline_badge { | ||
| 1456 | position: absolute; | ||
| 1457 | bottom: 2px; | ||
| 1458 | left: 2px; | ||
| 1459 | right: 2px; | ||
| 1460 | background: rgba(255, 243, 205, 0.95); | ||
| 1461 | color: #6b5900; | ||
| 1462 | font-size: 0.65em; | ||
| 1463 | text-align: center; | ||
| 1464 | border-radius: 3px; | ||
| 1465 | padding: 1px 0; | ||
| 1466 | pointer-events: none; | ||
| 1467 | } | ||
| 1468 | |||
| 1469 | #inline_image_picker_grid img.selected { | ||
| 1470 | border-color: #1a4d8f; | ||
| 1471 | } | ||
| 1472 | |||
| 1473 | #inline_image_picker_actions { | ||
| 1474 | display: flex; | ||
| 1475 | gap: 8px; | ||
| 1476 | flex-wrap: wrap; | ||
| 1477 | } | ||
