diff --git a/.gitignore b/.gitignore index 443772a..0f8850d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,7 @@ node_modules/ logs/*.log config.json -public/b/* -public/ca/* -public/t/* +public/b +public/ca +public/t tmp/* diff --git a/public/b/.empty b/public/b/.empty old mode 100755 new mode 100644 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 }}):