mirror of
https://codeberg.org/metamuffin/abrechenbarkeit.git
synced 2024-12-28 07:54:35 +00:00
fix some printing styles and some other stuff forgot tbh
This commit is contained in:
parent
8f1b230e63
commit
69f01a2e89
2 changed files with 34 additions and 19 deletions
|
@ -309,7 +309,7 @@ end
|
|||
|
||||
local function r_log(filter)
|
||||
return respond(200, "Abrechnungen", function()
|
||||
print([[<table class="log">]])
|
||||
print([[<table class="log"]])
|
||||
print([[<tr>
|
||||
<th>Time</th>
|
||||
<th>Username</th>
|
||||
|
@ -364,8 +364,8 @@ local function r_index()
|
|||
<input type="submit" value="Continue" class="button amount-ntr" />
|
||||
</form>
|
||||
]])
|
||||
print("<ul>")
|
||||
|
||||
print([[<div class="userlist"></div>]]) -- for printing
|
||||
print([[<ul class="userlist">]])
|
||||
for _, user in ipairs(get_active_users()) do
|
||||
print(string.format([[
|
||||
<li><a href="/%s"><span class="name">%s</span> <span class="amount amount-%s">%.02f€</span></a></li>
|
||||
|
|
47
style.css
47
style.css
|
@ -273,24 +273,39 @@ input:not([type=submit]) {
|
|||
}
|
||||
|
||||
@media print {
|
||||
nav, .container {
|
||||
display: none;
|
||||
}
|
||||
|
||||
nav,
|
||||
.container,
|
||||
h1 {
|
||||
display: none;
|
||||
}
|
||||
h1 {
|
||||
font-size: 2em;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
table.log:before {
|
||||
content: "Abrechenbarkeit Log";
|
||||
font-size: 2em;
|
||||
text-decoration: underline;
|
||||
}
|
||||
table.log:before {
|
||||
content: "Abrechnung";
|
||||
font-size: 2em;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
table.productlist:before {
|
||||
content: "Produkt Liste";
|
||||
font-size: 2em;
|
||||
text-decoration: underline;
|
||||
}
|
||||
div.userlist:before {
|
||||
content: "User List, is still work in progress :/";
|
||||
clear: right;
|
||||
width: 100vw;
|
||||
font-size: 2em;
|
||||
text-decoration: underline;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.userlist a, ul {
|
||||
display: block;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.userlist > li > a {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
tr :last-child {
|
||||
display: none;
|
||||
|
@ -309,4 +324,4 @@ input:not([type=submit]) {
|
|||
form {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue