Frontend created and rewritten a few times, with some backend fixes #1

Merged
leo merged 110 commits from plaintable into main 2023-11-08 20:38:40 +00:00
Showing only changes of commit cc74912bb9 - Show all commits

View File

@ -2,11 +2,10 @@
:root { :root {
--primary-color: #000; --primary-color: #000;
--primary-background: #eef; --primary-background: #ddd;
--header-background: #000; --header-background: #246;
--header-color: #ccc; --header-color: #ccc;
--primary-color: #000; --primary-color: #000;
--secondary-color: #333;
--accent-color: #f80; --accent-color: #f80;
--transition-time: 0.2s; --transition-time: 0.2s;
} }
@ -14,11 +13,11 @@
:root { :root {
--primary-color: #ddd; --primary-color: #ddd;
--primary-background: #003; --primary-background: #003;
--primary-color: #fff; --header-background: #000;
--secondary-color: #ccc; --header-color: #ccc;
} }
} }
@media screen and (orientation: portrait) { @media screen and (orientation: portrait) and (max-width: 600px) {
.size, .size,
.modified { .modified {
display: none; display: none;
@ -40,6 +39,49 @@
font-size: 2rem; font-size: 2rem;
} }
} }
@media print {
:root {
--primary-color: black;
--primary-background: transparent;
--header-background: transparent;
--header-color: black;
}
nav, .menu {
display: none;
}
.breadcrumb > a {
color: black !important;
background: none !important;
padding: 0 !important;
margin: 0 !important;
clip-path: none !important;
max-width: none !important;
}
.breadcrumb > a::after { content: '/'; }
.breadcrumb svg { fill: black !important; }
main {
height: auto !important;
padding-bottom: 0 !important;
}
thead tr {
position: static !important;
background: none !important;
border-bottom: 1pt solid black !important;
}
.selection {
min-width: 0 !important;
padding: 0 !important;
}
.selection input { display: none }
.selection input:checked { display: inherit }
}
/* Hide scrollbar for all browsers */
main::-webkit-scrollbar { display: none; }
main {
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
}
body { body {
background-color: var(--primary-background); background-color: var(--primary-background);
font-size: 1rem; font-size: 1rem;
@ -86,8 +128,8 @@ table {
flex-direction: column; flex-direction: column;
} }
main { main {
height: calc(100svh - 9rem); height: calc(100svh - 9rem); /* fill almost the rest of the screen after header */
padding-bottom: 3rem; padding-bottom: 3rem; /* convenience space on the bottom */
overflow-y: scroll; overflow-y: scroll;
} }
thead tr { thead tr {