From 2e0881b10965c31ea6ab010972b553812e8539d1 Mon Sep 17 00:00:00 2001 From: schrumpel Date: Sat, 7 May 2022 17:35:43 +0200 Subject: [PATCH] undo --- public/b/.empty | 0 public/s/css/f0ck.css | 33 +++++++++++++++++++++++++++++++++ views/search.html | 2 +- 3 files changed, 34 insertions(+), 1 deletion(-) delete mode 100755 public/b/.empty diff --git a/public/b/.empty b/public/b/.empty deleted file mode 100755 index e69de29..0000000 diff --git a/public/s/css/f0ck.css b/public/s/css/f0ck.css index 1243113..a851442 100644 --- a/public/s/css/f0ck.css +++ b/public/s/css/f0ck.css @@ -1790,3 +1790,36 @@ table img { .results { padding: 5px; } +/* fix for mobile table view in search! */ +@media screen and (max-width: 650px) { + table { + width:inherit; + } + thead { + display: none; + } + tr:nth-of-type(2n) { + background-color: inherit; + } + tr td:first-child { + float: right; + } + tbody td { + display: block; + box-shadow: 0px 1px 0px var(--accent); + } + tbody td:before { + content: attr(data-th); + display: block; + text-align:left; + } + table.table th, table.table td { + padding: 5px; + margin: 5px; + display: flex; + } + table.table td img{ + position: relative; + width: 100%; + } +} \ No newline at end of file diff --git a/views/search.html b/views/search.html index ab1b870..187d9c1 100644 --- a/views/search.html +++ b/views/search.html @@ -5,7 +5,7 @@
@if(result) -

{{ count }} f0cks given (page {{ pagination.page }} of {{ pagination.end }}):

+

{{ count }} f0cks given (page {{ pagination.page }} of {{ pagination.end }}):