diff --git a/README.md b/README.md index 828247fd..364306f3 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,6 @@ The provided unit file uses options directly; if you prefer a config file, do th ## TODO * adding new magnet links * API improvement -* add rss link and generate link based on your current search * make renchon the favicon and official mascot * make sukebei db schema compatible with current code * comments in torrent view page diff --git a/css/style.css b/css/style.css index 321af57c..579f6b26 100644 --- a/css/style.css +++ b/css/style.css @@ -103,3 +103,26 @@ div.container div.blockBody:nth-of-type(2) table tr:first-of-type th:first-of-ty div.container div.blockBody:nth-of-type(2) table tr:first-of-type th:nth-of-type(3){width:15%;} div.container div.blockBody:nth-of-type(2) table tr:first-of-type th:nth-of-type(4){width:19%;} div.container div.blockBody:nth-of-type(2) table tr:first-of-type th:last-of-type{width:6%;} + +/* Mobile-friendly main table */ +@media only screen and (max-width: 700px) { + table, thead, tbody, tr { + display: block; + } + + th { + display: none; + } + + td { + display: inline-block; + } + + td:nth-of-type(1), td:nth-of-type(2) { + display: block; + } + + .table > tbody > tr > td { + border: none; + } +}