From b77d090960bff8c95dc1b8b5816c32e7aea64850 Mon Sep 17 00:00:00 2001
From: jo
Date: Sat, 1 Dec 2018 20:11:00 +0100
Subject: [PATCH] Fixes and enhancements
- Moved main container to app root
- Add responsivness for the search bar
- Some text transformation (justify)
- Restore rounded buttons
- Some other small changes...
---
server/ui/src/Main.css | 40 ++++++++++++++--------
server/ui/src/components/home.tsx | 6 ++--
server/ui/src/components/navbar.tsx | 20 +++++------
server/ui/src/components/search.tsx | 52 ++++++++++++++++-------------
server/ui/src/index.html | 6 ++--
server/ui/src/index.tsx | 4 +--
6 files changed, 70 insertions(+), 58 deletions(-)
diff --git a/server/ui/src/Main.css b/server/ui/src/Main.css
index dbd98fb..ca460f1 100644
--- a/server/ui/src/Main.css
+++ b/server/ui/src/Main.css
@@ -1,24 +1,38 @@
-.table-fixed {
- table-layout: fixed;
+html,
+body {
+ /* assumes we won't target screens with a width smaller than 320px */
+ min-width: 320px;
}
-.search-name-col {
- width: 50%;
-}
+/* globally disable dotted outlines on anchors */
+a:focus { outline: none; }
+a::-moz-focus-inner { border: 0; }
-.search-name-cell {
- word-wrap: break-word;
-}
+.search-name-col { width: 50%; }
+.search-name-cell { word-wrap: break-word; }
-.navbar-purple {
- background-color: #673ab7;
- -webkit-box-shadow: 0 8px 6px -6px #999;
- -moz-box-shadow: 0 8px 6px -6px #999;
- box-shadow: 0 8px 6px -6px #999;
+.table-fixed { table-layout: fixed; }
+
+/* add padding to first and last cell */
+.table-padding th:first-child,
+.table-padding td:first-child { padding-left: 1em !important; }
+.table-padding th:last-child,
+.table-padding td:last-child { padding-right: 1em !important; }
+
+/* Colors */
+.navbar-purple { background-color: #673ab7; }
+.table-hover-purple tbody tr:hover { background-color: rgba(103, 58, 183, 0.2) !important; }
+
+/* Boostrap fixes */
+.rounded-right {
+ /* disable radius on left when using on right side */
+ border-top-left-radius: 0;
+ border-bottom-left-radius: 0;
}
.no-outline,
.no-outline:focus {
+ /* disable colored outline on btn or input */
box-shadow: none !important;
outline: none !important;
}
diff --git a/server/ui/src/components/home.tsx b/server/ui/src/components/home.tsx
index 366530b..bcf03b7 100644
--- a/server/ui/src/components/home.tsx
+++ b/server/ui/src/components/home.tsx
@@ -13,14 +13,12 @@ export class Home extends Component {
onboard() {
return (
-
-
+
Torrents.csv is a collaborative git repository of torrents, consisting of a single, searchable torrents.csv file. Its initially populated with a January 2017 backup of the pirate bay, and new torrents are periodically added from various torrents sites. It comes with a self-hostable webserver, a command line search, and a folder scanner to add torrents.
Torrents.csv will only store torrents with at least one seeder to keep the file small, will be periodically purged of non-seeded torrents, and sorted by seeders descending.
To request more torrents, or add your own, go here.