summaryrefslogtreecommitdiff
path: root/public/stylesheets
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-08-06 03:30:47 +0200
committererdgeist <erdgeist@erdgeist.org>2026-08-06 03:30:47 +0200
commit0d91c5a4aa47fa34e0dfe6742b94aa23d59544bc (patch)
treebefd0b3ea24ab610e939c3af27e238e4102131da /public/stylesheets
parent6290c20464ad5c622e902b4dd0de217c374b5905 (diff)
Make the events and assets lists work on a phone
Diffstat (limited to 'public/stylesheets')
-rw-r--r--public/stylesheets/admin.css77
1 files changed, 73 insertions, 4 deletions
diff --git a/public/stylesheets/admin.css b/public/stylesheets/admin.css
index bd0c8412..acb87aba 100644
--- a/public/stylesheets/admin.css
+++ b/public/stylesheets/admin.css
@@ -811,7 +811,8 @@ table.revisions_table tr:hover {
811} 811}
812 812
813.user_table td.actions, 813.user_table td.actions,
814.node_table td.actions { 814.node_table td.actions,
815.assets_table td.actions {
815 width: 1px; 816 width: 1px;
816 white-space: nowrap; 817 white-space: nowrap;
817 padding-right: 0; 818 padding-right: 0;
@@ -822,24 +823,29 @@ table.revisions_table tr:hover {
822 padding-right: 0.75rem; 823 padding-right: 0.75rem;
823} 824}
824 825
826.assets_table .asset_name,
825.events_table .event_title { 827.events_table .event_title {
826 font-weight: bold; 828 font-weight: bold;
827} 829}
828 830
831.assets_table .asset_meta,
829.events_table .event_meta { 832.events_table .event_meta {
830 display: flex; 833 display: flex;
831 align-items: center; 834 align-items: center;
832 gap: 0.3rem; 835 gap: 0.3rem;
833 margin-top: 0.15rem; 836 margin-top: 0.35rem;
834 font-size: 0.875rem; 837 font-size: 0.875rem;
838 color: var(--text-muted);
835} 839}
836 840
841.assets_table .asset_meta svg,
837.events_table .event_meta svg { 842.events_table .event_meta svg {
838 width: 0.875rem; 843 width: 0.875rem;
839 height: 0.875rem; 844 height: 0.875rem;
840 flex-shrink: 0; 845 flex-shrink: 0;
841} 846}
842 847
848.assets_table .asset_meta a,
843.events_table .event_meta a { 849.events_table .event_meta a {
844 overflow-wrap: anywhere; 850 overflow-wrap: anywhere;
845 color: var(--text-muted); 851 color: var(--text-muted);
@@ -861,6 +867,69 @@ table.revisions_table tr:hover {
861 padding-right: 0; 867 padding-right: 0;
862} 868}
863 869
870.assets_table .asset_thumb img {
871 display: block;
872 max-width: 120px;
873 max-height: 120px;
874}
875
876.assets_table td.asset_thumb {
877 padding-right: 0.75rem;
878}
879
880@media (max-width: 34rem) {
881 .events_table,
882 .events_table tbody,
883 .assets_table,
884 .assets_table tbody {
885 display: block;
886 }
887
888 .events_table tr.header,
889 .assets_table tr.header {
890 display: none;
891 }
892
893 .events_table td,
894 .assets_table td {
895 display: contents;
896 }
897
898 .assets_table tr {
899 display: grid;
900 grid-template-columns: auto 1fr;
901 grid-template-areas:
902 "thumb actions"
903 "thumb type"
904 "name name"
905 "file file";
906 align-items: start;
907 column-gap: 0.75rem;
908 padding: 0.5rem 0;
909 }
910
911 .events_table tr {
912 display: grid;
913 grid-template-columns: 1fr auto;
914 grid-template-areas:
915 "title actions"
916 "when when";
917 align-items: start;
918 column-gap: 0.75rem;
919 padding: 0.5rem 0;
920 }
921
922 .events_table .title_with_flags { grid-area: title; }
923 .assets_table .asset_thumb_link { grid-area: thumb; }
924 .assets_table .asset_type { grid-area: type; align-self: end; }
925 .events_table .when_body { grid-area: when; margin-top: 0.4rem; padding-left: 2rem; }
926 .assets_table .asset_name { grid-area: name; margin-top: 0.4rem; }
927 .assets_table .asset_file { grid-area: file; }
928
929 .events_table .action_grid,
930 .assets_table .action_grid { grid-area: actions; }
931}
932
864.action_grid { 933.action_grid {
865 display: grid; 934 display: grid;
866 gap: 0.4rem; 935 gap: 0.4rem;
@@ -870,6 +939,7 @@ table.revisions_table tr:hover {
870.user_table .action_grid { grid-template-columns: repeat(3, auto); } 939.user_table .action_grid { grid-template-columns: repeat(3, auto); }
871.node_table .action_grid { grid-template-columns: repeat(2, auto); } 940.node_table .action_grid { grid-template-columns: repeat(2, auto); }
872.events_table .action_grid { grid-template-columns: repeat(2, auto); } 941.events_table .action_grid { grid-template-columns: repeat(2, auto); }
942.assets_table .action_grid { grid-template-columns: repeat(3, auto); }
873 943
874/* min-height keeps a row the same height whether or not the viewer may see 944/* min-height keeps a row the same height whether or not the viewer may see
875 the lower controls. */ 945 the lower controls. */
@@ -1566,9 +1636,8 @@ input#menu_item_title {
1566 margin-bottom: 1rem; 1636 margin-bottom: 1rem;
1567} 1637}
1568 1638
1569/* Pushes the actions to the right of the heading. */
1570.page_actions h1 { 1639.page_actions h1 {
1571 margin: 0 auto 0 0; 1640 margin: 0 0.75rem 0 0;
1572} 1641}
1573 1642
1574.page_action_group { 1643.page_action_group {